|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.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.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
ContainerBase()
Default Constructor |
Method Summary | |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
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 |
int |
getDefaultItemPosition()
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. |
Group |
getFooter()
Footer Group associated with the container |
Header |
getHeader()
HeaderField associated with the container |
String |
getHeaderText()
Convenience getter for the header text |
Help |
getHelp()
Help configuration object for the container |
String |
getHelpTitle()
Return the container header text for the help title |
Message |
getInstructionalMessage()
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) |
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 |
ValidationMessages |
getValidationMessages()
Field that contains the error messages for the container |
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 Message if it is blank Finalizes LayoutManager |
void |
performInitialization(View view,
Object model)
The following initialization is performed: Sorts the containers list of components Initializes the instructional field if necessary Initializes LayoutManager |
void |
setDefaultItemPosition(int defaultItemPosition)
Setter for the container's item ordering sequence number (initial value) |
void |
setFooter(Group footer)
Setter for the containers footer |
void |
setHeader(Header header)
Setter for the containers header field |
void |
setHeaderText(String headerText)
Convenience setter for configuration to set the header text |
void |
setHelp(Help help)
Setter for the containers help content |
void |
setInstructionalMessage(Message instructionalMessage)
Setter for the instructional text message field |
void |
setInstructionalText(String instructionalText)
Setter for the instructional message |
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 |
setTooltipOfComponent(Tooltip tooltip)
For containers the help tooltip is placed on the header. |
void |
setValidationMessages(ValidationMessages validationMessages)
Setter for the containers errors field |
protected void |
sortItems(View view,
Object model)
Performs sorting of the container items based on the order property |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
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.krad.uif.container.Container |
---|
getSupportedComponents |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport |
---|
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnLoadScript |
Constructor Detail |
---|
public ContainerBase()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class ComponentBase
view
- - 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)
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.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 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.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 Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public List<Component> getComponentPrototypes()
Component
Prototypes 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 Component
getComponentPrototypes
in class ComponentBase
Component.getComponentPrototypes()
protected void sortItems(View view, Object model)
view
- view instance containing the containermodel
- model object containing the view datapublic ValidationMessages getValidationMessages()
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 ValidationMessages
getValidationMessages
in interface Container
Container.getValidationMessages()
public void setValidationMessages(ValidationMessages validationMessages)
Container
setValidationMessages
in interface Container
Container.setValidationMessages(org.kuali.rice.krad.uif.element.ValidationMessages)
public Help getHelp()
Helpable
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 Helpable
Helpable.getHelp()
public void setHelp(Help help)
Helpable
setHelp
in interface Helpable
Helpable.setHelp(org.kuali.rice.krad.uif.widget.Help)
public void setTooltipOfComponent(Tooltip tooltip)
setTooltipOfComponent
in interface Helpable
Helpable.setTooltipOfComponent(org.kuali.rice.krad.uif.widget.Tooltip)
public String getHelpTitle()
getHelpTitle
in interface Helpable
Helpable.setTooltipOfComponent(org.kuali.rice.krad.uif.widget.Tooltip)
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)
setItems
in interface Container
items
- public int getDefaultItemPosition()
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 setDefaultItemPosition(int defaultItemPosition)
defaultItemPosition
- 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.krad.uif.layout.LayoutManager)
public Header 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(Header header)
Container
setHeader
in interface Container
Container.setHeader(org.kuali.rice.krad.uif.element.Header)
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.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 String getHeaderText()
public void setHeaderText(String headerText)
headerText
- the text that should be displayed on the header.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 Message getInstructionalMessage()
This message field can be configured to for adjusting how the instructional text will display. Generally the styleClasses property will be of most interest
getInstructionalMessage
in interface Container
public void setInstructionalMessage(Message instructionalMessage)
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)
setInstructionalMessage
in interface Container
instructionalMessage
- public void completeValidation(ValidationTrace tracer)
Component
completeValidation
in interface Component
completeValidation
in class ComponentBase
tracer
- Record of component's locationComponent.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |