|
||||||||||
| 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
org.kuali.rice.krad.uif.container.Group
org.kuali.rice.krad.uif.container.TreeGroup
public class TreeGroup
Group component that is backed by a Tree data structure and typically
rendered as a tree in the user interface
| 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 | |
|---|---|
TreeGroup()
|
|
| Method Summary | |
|---|---|
protected void |
addNodeComponents(Node<Group,Message> node,
List<Component> components)
Retrieves the Component instances from the node for building the nested
components list |
protected void |
buildTreeGroups(View view,
Object model)
Builds the components that will be rendered as part of the tree group |
protected Node<Group,Message> |
buildTreeNode(Node<Object,String> nodeData,
String bindingPrefix,
String parentNode)
|
BindingInfo |
getBindingInfo()
Returns the BindingInfo instance that is configured for 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 |
NodePrototype |
getDefaultNodePrototype()
|
Map<Class<?>,NodePrototype> |
getNodePrototypeMap()
|
String |
getPropertyName()
Name of the property (relative to the parent object) the component binds to |
Tree |
getTree()
|
Tree<Group,Message> |
getTreeGroups()
|
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 |
performInitialization(View view,
Object model)
The following actions are performed: Set fieldBindModelPath to the collection model path (since the fields have to belong to the same model as the collection) Set defaults for binding Calls view helper service to initialize prototypes |
void |
setBindingInfo(BindingInfo bindingInfo)
Setter for the binding info instance |
void |
setDefaultNodePrototype(NodePrototype defaultNodePrototype)
|
void |
setNodePrototypeMap(Map<Class<?>,NodePrototype> nodePrototypeMap)
|
void |
setPropertyName(String propertyName)
|
void |
setTree(Tree tree)
|
void |
setTreeGroups(Tree<Group,Message> treeGroups)
|
| Methods inherited from class org.kuali.rice.krad.uif.container.Group |
|---|
completeValidation, getComponentTypeName, getDisclosure, getFieldBindByNamePrefix, getFieldBindingObjectPath, getItems, getScrollpane, getSupportedComponents, setDisclosure, setFieldBindByNamePrefix, setFieldBindingObjectPath, setItems, setScrollpane |
| Methods inherited from class org.kuali.rice.krad.uif.container.ContainerBase |
|---|
getDefaultItemPosition, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, performFinalize, setDefaultItemPosition, setFooter, setHeader, setHeaderText, setHelp, setInstructionalMessage, setInstructionalText, setLayoutManager, setRenderFooter, setRenderHeader, setTooltipOfComponent, setValidationMessages, sortItems |
| 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 TreeGroup()
| Method Detail |
|---|
public void performInitialization(View view,
Object model)
performInitialization in interface ComponentperformInitialization in class Groupview - - 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 ComponentperformApplyModel in class ContainerBaseview - - 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)
protected void buildTreeGroups(View view,
Object model)
The component tree group mirrors the tree data structure on the model. For each node of
the data structure, a corresponding Message will be created for the node
label, and a Group component for the node data. These are placed into a new
node for the component tree. After the tree is built it is set as a property on the tree group
to be read by the renderer
view - - view instance the tree group belongs tomodel - - object containing the view data from which the tree data will be retrieved
protected Node<Group,Message> buildTreeNode(Node<Object,String> nodeData,
String bindingPrefix,
String parentNode)
public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService for the various lifecycle callbacks
getComponentsForLifecycle in interface ComponentgetComponentsForLifecycle in class GroupComponent.getComponentsForLifecycle()public List<Component> getComponentPrototypes()
ComponentPrototypes 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 ComponentgetComponentPrototypes in class ContainerBaseComponent.getComponentPrototypes()
protected void addNodeComponents(Node<Group,Message> node,
List<Component> components)
Component instances from the node for building the nested
components list
node - - node to pull components fromcomponents - - list to add components topublic String getPropertyName()
DataBinding
getPropertyName in interface DataBindingpublic void setPropertyName(String propertyName)
public BindingInfo getBindingInfo()
DataBindingBindingInfo instance that is configured for the
component
getBindingInfo in interface DataBindingBindingInfopublic void setBindingInfo(BindingInfo bindingInfo)
DataBinding
setBindingInfo in interface DataBindingpublic NodePrototype getDefaultNodePrototype()
public void setDefaultNodePrototype(NodePrototype defaultNodePrototype)
defaultNodePrototype - the defaultNodePrototype to setpublic Map<Class<?>,NodePrototype> getNodePrototypeMap()
public void setNodePrototypeMap(Map<Class<?>,NodePrototype> nodePrototypeMap)
nodePrototypeMap - the nodePrototypeMap to setpublic Tree<Group,Message> getTreeGroups()
public void setTreeGroups(Tree<Group,Message> treeGroups)
public Tree getTree()
public void setTree(Tree tree)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||