public abstract class ContainerBase extends ComponentBase implements Container
Container implementation which container implementations
can extend
Provides properties for the basic Container functionality in
addition to default implementation of the lifecycle methods including some
setup of the header, items list, and layout manager
INITIAL_ORDER_VALUE| Constructor and Description |
|---|
ContainerBase()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdditionalMessageKeys()
Additional keys that should be matching on when gathering errors or other
messages for the
Container |
List<InputField> |
getAllInputFields()
getAllInputFields gets all the input fields contained in this container, but also in
every sub-container that is a child of this container.
|
List<Component> |
getComponentPrototypes()
List of components that are maintained by the component as prototypes for creating other component instances
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through
the lifecycle
|
ErrorsField |
getErrorsField()
Field that contains the error messages for the container
|
Group |
getFooter()
Footer
Group associated with the container |
HeaderField |
getHeader()
HeaderField associated with the container |
Help |
getHelp()
Help configuration object for the container
|
List<InputField> |
getInputFields()
Gets only the data fields that are nested in this container.
|
MessageField |
getInstructionalMessageField()
Message field that displays instructional text
|
String |
getInstructionalText()
Text explaining how complete the group inputs, including things like what values should be selected
in certain cases, what fields should be completed and so on (instructions)
|
int |
getItemOrderingSequence()
For
Component instances in the container's items list that
do not have an order set, a default order number will be assigned using
this property. |
abstract List<? extends Component> |
getItems()
List of Component instances that are held by
the container |
LayoutManager |
getLayoutManager()
LayoutManager that should be used to layout the components
in the container |
boolean |
isFieldContainer()
This property is true if the container is used to display a group of fields that is visually a single
field.
|
void |
performApplyModel(View view,
Object model,
Component parent)
The following updates are done here:
Evaluate the progressive render condition (if set) and combine with the current render status to set the
render status
|
void |
performFinalize(View view,
Object model,
Component parent)
The following finalization is performed:
Sets the headerText of the header Group if it is blank
Set the messageText of the summary MessageField if it is blank
Finalizes LayoutManager
|
void |
performInitialization(View view,
Object model)
The following initialization is performed:
Sorts the containers list of components
Initializes LayoutManager
|
void |
setAdditionalMessageKeys(String additionalMessageKeys)
Setter for the components additional message key string
|
void |
setErrorsField(ErrorsField errorsField)
Setter for the containers errors field
|
void |
setFieldContainer(boolean fieldContainer) |
void |
setFooter(Group footer)
Setter for the containers footer
|
void |
setHeader(HeaderField header)
Setter for the containers header field
|
void |
setHelp(Help help)
Setter for the containers help content
|
void |
setInstructionalMessageField(MessageField instructionalMessageField)
Setter for the instructional text message field
|
void |
setInstructionalText(String instructionalText)
Setter for the instructional message
|
void |
setItemOrderingSequence(int itemOrderingSequence)
Setter for the container's item ordering sequence number (initial value)
|
abstract void |
setItems(List<? extends Component> items)
Setter for the containers list of components
|
void |
setLayoutManager(LayoutManager layoutManager)
Setter for the containers layout manager
|
void |
setRenderFooter(boolean renderFooter)
Convenience setter for configuration to turn rendering of the footer
on/off
|
void |
setRenderHeader(boolean renderHeader)
Convenience setter for configuration to turn rendering of the header
on/off
|
addStyleClass, appendToStyle, getAlign, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getComponentSecurity, getComponentSecurityClass, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getEventCode, getFactoryId, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshDiscloseMethodToCall, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getStyleClassesAsString, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnDocumentReady, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, getTemplate, getTitle, getValign, getWidth, isHidden, isPersistInSession, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, isSkipInTabOrder, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAlign, setColSpan, setComponentModifiers, setComponentOptions, setComponentOptionsJSString, setComponentSecurity, setConditionalRefresh, setContext, setFactoryId, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setHidden, setId, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPersistInSession, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshDiscloseMethodToCall, setRefreshedByAction, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setStyleClasses, setTemplate, setTitle, setValign, setWidthgetPropertyExpression, getPropertyExpressions, setPropertyExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedComponentsaddStyleClass, appendToStyle, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getComponentSecurity, getComponentTypeName, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getFactoryId, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isPersistInSession, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, pushAllToContext, pushObjectToContext, setColSpan, setComponentModifiers, setComponentOptions, setComponentOptionsJSString, setComponentSecurity, setConditionalRefresh, setContext, setFactoryId, setHidden, setId, setOrder, setPersistInSession, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshedByAction, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setStyle, setStyleClasses, setTemplate, setTitlegetPropertyExpression, getPropertyExpressions, setPropertyExpressionsgetOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnDocumentReady, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, setOnBlurScript, setOnDocumentReadyScript, setOnLoadScriptpublic ContainerBase()
public void performInitialization(View view, Object model)
performInitialization in interface ComponentperformInitialization in class ComponentBaseview - - view instance in which the component belongsmodel - - object instance containing the view dataComponentBase.performInitialization(org.kuali.rice.krad.uif.view.View, java.lang.Object)public void performApplyModel(View view, Object model, Component parent)
ComponentBaseperformApplyModel in interface ComponentperformApplyModel in class ComponentBaseview - - view instance to which the component belongsmodel - - Top level object containing the data (could be the form or a
top level business object, dto)ComponentBase.performApplyModel(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)public void performFinalize(View view, Object model, Component parent)
performFinalize in interface ComponentperformFinalize in class ComponentBaseview - - view instance that should be finalized for renderingmodel - - top level object containing the dataparent - - parent componentComponentBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService for the various lifecycle
callbacks
getComponentsForLifecycle in interface ComponentgetComponentsForLifecycle in class ComponentBaseComponentBase.getComponentsForLifecycle()public List<Component> getComponentPrototypes()
ComponentPrototypes are held for configuring how a component should be created during the lifecycle. An example of this are the fields in a collection group that are created for each collection record. They only participate in the initialize phase.
getComponentPrototypes in interface ComponentgetComponentPrototypes in class ComponentBaseComponent.getComponentPrototypes()public String getAdditionalMessageKeys()
Container
Messages associated with the container will be displayed with the container grouping in the user interface. Typically, these are a result of problems with the containers fields or some other business logic associated with the containers information. The framework will by default include all the error keys for fields in the container, and also an errors associated with the containers id. Keys given here will be matched in addition to those defaults.
Multple keys can be given using the comma delimiter, the * wildcard is also allowed in the message key
public void setAdditionalMessageKeys(String additionalMessageKeys)
additionalMessageKeys - public ErrorsField getErrorsField()
Container
Containers can collect the errors for the contained component and display
either all the messages or counts. This Field is used to
render those messages. Styling and other configuration is done through
the ErrorsField
getErrorsField in interface ContainerContainer.getErrorsField()public void setErrorsField(ErrorsField errorsField)
ContainersetErrorsField in interface ContainerContainer.setErrorsField(org.kuali.rice.krad.uif.field.ErrorsField)public Help getHelp()
Container
External help information can be configured for the container. The
Help object can the configuration for rendering a link to
that help information.
getHelp in interface ContainerContainer.getHelp()public void setHelp(Help help)
ContainersetHelp in interface ContainerContainer.setHelp(org.kuali.rice.krad.uif.widget.Help)public abstract List<? extends Component> getItems()
ContainerList of Component instances that are held by
the container
Contained components are rendered within the section template by calling
the associated LayoutManager
getItems in interface ContainerContainer.getItems()public abstract void setItems(List<? extends Component> items)
public int getItemOrderingSequence()
Component instances in the container's items list that
do not have an order set, a default order number will be assigned using
this property. The first component found in the list without an order
will be assigned the configured initial value, and incremented by one for
each component (without an order) found afterwardspublic void setItemOrderingSequence(int itemOrderingSequence)
itemOrderingSequence - public LayoutManager getLayoutManager()
ContainerLayoutManager that should be used to layout the components
in the container
The template associated with the layout manager will be invoked passing in the List of components from the container. This list is exported under the attribute name 'items'
getLayoutManager in interface ContainerContainer.getLayoutManager()public void setLayoutManager(LayoutManager layoutManager)
ContainersetLayoutManager in interface ContainerContainer.setLayoutManager(org.kuali.rice.krad.uif.layout.LayoutManager)public HeaderField getHeader()
ContainerHeaderField associated with the container
Header fields are generally rendered at the beginning of the container to indicate a grouping, although this is determined by the template associated with the container. The actual rendering configuration (style and so on) is configured within the HeaderField instance
Header is only rendered if Container#isRenderHeader is true
and getHeader() is not null
getHeader in interface ContainerContainer.getHeader()public void setHeader(HeaderField header)
ContainersetHeader in interface ContainerContainer.setHeader(org.kuali.rice.krad.uif.field.HeaderField)public Group getFooter()
ContainerGroup associated with the container
The footer is usually rendered at the end of the container. Often this is a place to put actions (buttons) for the container.
Footer is only rendered if Container#isRenderFooter is true
and getFooter is not null
getFooter in interface ContainerContainer.getFooter()public void setFooter(Group footer)
ContainersetFooter in interface ContainerContainer.setFooter(org.kuali.rice.krad.uif.container.Group)public void setRenderHeader(boolean renderHeader)
For nested groups (like Field Groups) it is often necessary to only show the container body (the contained components). This method allows the header to not be displayed
renderHeader - public void setRenderFooter(boolean renderFooter)
For nested groups it is often necessary to only show the container body (the contained components). This method allows the footer to not be displayed
renderFooter - public String getInstructionalText()
public void setInstructionalText(String instructionalText)
instructionalText - public MessageField getInstructionalMessageField()
This message field can be configured to for adjusting how the instructional text will display. Generally the styleClasses property will be of most interest
getInstructionalMessageField in interface Containerpublic void setInstructionalMessageField(MessageField instructionalMessageField)
Note this is the setter for the field that will render the instructional text. The actual text can be
set on the field but can also be set using setInstructionalText(String)
setInstructionalMessageField in interface ContainerinstructionalMessageField - public List<InputField> getInputFields()
public List<InputField> getAllInputFields()
public boolean isFieldContainer()
isFieldContainer in interface Containerpublic void setFieldContainer(boolean fieldContainer)
setFieldContainer in interface ContainerfieldContainer - the fieldContainer to setCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.