|
||||||||||
| 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.springmvc.panel.PanelBase
public abstract class PanelBase
Base class to be extended for partner panel development.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
editViews |
| Constructor Summary | |
|---|---|
PanelBase()
default constructor. |
|
| Method Summary | |
|---|---|
void |
addComponent(DelegatedController components)
adds a formbindable component to this panel so the bindable methods are autonmaticaly deligated to that component by the panel. |
PanelTab |
addTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
Adds a main tab to the panel navigation. |
PanelTab |
addTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
java.lang.String viewFileName,
DelegatedController controller,
java.lang.String presentationName,
javax.servlet.http.HttpServletRequest request)
Adds a main tab to the panel navigation. |
void |
configurePanel()
must be implemented by the panel developer to configure the panel (f.e. |
java.util.List<PanelButton> |
getButtonList()
get the current panelbuttons for this panel as a list. |
PanelButton[] |
getButtons()
get the current panelbuttons for this panel. |
ComponentDefinition |
getComponentDefinition()
|
WmEditView |
getEditView()
Returns the default EditView of the Panel. |
WmEditView |
getEditViewByValue(java.lang.String value)
Returns the EditView identified by the given value. |
java.lang.String |
getNestedPath()
The nested path to be used by Spring to bind the form backing object relative to the base object. |
javax.jcr.Node |
getNode()
get the JCR rootnode form this panel. |
PanelTabFBO |
getPanelViewCommandForSelectedTab()
- gets the panelViewCommand for the selected tab. |
PanelTabset |
getTabset()
gets the root tabset for this panel. |
java.lang.String |
getTitleMessageKey()
get the resourcebundle ket for the panel title message. |
java.lang.String |
getUUID()
UUID of the form backing object |
javax.jcr.Node |
getWebContainerNode()
get the JCR Web rootnode form this panel. |
boolean |
getWizardType()
get the wizardType value. |
void |
initialStart(javax.servlet.http.HttpServletRequest request)
method is called when the panel is initialy started f.e. |
void |
onBind(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
Delegates onBind to all registered components. |
void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
Delegates onBindAndValidate to all registered components. |
void |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
Delegates onSubmit to all registered components. |
void |
postNodeInjection(javax.jcr.Node node)
empty method to be overwritten by the panel developer for to implement default handling after node injection. |
void |
postWebContainerNodeInjection(javax.jcr.Node node)
empty method to be overwritten by the panel developer for to implement default handling after node injection. |
javax.jcr.Node |
preNodeInjection(javax.jcr.Node node)
empty method to be overwritten. |
javax.jcr.Node |
preWebContainerNodeInjection(javax.jcr.Node node)
empty method to be overwritten. |
java.util.Map |
referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
Delegates referenceData to all registered components. |
void |
setActivePanelViewCommand(PanelTabFBO panelViewCommand)
- injects the rootnode in the panelViewCommand. |
void |
setButtons(PanelButton[] panelButtons)
set the panel buttons for this panel. |
void |
setComponentDefinition(ComponentDefinition compDef)
Sets the component definition |
void |
setEditViews(WmEditView[] editViews)
editview are managed by the panelBase default implementtion by CmsItem (FormBindableBase) fully disabled therefor thei metod is overwritten with an empty implementation |
void |
setNode(javax.jcr.Node node)
overwrites the Panel.setNode method to allow the panel developer to implenment pre- and post-node injection methods. |
void |
setPanelMainView(java.lang.String panelMainView)
Sets the default editview for the panel (if not set the defulat is panel.jsp). |
void |
setPanelViewCommand(java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
Set the panel view and command for a panel that holds no tabs (convenience method, adding a single tab has the same result). |
void |
setPrivateSession(CmsItemPrivateSession cmsItemPrivateSession)
extends the default setPrivateSession() from CmsItemBase.java. |
void |
setSelectedTabById(java.lang.String selectedTabId)
sets the selected tab by its Id. |
void |
setTabset(PanelTabset panelTabset)
Sets and registrates the root tabset for this panel. |
void |
setTitleMessageKey(java.lang.String titleMessageKey)
set the resourcebundle ket for the panel title message. |
void |
setWebContainerNode(javax.jcr.Node node)
overwrites the Panel.setWebContainerNode method to allow the panel developer to implenment pre- and post-node injection methods. |
void |
setWizardType(boolean wizardType)
|
java.lang.String |
toString()
|
| Methods inherited from class nl.gx.webmanager.cms.core.implementation.CmsItemBase |
|---|
getComponent, getComponentFileId, getComponentId, getLanguageResourceMessage, getLanguageResourceMessage, getPrivateSession, getStaticResourceDir, setComponent |
| Methods inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
addDisallowedField, addEditView, addValidator, formBackingObject, getControllerDelegationMap, getDelegatedController, getParentController, getResourceBaseNames, getValidators, initBinder, initialize, setDelegatedController, setParentController, setValidators, showForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PanelBase()
| Method Detail |
|---|
public java.lang.String getUUID()
FormBackingObject
getUUID in interface FormBackingObjectpublic void configurePanel()
public void initialStart(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestpublic java.lang.String toString()
toString in class java.lang.Object
public void setPanelViewCommand(java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
viewFileName - viewFileName (.jspf file)panelViewCommandClass - to in instantiated when this tab is opened used as commandobject
public PanelTab addTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
tabId - unique tabId within this paneltitleKey - resourcebundle key for the tab title, not shown if emptyviewFileName - view file form this tab, may be null in the tab holds only subtabspanelViewCommandClass - command class for this tab, may be null in the tab holds only subtabs
if this is a maintab that holds only subtabs which operates as differant views
on the same command, set this command here.
public PanelTab addTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
java.lang.String viewFileName,
DelegatedController controller,
java.lang.String presentationName,
javax.servlet.http.HttpServletRequest request)
tabId - unique tabId within this paneltitleKey - resourcebundle key for the tab title, not shown if emptytitleImage - image shown as title, not shown if emptyviewFileName - view file form this tab, may be null in the tab holds only
subtabspanelViewCommandClass - command class for this tab, may be null in the tab holds only
subtabs if this is a maintab that holds only subtabs which
operates as differant views on the same command, set this
command here.presentationName - may be either PanelTabset.LEVEL1_HORIZONTAL,
PanelTabset.LEVEL1_VERTICAL, PanelTabset.LEVEL2_HORIZONTAL,
PanelTabset.LEVEL2_VERTICAL or null if the presentationName
should not changed or the default should be set in case none
is set.
public javax.jcr.Node getNode()
public final void setNode(javax.jcr.Node node)
node - Jct Rootnode for this panelpublic javax.jcr.Node preNodeInjection(javax.jcr.Node node)
node - default JCR rootnode provided by the framework
public void postNodeInjection(javax.jcr.Node node)
node - nodepublic javax.jcr.Node getWebContainerNode()
public final void setWebContainerNode(javax.jcr.Node node)
node - Jct Rootnode for this panelpublic javax.jcr.Node preWebContainerNodeInjection(javax.jcr.Node node)
node - default JCR Web rootnode provided by the framework
public void postWebContainerNodeInjection(javax.jcr.Node node)
node - nodepublic void setComponentDefinition(ComponentDefinition compDef)
compDef - public ComponentDefinition getComponentDefinition()
public void addComponent(DelegatedController components)
components - formbindable components on this panelpublic void setTabset(PanelTabset panelTabset)
panelTabset - panelTabsetpublic PanelTabset getTabset()
public void setSelectedTabById(java.lang.String selectedTabId)
selectedTabId - selectedTabIdpublic void setActivePanelViewCommand(PanelTabFBO panelViewCommand)
panelViewCommand - the panelViewCommand to activatepublic PanelTabFBO getPanelViewCommandForSelectedTab()
public void setPanelMainView(java.lang.String panelMainView)
panelMainView - main vies for this panel (default panal)public WmEditView getEditView()
getEditView in interface DelegatedControllergetEditView in class FormBindableBasepublic WmEditView getEditViewByValue(java.lang.String value)
getEditViewByValue in interface DelegatedControllergetEditViewByValue in class FormBindableBasevalue - editviewname
public void setEditViews(WmEditView[] editViews)
setEditViews in class FormBindableBaseeditViews - EditView[] holding the editViews for this componentpublic java.util.List<PanelButton> getButtonList()
getButtons()public PanelButton[] getButtons()
public void setButtons(PanelButton[] panelButtons)
panelButtons - panelButtonspublic void setWizardType(boolean wizardType)
wizardType - wizardTypepublic boolean getWizardType()
public java.lang.String getTitleMessageKey()
public void setTitleMessageKey(java.lang.String titleMessageKey)
titleMessageKey - titleMessageKeypublic void setPrivateSession(CmsItemPrivateSession cmsItemPrivateSession)
setPrivateSession in class nl.gx.webmanager.cms.core.implementation.CmsItemBasecmsItemPrivateSession - cmsItemPrivateSessionImpl instance
public void onBind(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
onBind in interface DelegatedControlleronBind in class FormBindableBaserequest - current HTTP requestcommand - the command object, still allowing for further bindingerrors - validation errors holder, allowing for additional custom validation
java.lang.Exception - in case of invalid state or arguments
public void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
onBindAndValidate in interface DelegatedControlleronBindAndValidate in class FormBindableBaserequest - current HTTP requestcommand - the command object, still allowing for further bindingerrors - validation errors holder, allowing for additional custom validation
java.lang.Exception - in case of invalid state or arguments
public void onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
throws java.lang.Exception
onSubmit in interface DelegatedControlleronSubmit in class FormBindableBaserequest - current servlet requestresponse - current servlet responsecommand - form object with request parameters bound onto iterrors - Errors instance without errors (subclass can add errors if it wants to)modelAndView - The prepared model and view
java.lang.Exception - in case of errors
public java.util.Map referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
throws java.lang.Exception
referenceData in interface DelegatedControllerreferenceData in class FormBindableBaserequest - current HTTP requestcommand - form object with request parameters bound onto iterrors - validation errors holder
null if none
java.lang.Exception - in case of invalid state or argumentsModelAndViewpublic java.lang.String getNestedPath()
FormBackingObject
getNestedPath in interface FormBackingObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||