|
||||||||||
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 org.kuali.rice.krad.uif.container.Group
public class Group
Container that holds a list of Field
or other Group
instances
Groups can exist at different levels of the View
, providing
conceptual groupings such as the page, section, and group. In addition, other
group types can be created to add behavior like collection support
Group
implementation has properties for defaulting the binding
information (such as the parent object path and a binding prefix) for the
fields it contains. During the phase these properties (if given) are set on
the fields contained in the Group
that implement
DataBinding
, unless they have already been set on the field.
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 | |
---|---|
Group()
Default Constructor |
Method Summary | |
---|---|
ArrayList<ErrorReport> |
completeValidation(TracerToken tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
String |
getComponentTypeName()
The name for the component type |
Disclosure |
getDisclosure()
Disclosure widget that provides collapse/expand functionality for the group |
String |
getFieldBindByNamePrefix()
Binding prefix string to set on each of the groups DataField instances |
String |
getFieldBindingObjectPath()
Object binding path to set on each of the group's InputField instances |
List<? extends Component> |
getItems()
List of Component instances that are held by
the container |
Scrollpane |
getScrollpane()
Scrollpane widget that provides scrolling functionality for the group |
Set<Class<? extends Component>> |
getSupportedComponents()
Set of Component classes that may be placed
into the container |
void |
performInitialization(View view,
Object model)
The following actions are performed: Sets the bindByNamePrefix if blank on any InputField and FieldGroup instances within the items List |
void |
setDisclosure(Disclosure disclosure)
Setter for the group's disclosure instance |
void |
setFieldBindByNamePrefix(String fieldBindByNamePrefix)
Setter for the field binding prefix |
void |
setFieldBindingObjectPath(String fieldBindingObjectPath)
Setter for the field object binding path |
void |
setItems(List<? extends Component> items)
Setter for the Group's list of components |
void |
setScrollpane(Scrollpane scrollpane)
Setter for the group's scrollpane instance |
Methods inherited from class org.kuali.rice.krad.uif.container.ContainerBase |
---|
getComponentPrototypes, getDefaultItemPosition, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, performApplyModel, performFinalize, setDefaultItemPosition, setFooter, setHeader, setHeaderText, setHelp, setInstructionalMessage, setInstructionalText, setLayoutManager, setRenderFooter, setRenderHeader, setTooltipOfComponent, setValidationMessages |
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.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 Group()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class ContainerBase
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 List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ContainerBase
ComponentBase.getComponentsForLifecycle()
public Set<Class<? extends Component>> getSupportedComponents()
Container
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
Container.getSupportedComponents()
public String getComponentTypeName()
Component
This is used within the rendering layer to pass the component instance into the template. The component instance is exported under the name given by this method.
Component.getComponentTypeName()
public String getFieldBindByNamePrefix()
DataField
instances
As opposed to setting the bindingPrefix on each attribute field instance, it can be set here for the group. During initialize the string will then be set on each attribute field instance if the bindingPrefix is blank and not a form field
public void setFieldBindByNamePrefix(String fieldBindByNamePrefix)
fieldBindByNamePrefix
- public String getFieldBindingObjectPath()
InputField
instances
When the attributes of the group belong to a object whose path is different from the default then this property can be given to set each of the attributes instead of setting the model path on each one. The object path can be overridden at the attribute level. The object path is set to the fieldBindingObjectPath during the initialize phase.
BindingInfo.getBindingObjectPath()
public void setFieldBindingObjectPath(String fieldBindingObjectPath)
fieldBindingObjectPath
- public Disclosure getDisclosure()
public void setDisclosure(Disclosure disclosure)
disclosure
- public Scrollpane getScrollpane()
public void setScrollpane(Scrollpane scrollpane)
scrollpane
- public 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
getItems
in class ContainerBase
ContainerBase.getItems()
public void setItems(List<? extends Component> items)
setItems
in interface Container
setItems
in class ContainerBase
items
- public ArrayList<ErrorReport> completeValidation(TracerToken tracer)
Component
completeValidation
in interface Component
completeValidation
in class ContainerBase
tracer
- Record of component's location
Component.completeValidation(org.kuali.rice.krad.datadictionary.validator.TracerToken)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |