public interface Container extends Component, Helpable
Container
components must use a
LayoutManager
to render the contained components.
Each container has the following parts in addition to the contained components:
HeaderField
Message
Group
Component
INITIAL_ORDER_VALUE
Modifier and Type | Method and Description |
---|---|
String |
getEnterKeyAction()
Get the key of the action item to invoke upon pressing the enter key.
|
Group |
getFooter()
Footer
Group associated with the container |
Header |
getHeader()
HeaderField associated with the container |
Message |
getInstructionalMessage()
Text for the container that provides a summary description or
instructions
|
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 |
Set<Class<? extends Component>> |
getSupportedComponents()
Set of Component classes that may be placed
into the container |
ValidationMessages |
getValidationMessages()
Field that contains the error messages for the container
|
boolean |
isProcessRemoteFieldHolders()
Determine if remote field holders should be processed for this container.
|
void |
setEnterKeyAction(String enterKeyAction) |
void |
setFooter(Group footer) |
void |
setHeader(Header header) |
void |
setInstructionalMessage(Message instructionalMessage) |
void |
setItems(List<? extends Component> items)
Setter for the containers list of components
|
void |
setLayoutManager(LayoutManager layoutManager) |
void |
setValidationMessages(ValidationMessages validationMessages) |
void |
sortItems()
Performs sorting of the container items based on the order property.
|
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, afterEvaluateExpression, appendToStyle, completeValidation, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getComponentTypeName, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getLibraryCssClasses, getMethodToCallOnRefresh, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
checkMutable, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycle
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript
getHelp, getHelpTitle, setHelp, setTooltipOfComponent
List<? extends Component> getItems()
List
of Component
instances that are held by
the container
Contained components are rendered within the section template by calling
the associated LayoutManager
.
void setItems(List<? extends Component> items)
items
- list of components to set in containerSet<Class<? extends Component>> getSupportedComponents()
Set
of Component
classes that may be placed
into the container
If an empty or null list is returned, it is assumed the container supports all components. The returned set will be used by dictionary validators and allows renders to make assumptions about the contained components
LayoutManager getLayoutManager()
LayoutManager
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'
void setLayoutManager(LayoutManager layoutManager)
getLayoutManager()
Header getHeader()
HeaderField
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
void setHeader(Header header)
getHeader()
Group getFooter()
Group
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
void setFooter(Group footer)
getFooter()
Message getInstructionalMessage()
Text is encapsulated in a Message
that contains
rendering configuration.
Summary Message
only rendered if this methods does not
return null
void setInstructionalMessage(Message instructionalMessage)
getInstructionalMessage()
ValidationMessages getValidationMessages()
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 ValidationMessages
void setValidationMessages(ValidationMessages validationMessages)
getValidationMessages()
void sortItems()
Note that the items may be modified by this method to assign order priority where it has not been previously assigned.
boolean isProcessRemoteFieldHolders()
String getEnterKeyAction()
void setEnterKeyAction(String enterKeyAction)
getEnterKeyAction()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.