|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.web.spring.controller.DoubleViewController<S,D>
S
- sourceD
- destinationpublic abstract class DoubleViewController<S,D>
Controls DoubleViews.
Field Summary | |
---|---|
protected java.util.logging.Logger |
log
|
protected org.springframework.context.MessageSource |
messageSource
|
Constructor Summary | |
---|---|
DoubleViewController()
|
Method Summary | |
---|---|
DataBasket |
getDataBasket()
simple getter for attribute dataBasket |
D |
getDestination()
simple getter for attribute destination |
S |
getSource()
simple getter for attribute source |
abstract org.springframework.web.servlet.ModelAndView |
index(org.springframework.web.servlet.ModelAndView mav,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Specifies the ModelAndView for the page containing the DoubleViewTag |
void |
initialize(S source,
D destination,
MoveStrategy moveStrategy,
DataBasket dataBasket)
Specify inherited attributes source , destination , moveStrategy and optional dataBasket |
protected void |
postHandle(org.springframework.web.servlet.ModelAndView mav,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method to specify additional post behavior. |
void |
setDataBasket(DataBasket dataBasket)
simple setter for attribute dataBasket |
void |
setDestination(D destination)
simple setter for attribute destination |
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
simple setter for attribute messageSource |
void |
setSource(S source)
simple setter for attribute source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.logging.Logger log
protected org.springframework.context.MessageSource messageSource
Constructor Detail |
---|
public DoubleViewController()
Method Detail |
---|
public void setDataBasket(DataBasket dataBasket)
dataBasket
- the dataBasket to setpublic void setSource(S source)
source
- the source to setpublic void setDestination(D destination)
destination
- the destination to setprotected void postHandle(org.springframework.web.servlet.ModelAndView mav, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mav
- the ModelAndViewrequest
- the HttpServletRequestresponse
- the HttpServletResponsepublic abstract org.springframework.web.servlet.ModelAndView index(org.springframework.web.servlet.ModelAndView mav, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mav
- in case of DoubleView controlled item movement, this ModelAndView
contains possible error messages under the key MessagesUtil.errorsKey
.
These can easily be shown on a jsp using the Messages-tag from Salespoint TagLib.
public void initialize(S source, D destination, MoveStrategy moveStrategy, DataBasket dataBasket)
source
, destination
, moveStrategy
and optional dataBasket
mav
- the ModelAndViewrequest
- the HttpServletRequestresponse
- the HttpServletResponsepublic void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource
in interface org.springframework.context.MessageSourceAware
public S getSource()
public D getDestination()
public DataBasket getDataBasket()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |