|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.springmvc.FormBindableBase
nl.gx.webmanager.cms.core.implementation.CmsItemBase
nl.gx.webmanager.cms.element.implementation.JcrElementBase
nl.gx.webmanager.springmvc.element.ElementBase
public abstract class ElementBase
This class is the base class for all element components.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
editViews |
| Constructor Summary | |
|---|---|
protected |
ElementBase()
Default constructor. |
|
ElementBase(javax.servlet.http.HttpServletRequest request,
javax.jcr.Node node)
Constructor for an element. |
| Method Summary | |
|---|---|
DelegatedController |
getDelegatedController()
Returns the Spring controller to be used for this formbindable |
java.lang.String |
getEditElementHeader()
By default return the menu item text as edit element header. |
EditView |
getEditViewByValue(java.lang.String value)
Returns the indicated EditView that should be used for form(part) display. |
java.lang.String |
getIcon()
Default implementation of the getIcon for an element is to return the small icon name as defined in the element component definition |
java.lang.String |
getNestedPath()
|
void |
setComponent(Component component)
|
void |
setDefaultPresentation()
Sets a default presentation for the element. |
void |
setDelegatedController(DelegatedController formController)
Sets the Spring controller to be used for this formbindable |
void |
setEditViews(WmEditView[] editViewSet)
Setter for the editViews attribute. |
org.springframework.web.servlet.ModelAndView |
showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.validation.BindException errors,
java.util.Map controlModel)
Callback for returning the model and view for a GET request |
| Methods inherited from class nl.gx.webmanager.cms.element.implementation.JcrElementBase |
|---|
cleanup, copy, getElementHolder, getHeader, getId, getMailing, getMediaItemVersion, getNode, getPageModel, getPageModelElement, getPageVersion, getPersonalization, getPresentation, getPresentationContext, getRequest, getUUID, getWebsite, getWrapper, getWrapper, isAuthorized, render, render, setAuthorized, setEditElementHeader, setHeader, setIcon, setId, setNode, setPersonalization, setPresentation, setRequest, setUUID |
| Methods inherited from class nl.gx.webmanager.cms.core.implementation.CmsItemBase |
|---|
getComponent, getComponentFileId, getComponentId, getLanguageResourceMessage, getLanguageResourceMessage, getPrivateSession, getStaticResourceDir, setPrivateSession |
| Methods inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
addDisallowedField, addEditView, addValidator, formBackingObject, getControllerDelegationMap, getEditView, getParentController, getResourceBaseNames, getValidators, initBinder, initialize, onBind, onBindAndValidate, onSubmit, referenceData, setParentController, setValidators |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ElementBase()
public ElementBase(javax.servlet.http.HttpServletRequest request,
javax.jcr.Node node)
request - The hhttp servlet requestnode - The injected node| Method Detail |
|---|
public org.springframework.web.servlet.ModelAndView showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.validation.BindException errors,
java.util.Map controlModel)
throws java.lang.Exception
FormBindableBase
showForm in interface DelegatedControllershowForm in class FormBindableBaserequest - current servlet requestresponse - current servlet responseerrors - errors holder without errors (subclass can add errors if it wants to)controlModel - Current model of the controller
java.lang.Exception - in case of errorspublic EditView getEditViewByValue(java.lang.String value)
DelegatedController
getEditViewByValue in interface DelegatedControllergetEditViewByValue in class FormBindableBasevalue - Value of the view that should be used
public void setEditViews(WmEditView[] editViewSet)
setEditViews in class FormBindableBaseeditViews - Array of EditView object to setpublic DelegatedController getDelegatedController()
FormBindableBase
getDelegatedController in interface DelegatedControllerAwaregetDelegatedController in class FormBindableBasepublic void setDelegatedController(DelegatedController formController)
FormBindableBase
setDelegatedController in interface DelegatedControllerAwaresetDelegatedController in class FormBindableBaseformController - Spring controller to set for this formbindablepublic void setComponent(Component component)
setComponent in class nl.gx.webmanager.cms.core.implementation.CmsItemBasepublic java.lang.String getIcon()
getIcon in interface ElementgetIcon in class nl.gx.webmanager.cms.element.implementation.JcrElementBasepublic java.lang.String getEditElementHeader()
getEditElementHeader in interface ElementgetEditElementHeader in class nl.gx.webmanager.cms.element.implementation.JcrElementBasepublic java.lang.String getNestedPath()
public void setDefaultPresentation()
Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||