|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.component.ConfigurableBase 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 | |
---|---|
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 |
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 |
Methods inherited from class org.kuali.rice.krad.uif.container.ContainerBase |
---|
getAdditionalMessageKeys, getAllInputFields, getComponentPrototypes, getErrorsField, getFooter, getHeader, getHelp, getInputFields, getInstructionalMessageField, getInstructionalText, getItemOrderingSequence, getLayoutManager, isFieldContainer, performApplyModel, performFinalize, setAdditionalMessageKeys, setErrorsField, setFieldContainer, setFooter, setHeader, setHelp, setInstructionalMessageField, setInstructionalText, setItemOrderingSequence, setLayoutManager, setRenderFooter, setRenderHeader |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
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.component.Configurable |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
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
org.kuali.rice.krad.web.view.container.ContainerBase#getSupportedComponents()
public final 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.
org.kuali.rice.krad.uif.BindingInfo.getBindingObjectPath()
public void setFieldBindingObjectPath(String fieldBindingObjectPath)
fieldBindingObjectPath
- public Disclosure getDisclosure()
public void setDisclosure(Disclosure disclosure)
disclosure
- 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |