|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.uif.core.ComponentBase org.kuali.rice.kns.uif.container.ContainerBase
public abstract class ContainerBase
Base 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
Field Summary |
---|
Fields inherited from interface org.kuali.rice.kns.uif.core.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
ContainerBase()
Default Constructor |
Method Summary | |
---|---|
String |
getAdditionalMessageKeys()
Additional keys that should be matching on when gathering errors or other messages for the Container |
List<AttributeField> |
getAttributeFields()
Gets only the attribute fields that are nested in this container. |
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 |
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 |
List<Component> |
getNestedComponents()
List of components that are contained within the component |
String |
getSummary()
Summary text for the container which will be used to set the summary message field |
MessageField |
getSummaryMessageField()
Text for the container that provides a summary description or instructions |
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)
The following updates are done here: |
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)
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 |
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 |
void |
setSummary(String summary)
Setter for the containers summary text |
void |
setSummaryMessageField(MessageField summaryMessageField)
Setter for the containers summary message field |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kns.uif.container.Container |
---|
getSupportedComponents |
Methods inherited from interface org.kuali.rice.kns.uif.core.Component |
---|
addStyleClass, appendToStyle, getColSpan, getComponentModifiers, getComponentOptions, getComponentTypeName, getConditionalReadOnly, getContext, getId, getOrder, getPropertiesForReferenceCopy, getPropertyReplacers, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isReadOnly, isRender, pushObjectToContext, setColSpan, setComponentModifiers, setComponentOptions, setConditionalReadOnly, setContext, setHidden, setId, setOrder, setPropertyReplacers, setReadOnly, setRender, setRequired, setRowSpan, setStyle, setStyleClasses, setTemplate, setTitle |
Constructor Detail |
---|
public ContainerBase()
Method Detail |
---|
public void performInitialization(View view)
performInitialization
in interface Component
performInitialization
in class ComponentBase
view
- - view instance in which the component belongsComponentBase.performInitialization(org.kuali.rice.kns.uif.container.View)
public void performApplyModel(View view, Object model)
ComponentBase
performApplyModel
in interface Component
performApplyModel
in class ComponentBase
view
- - 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.kns.uif.container.View,
java.lang.Object)
public void performFinalize(View view, Object model, Component parent)
performFinalize
in interface Component
performFinalize
in class ComponentBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentComponentBase.performFinalize(org.kuali.rice.kns.uif.container.View,
java.lang.Object, org.kuali.rice.kns.uif.core.Component)
public List<Component> getNestedComponents()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getNestedComponents
in interface Component
getNestedComponents
in class ComponentBase
ComponentBase.getNestedComponents()
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 Container
Container.getErrorsField()
public void setErrorsField(ErrorsField errorsField)
Container
setErrorsField
in interface Container
Container.setErrorsField(org.kuali.rice.kns.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 Container
Container.getHelp()
public void setHelp(Help help)
Container
setHelp
in interface Container
Container.setHelp(org.kuali.rice.kns.uif.widget.Help)
public abstract List<? extends Component> getItems()
Container
List
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 Container
Container.getItems()
public abstract void setItems(List<? extends Component> items)
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 afterwards
public void setItemOrderingSequence(int itemOrderingSequence)
itemOrderingSequence
- public LayoutManager getLayoutManager()
Container
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'
getLayoutManager
in interface Container
Container.getLayoutManager()
public void setLayoutManager(LayoutManager layoutManager)
Container
setLayoutManager
in interface Container
Container.setLayoutManager(org.kuali.rice.kns.uif.layout.LayoutManager)
public HeaderField getHeader()
Container
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
getHeader
in interface Container
Container.getHeader()
public void setHeader(HeaderField header)
Container
setHeader
in interface Container
Container.setHeader(org.kuali.rice.kns.uif.field.HeaderField)
public Group getFooter()
Container
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
getFooter
in interface Container
Container.getFooter()
public void setFooter(Group footer)
Container
setFooter
in interface Container
Container.setFooter(org.kuali.rice.kns.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 getSummary()
Container.getSummaryMessageField()
public void setSummary(String summary)
summary
- public MessageField getSummaryMessageField()
Container
Text is encapsulated in a MessageField
that contains
rendering configuration.
Summary MessageField
only rendered if this methods does not
return null
getSummaryMessageField
in interface Container
Container.getSummaryMessageField()
public void setSummaryMessageField(MessageField summaryMessageField)
Container
setSummaryMessageField
in interface Container
Container.setSummaryMessageField(org.kuali.rice.kns.uif.field.MessageField)
public List<AttributeField> getAttributeFields()
public boolean isFieldContainer()
isFieldContainer
in interface Container
public void setFieldContainer(boolean fieldContainer)
setFieldContainer
in interface Container
fieldContainer
- the fieldContainer to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |