public class LightTable extends GroupBase implements DataBinding
templateOptions
componentCode, namespaceCode
INITIAL_ORDER_VALUE
Constructor and Description |
---|
LightTable()
LightTable constructor
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
addChildExpressions(Collection<? extends LifecycleElement> 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 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
|
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,
LifecycleElement 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
|
afterEvaluateExpression, completeValidation, getComponentTypeName, getDisclosure, getFieldBindByNamePrefix, getFieldBindingObjectPath, getItems, getScrollpane, getSupportedComponents, getWrapperTag, isAjaxDisclosureGroup, isRenderLoading, setDisclosure, setFieldBindByNamePrefix, setFieldBindingObjectPath, setItems, setScrollpane, setWrapperTag
getAdditionalTemplates, getDefaultItemPosition, getEnterKeyAction, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, isProcessRemoteFieldHolders, performApplyModel, setDefaultItemPosition, setEnterKeyAction, setFooter, setHeader, setHeaderText, setHelp, setInstructionalMessage, setInstructionalText, setLayoutManager, setRenderFooter, setRenderHeader, setTooltipOfComponent, setValidationMessages, sortItems
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, checkMutable, clone, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContainerIdSuffix, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPhasePathMapping, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getViewPath, getViewStatus, getWidth, getWrapperCssClasses, getWrapperCssClassesAsString, getWrapperStyle, initializeComponentSecurity, initializePendingTasks, isDisableSessionPersistence, isDisclosedByAction, isEditAuthz, isFinal, isForceSessionPersistence, isHidden, isInitialized, isModelApplied, isMutable, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRender, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, isViewAuthz, notifyCompleted, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContainerIdSuffix, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setEditAuthz, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPhasePathMapping, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewAuthz, setViewPath, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle, skipLifecycle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, afterEvaluateExpression, appendToStyle, completeValidation, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getComponentTypeName, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getLibraryCssClasses, getMethodToCallOnRefresh, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
checkMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycle
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript
getHeaderText, setHeaderText, setRenderFooter
getEnterKeyAction, getFooter, getHeader, getInstructionalMessage, getLayoutManager, getValidationMessages, isProcessRemoteFieldHolders, setEnterKeyAction, setFooter, setHeader, setInstructionalMessage, setLayoutManager, setValidationMessages, sortItems
getHelp, getHelpTitle, setHelp, setTooltipOfComponent
public LightTable()
public void performInitialization(Object model)
performInitialization
in interface LifecycleElement
performInitialization
in class GroupBase
model
- - object instance containing the view dataComponentDefaultInitializeTask
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(Collection<? extends LifecycleElement> components, Map<String,String> expressionMap)
components
- the child componentsexpressionMap
- the map to add expressions topublic void performFinalize(Object model, LifecycleElement parent)
performFinalize
in interface LifecycleElement
performFinalize
in class GroupBase
model
- - top level object containing the dataparent
- - parent componentpublic 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 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
- Copyright © 2005–2014 The Kuali Foundation. All rights reserved.