Package nl.gx.webmanager.springmvc
Interface EditContext
-
- All Known Implementing Classes:
EditContextImpl
public interface EditContext
Representation of the EditContext. The edit context provides the context in which webmanager jsps are executed and provides access to lots of information.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EDIT_CONTEXT_KEY
The default location for the edit context in the http request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDelegatedController(Object object, DelegatedController delegatedController)
void
addExtension(Object object, ExtensionProvider extensionProvider)
void
addModelAndView(Object object, org.springframework.web.servlet.ModelAndView mv)
Adds a model and view to the edit context.Object
getBaseModel()
Return model at the top of the stack.Object
getBaseObject()
Return object at the top of the stack.Collection<DelegatedController>
getDelegatedControllers(Object object)
Collection<ExtensionProvider>
getExtensions(Object object)
Object
getFirstObject()
Returns the first component in the the stack.org.springframework.web.servlet.ModelAndView
getModelAndView(Object object)
Returns the ModelAndView for the given object.Website
getWebsite()
Retrieve the website from the user sessionvoid
pop()
Pop the top object and presentation.void
popModel()
Pop the top model.void
push(Object activeObject)
Add an object and a presentation to the stack.void
pushModel(Map<String,Object> activeModel)
Add a model and a presentation to the stack.
-
-
-
Field Detail
-
EDIT_CONTEXT_KEY
static final String EDIT_CONTEXT_KEY
The default location for the edit context in the http request.- See Also:
- Constant Field Values
-
-
Method Detail
-
push
void push(Object activeObject)
Add an object and a presentation to the stack.- Parameters:
activeObject
-
-
pushModel
void pushModel(Map<String,Object> activeModel)
Add a model and a presentation to the stack.- Parameters:
activeModel
-
-
pop
void pop()
Pop the top object and presentation.
-
popModel
void popModel()
Pop the top model.
-
getBaseObject
Object getBaseObject()
Return object at the top of the stack.- Returns:
- object at the top of the stack.
-
getBaseModel
Object getBaseModel()
Return model at the top of the stack.- Returns:
- model at the top of the stack.
-
getFirstObject
Object getFirstObject()
Returns the first component in the the stack.- Returns:
- the first component in the the stack.
-
addModelAndView
void addModelAndView(Object object, org.springframework.web.servlet.ModelAndView mv)
Adds a model and view to the edit context. The RenderTag will load the View to be rendered from the EditContext.- Parameters:
object
- Object (form backing object or business object) for which the View should be setmv
- The ModelAndView to add to the EditContext
-
getModelAndView
org.springframework.web.servlet.ModelAndView getModelAndView(Object object)
Returns the ModelAndView for the given object. The RenderTag will load the View to be rendered from the EditContext.- Parameters:
object
- Object (form backing object or business object) for which the View should be retrieved- Returns:
- The ModelAndView for the object
-
getWebsite
Website getWebsite()
Retrieve the website from the user session- Returns:
- The website
-
getExtensions
Collection<ExtensionProvider> getExtensions(Object object)
-
addExtension
void addExtension(Object object, ExtensionProvider extensionProvider)
-
getDelegatedControllers
Collection<DelegatedController> getDelegatedControllers(Object object)
-
addDelegatedController
void addDelegatedController(Object object, DelegatedController delegatedController)
-
-