| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 class org.kuali.rice.krad.uif.component.ComponentBase | 
|---|
| templateOptions | 
| Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase | 
|---|
| componentCode, namespaceCode | 
| 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<String> | getAdditionalTemplates()Gets additional templates that will be required during the rendering of this component. | 
|  int | getDefaultItemPosition()For Componentinstances 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 Groupassociated with the container | 
|  Header | getHeader()HeaderFieldassociated 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()ListofComponentinstances that are held by
 the container | 
|  LayoutManager | getLayoutManager()LayoutManagerthat should be used to layout the components
 in 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 | performApplyModel(Object model,
                                   LifecycleElement 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 Called after the initialize phase to perform conditional logic based on the model data | 
|  void | performFinalize(Object model,
                               LifecycleElement 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 The following finalization is done here: progressiveRender and conditionalRefresh variables are processed if set If any of the style properties were given, sets the style string on the style property Set the skipInTabOrder flag for nested components The last phase before the view is rendered | 
|  void | performInitialization(Object model)The following initialization is performed: Sorts the containers list of components Initializes the instructional field if necessary Initializes LayoutManager Initializes the component | 
|  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 | 
|  void | sortItems()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, setExpressionGraph, setPropertyExpressions | 
| Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase | 
|---|
| copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap | 
| Methods inherited from class java.lang.Object | 
|---|
| 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, setExpressionGraph, setPropertyExpressions | 
| Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean | 
|---|
| dataDictionaryPostProcessing, getComponentCode, getNamespaceCode | 
| Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement | 
|---|
| checkMutable, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, pushAllToContext, pushObjectToContext, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle | 
| Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable | 
|---|
| clone, copy, preventModification, unwrap | 
| Constructor Detail | 
|---|
public ContainerBase()
| Method Detail | 
|---|
public boolean isProcessRemoteFieldHolders()
isProcessRemoteFieldHolders in interface Containerpublic void performInitialization(Object model)
Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.
performInitialization in interface LifecycleElementperformInitialization in class ComponentBasemodel - - object instance containing the view dataComponentDefaultInitializeTask
public void performApplyModel(Object model,
                              LifecycleElement parent)
Where components can perform conditional logic such as dynamically generating new fields or setting field state based on the given data
performApplyModel in interface LifecycleElementperformApplyModel in class ComponentBasemodel - - Top level object containing the data (could be the form or a
 top level business object, dto)parent - parent lifecycle element
public void performFinalize(Object model,
                            LifecycleElement parent)
Here final preparations can be made based on the updated view state.
performFinalize in interface LifecycleElementperformFinalize in class ComponentBasemodel - - top level object containing the dataparent - - parent componentpublic List<String> getAdditionalTemplates()
If a parent or sibling component is referred to by this component's template, include that component's template here to ensure that it has been compiled already during bottom-up inline rendering.
getAdditionalTemplates in interface ComponentgetAdditionalTemplates in class ComponentBasepublic void sortItems()
sortItems in interface Container@ViewLifecycleRestriction public 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 ContainerContainer.getValidationMessages()public void setValidationMessages(ValidationMessages validationMessages)
setValidationMessages in interface Containerpublic 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 HelpableHelpable.getHelp()public void setHelp(Help help)
Helpable
setHelp in interface HelpableHelpable.setHelp(org.kuali.rice.krad.uif.widget.Help)public void setTooltipOfComponent(Tooltip tooltip)
setTooltipOfComponent in interface Helpabletooltip - Tooltip with the help for the containerHelpable.setTooltipOfComponent(org.kuali.rice.krad.uif.widget.Tooltip)public String getHelpTitle()
getHelpTitle in interface HelpableHelpable.setTooltipOfComponent(org.kuali.rice.krad.uif.widget.Tooltip)public abstract 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.
 
getItems in interface Containerpublic abstract void setItems(List<? extends Component> items)
setItems in interface Containeritems - 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()
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 Containerpublic void setLayoutManager(LayoutManager layoutManager)
setLayoutManager in interface Containerpublic 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
 
getHeader in interface Containerpublic void setHeader(Header header)
setHeader in interface Containerpublic 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
 
getFooter in interface Containerpublic void setFooter(Group footer)
setFooter in interface Containerpublic 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 Containerpublic 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 ContainerinstructionalMessage - public void completeValidation(ValidationTrace tracer)
completeValidation in interface ComponentcompleteValidation in class ComponentBasetracer - Record of component's location| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||