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
static java.lang.String EDIT_CONTEXT_KEY
          The default location for the edit context in the http request.
 
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 mv)
          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 ModelAndView for the given 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> activeModel)
          Add a model and a presentation to the stack.
 

Field Detail

EDIT_CONTEXT_KEY

static final java.lang.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(java.lang.Object activeObject)
Add an object and a presentation to the stack.

Parameters:
activeObject -

pushModel

void pushModel(java.util.Map<java.lang.String,java.lang.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

java.lang.Object getBaseObject()
Return object at the top of the stack.

Returns:
object at the top of the stack.

getBaseModel

java.lang.Object getBaseModel()
Return model at the top of the stack.

Returns:
model at the top of the stack.

getFirstObject

java.lang.Object getFirstObject()
Returns the first component in the the stack.

Returns:
the first component in the the stack.

addModelAndView

void addModelAndView(java.lang.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 set
mv - The ModelAndView to add to the EditContext

getModelAndView

org.springframework.web.servlet.ModelAndView getModelAndView(java.lang.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

java.util.Collection<ExtensionProvider> getExtensions(java.lang.Object object)

addExtension

void addExtension(java.lang.Object object,
                  ExtensionProvider extensionProvider)

getDelegatedControllers

java.util.Collection<DelegatedController> getDelegatedControllers(java.lang.Object object)

addDelegatedController

void addDelegatedController(java.lang.Object object,
                            DelegatedController delegatedController)


Copyright © 2007-2011 GX Software BV. All Rights Reserved.