|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.springmvc.EditContextImpl
public class EditContextImpl
Implementation of the EditContext interface. Contains a stack of objects. Current active object in the active jsp is on top of the stack.
| Field Summary |
|---|
| Fields inherited from interface nl.gx.webmanager.springmvc.EditContext |
|---|
EDIT_CONTEXT_KEY |
| Constructor Summary | |
|---|---|
EditContextImpl(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addDelegatedController(java.lang.Object object,
DelegatedController delegatedController)
|
void |
addExtension(java.lang.Object object,
ExtensionProvider extensionProvider)
|
void |
addModelAndView(java.lang.Object object,
org.springframework.web.servlet.ModelAndView modelAndView)
Adds a model and view to the edit context. |
java.lang.Object |
getBaseModel()
Return model at the top of the stack. |
java.lang.Object |
getBaseObject()
Return object at the top of the stack. |
java.util.Collection<DelegatedController> |
getDelegatedControllers(java.lang.Object object)
|
java.util.Collection<ExtensionProvider> |
getExtensions(java.lang.Object object)
|
java.lang.Object |
getFirstObject()
Returns the first component in the the stack. |
org.springframework.web.servlet.ModelAndView |
getModelAndView(java.lang.Object object)
Returns the model and view for the given form backing object |
Website |
getWebsite()
Retrieve the website from the user session |
void |
pop()
Pop the top object and presentation. |
void |
popModel()
Pop the top model. |
void |
push(java.lang.Object activeObject)
Add an object and a presentation to the stack. |
void |
pushModel(java.util.Map<java.lang.String,java.lang.Object> model)
Add a model and a presentation to the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditContextImpl(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
| Method Detail |
|---|
public java.lang.Object getBaseObject()
EditContext
getBaseObject in interface EditContextpublic java.lang.Object getBaseModel()
EditContext
getBaseModel in interface EditContextpublic void pop()
EditContext
pop in interface EditContextpublic void popModel()
EditContext
popModel in interface EditContextpublic void push(java.lang.Object activeObject)
EditContext
push in interface EditContextpublic void pushModel(java.util.Map<java.lang.String,java.lang.Object> model)
EditContext
pushModel in interface EditContextpublic java.lang.Object getFirstObject()
EditContext
getFirstObject in interface EditContextpublic Website getWebsite()
EditContext
getWebsite in interface EditContext
public void addModelAndView(java.lang.Object object,
org.springframework.web.servlet.ModelAndView modelAndView)
addModelAndView in interface EditContextobject - Form backing object to set the model and view formodelAndView - Model and View to set for the objectpublic org.springframework.web.servlet.ModelAndView getModelAndView(java.lang.Object object)
getModelAndView in interface EditContextobject - Form backing object to retrieve the model and view from
public java.util.Collection<ExtensionProvider> getExtensions(java.lang.Object object)
getExtensions in interface EditContext
public void addExtension(java.lang.Object object,
ExtensionProvider extensionProvider)
addExtension in interface EditContextpublic java.util.Collection<DelegatedController> getDelegatedControllers(java.lang.Object object)
getDelegatedControllers in interface EditContext
public void addDelegatedController(java.lang.Object object,
DelegatedController delegatedController)
addDelegatedController in interface EditContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||