|
||||||||||
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 org.kuali.rice.krad.uif.container.LightTable
public class LightTable
LightTable is a light-weight collection table implementation that supports a subset of features, Current known supported features are:
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 | |
---|---|
LightTable()
LightTable constructor |
Method Summary | ||
---|---|---|
protected Map<String,String> |
addChildExpressions(List<? extends Component> components,
Map<String,String> expressionMap)
Add expressions to the expression map for nested components of specific types |
|
protected Map<String,String> |
buildExpressionMap(Component item,
Map<String,String> expressionMap)
Builds the expression map which contains "propertyName@@@id" and the expression. |
|
void |
buildRows(View view,
String rowTemplate,
UifFormBase model)
Build the rows from the rowTemplate passed in. |
|
protected
|
copyProperties(T component)
Copies properties for copy() |
|
protected String |
evaluateAndReplaceExpressionValues(String row,
int index,
Object model,
Map<String,Object> expandedContext,
Pattern expressionPattern,
ExpressionEvaluator expressionEvaluator)
Evaluate expressions and replace content found by the expressionPattern in the row |
|
protected String |
evaluateRenderExpressions(String row,
int index,
Object model,
Map<String,Object> expandedContext,
ExpressionEvaluator expressionEvaluator)
Evaluates the render expressions for the row and removes the content if render is evaluated false |
|
BindingInfo |
getBindingInfo()
The bindingInfo for this collection table, containg the property path and other options |
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
|
Map<String,String> |
getConditionalRowCssClasses()
The row css classes for the rows of this layout |
|
protected String |
getCurrentColumnValue()
|
|
Map<String,String> |
getExpressionConversionMap()
|
|
List<Label> |
getHeaderLabels()
The labels for the header derived from the items of this collection (the fields) |
|
List<String> |
getInitialComponentIds()
|
|
String |
getPropertyName()
The propertyName of the list backing this collection |
|
Map<String,String> |
getRenderIdExpressionMap()
|
|
RichTable |
getRichTable()
The richTable widget definition for this table for setting dataTable javascript options |
|
protected String |
handleDataFieldInRow(Component item,
Object obj,
String row,
int index,
String originalId)
Special handling of the DataField in the row, replaces necessary content with row specific content |
|
protected String |
handleInputFieldInRow(Component item,
Object obj,
String row,
int index,
String originalId)
Special handling of the InputField in the row, replaces necessary content with row specific content |
|
boolean |
isEmptyTable()
True if this table is empty, false otherwise |
|
void |
performFinalize(Object model,
Component parent)
performFinalize override corrects the binding path for the DataFields and turns off rendering on some components |
|
void |
performInitialization(Object model)
Initialization override that sets up DataField value placeholders for parsing and populates the expressionConversionMap |
|
void |
processExpression(String name,
Component item,
Map<String,String> expressionMap,
List<String> toRemove)
Process the expression for the item by putting placeholder values in for String properties and adding markers for render expressions to the component; adds the original expression to the expressionMap |
|
void |
setBindingInfo(BindingInfo bindingInfo)
Set the bindingInfo |
|
void |
setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
Set the conditionalRowCssClasses |
|
protected void |
setCurrentColumnValue(String currentColumnValue)
Set the current column value |
|
void |
setEmptyTable(boolean emptyTable)
|
|
void |
setExpressionConversionMap(Map<String,String> expressionConversionMap)
|
|
void |
setHeaderLabels(List<Label> headerLabels)
|
|
void |
setInitialComponentIds(List<String> initialComponentIds)
|
|
void |
setPropertyName(String propertyName)
Set the propertyName |
|
void |
setRenderIdExpressionMap(Map<String,String> renderIdExpressionMap)
|
|
void |
setRichTable(RichTable richTable)
Set the richTable widget |
Methods inherited from class org.kuali.rice.krad.uif.container.Group |
---|
completeValidation, getComponentTypeName, getDisclosure, getFieldBindByNamePrefix, getFieldBindingObjectPath, getItems, getScrollpane, getSupportedComponents, isRenderLoading, setDisclosure, setFieldBindByNamePrefix, setFieldBindingObjectPath, setItems, setScrollpane |
Methods inherited from class org.kuali.rice.krad.uif.container.ContainerBase |
---|
getComponentPrototypes, getDefaultItemPosition, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, initializePendingTasks, performApplyModel, 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 |
---|
dataDictionaryPostProcessing, 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 |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, copy, getId, isMutable, setId |
Constructor Detail |
---|
public LightTable()
Method Detail |
---|
public void performInitialization(Object model)
performInitialization
in interface LifecycleElement
performInitialization
in class Group
model
- - object instance containing the view dataorg.kuali.rice.krad.uif.component.ComponentBase#performInitialization(org.kuali.rice.krad.uif.view.View,
java.lang.Object)
protected Map<String,String> buildExpressionMap(Component item, Map<String,String> expressionMap)
item
- the item to iterate onexpressionMap
- the map holding the expressions for the items of this collection
public void processExpression(String name, Component item, Map<String,String> expressionMap, List<String> toRemove)
name
- the property nameitem
- the component this expressio is onexpressionMap
- the map to add expressions totoRemove
- the property name is added this map to be removed laterprotected Map<String,String> addChildExpressions(List<? extends Component> components, Map<String,String> expressionMap)
components
- the child componentsexpressionMap
- the map to add expressions to
public void performFinalize(Object model, Component parent)
performFinalize
in interface LifecycleElement
performFinalize
in class ContainerBase
model
- - top level object containing the dataparent
- - parent componentorg.kuali.rice.krad.uif.component.ComponentBase#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 Group
Component.getComponentsForLifecycle()
public void buildRows(View view, String rowTemplate, UifFormBase model)
view
- the view instance the table is being built withinrowTemplate
- the first row of the collection in html generated from the ftlmodel
- the modelprotected String evaluateAndReplaceExpressionValues(String row, int index, Object model, Map<String,Object> expandedContext, Pattern expressionPattern, ExpressionEvaluator expressionEvaluator)
row
- the row being modifiedindex
- the line indexmodel
- the modelexpandedContext
- the context to evaluate expressions againstexpressionPattern
- the expression pattern used to find expression tokens for value replacementexpressionEvaluator
- the expression service to use for evaluation
protected String evaluateRenderExpressions(String row, int index, Object model, Map<String,Object> expandedContext, ExpressionEvaluator expressionEvaluator)
row
- the row being modifiedindex
- the line indexmodel
- the modelexpandedContext
- the context to evaluate expressions againstexpressionEvaluator
- the expression service to use for evaluation
protected String handleDataFieldInRow(Component item, Object obj, String row, int index, String originalId)
item
- the item being processedobj
- the row's object modelrow
- the row in htmlindex
- the current row indexoriginalId
- the original id of the component item
protected String handleInputFieldInRow(Component item, Object obj, String row, int index, String originalId)
item
- the item being processedobj
- the row's object modelrow
- the row in htmlindex
- the current row indexoriginalId
- the original id of the component item
public String getPropertyName()
getPropertyName
in interface DataBinding
public void setPropertyName(String propertyName)
propertyName
- public BindingInfo getBindingInfo()
getBindingInfo
in interface DataBinding
BindingInfo
public void setBindingInfo(BindingInfo bindingInfo)
setBindingInfo
in interface DataBinding
bindingInfo
- public List<Label> getHeaderLabels()
public RichTable getRichTable()
public void setRichTable(RichTable richTable)
richTable
- public Map<String,String> getConditionalRowCssClasses()
To set a css class on all rows, use "all" as a key. To set a class for even rows, use "even" as a key, for odd rows, use "odd". Use a one-based index to target a specific row by index. SpringEL can be used as a key and the expression will be evaluated; if evaluated to true, the class(es) specified will be applied.
public void setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
conditionalRowCssClasses
- public boolean isEmptyTable()
public void setHeaderLabels(List<Label> headerLabels)
public void setExpressionConversionMap(Map<String,String> expressionConversionMap)
public Map<String,String> getExpressionConversionMap()
public List<String> getInitialComponentIds()
public Map<String,String> getRenderIdExpressionMap()
public void setInitialComponentIds(List<String> initialComponentIds)
public void setRenderIdExpressionMap(Map<String,String> renderIdExpressionMap)
public void setEmptyTable(boolean emptyTable)
protected String getCurrentColumnValue()
protected void setCurrentColumnValue(String currentColumnValue)
currentColumnValue
- protected <T> void copyProperties(T component)
DictionaryBeanBase
copyProperties
in class Group
component
- base beanDictionaryBeanBase.copyProperties(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |