public class LightTable extends Group implements DataBinding
INITIAL_ORDER_VALUE| Constructor and Description |
|---|
LightTable()
LightTable constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 <T> void |
copyProperties(T component)
Copies the properties over for the copy method
|
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(View view,
Object model,
Component parent)
performFinalize override corrects the binding path for the DataFields and turns off rendering on some components
|
void |
performInitialization(View view,
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
|
completeValidation, getComponentTypeName, getDisclosure, getFieldBindByNamePrefix, getFieldBindingObjectPath, getItems, getScrollpane, getSupportedComponents, isRenderLoading, setDisclosure, setFieldBindByNamePrefix, setFieldBindingObjectPath, setItems, setScrollpanegetComponentPrototypes, getDefaultItemPosition, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, performApplyModel, setDefaultItemPosition, setFooter, setHeader, setHeaderText, setHelp, setInstructionalMessage, setInstructionalText, setLayoutManager, setRenderFooter, setRenderHeader, setTooltipOfComponent, setValidationMessages, sortItemsaddCellCssClass, addDataAttribute, addDataAttributeIfNonEmpty, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellStyleClassesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getComponentSecurityClass, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setWidthgetExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraphgetComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellCssClass, addDataAttribute, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, pushAllToContext, pushObjectToContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setWidthgetExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraphgetComponentCode, getNamespaceCodegetOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScriptpublic LightTable()
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)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 collectionpublic 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 topublic void performFinalize(View view, Object model, Component parent)
performFinalize in interface ComponentperformFinalize in class ContainerBaseview - - view instance that should be finalized for renderingmodel - - top level object containing the dataparent - - parent componentComponentBase.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 ComponentgetComponentsForLifecycle in class GroupComponent.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 evaluationprotected 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 evaluationprotected 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 itemprotected 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 itempublic String getPropertyName()
getPropertyName in interface DataBindingpublic void setPropertyName(String propertyName)
propertyName - public BindingInfo getBindingInfo()
getBindingInfo in interface DataBindingBindingInfopublic void setBindingInfo(BindingInfo bindingInfo)
setBindingInfo in interface DataBindingbindingInfo - 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)
ComponentBasecopyProperties in class Groupcomponent - base beanComponentBase.copy()Copyright © 2005–2016 The Kuali Foundation. All rights reserved.