|
||||||||||
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.widget.WidgetBase org.kuali.rice.krad.uif.widget.RichTable
public class RichTable
Decorates a HTML Table client side with various tools
Decorations implemented depend on widget implementation. Examples are sorting, paging and skinning.
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 | |
---|---|
RichTable()
|
Method Summary | |
---|---|
protected void |
buildTableOptions(CollectionGroup collectionGroup)
Builds column options for sorting |
protected String |
constructTableColumnOptions(int target,
boolean isSortable,
Class dataTypeClass,
String sortDataType)
Constructs the sort data type for each data table columns in a format that will be used to initialize the data table widget via javascript |
String |
getAjaxSource()
Specifies a URL for acquiring the table data with ajax |
protected String |
getDataFieldColumnOptions(int target,
CollectionGroup collectionGroup,
DataField field)
Construct the column options for a data field |
String |
getEmptyTableMessage()
Returns the text which is used to display text when the table is empty |
String |
getGroupingOptionsJSString()
Get groupingOption |
Set<String> |
getHiddenColumns()
Holds propertyNames for the ones meant to be hidden since columns are visible by default |
Set<String> |
getSortableColumns()
Holds the propertyNames for columns that are to be sorted |
boolean |
isDisableTableSort()
Returns true if sorting is disabled |
boolean |
isForceAoColumnDefsOverride()
|
boolean |
isShowSearchAndExportOptions()
Returns true if search and export options are enabled |
void |
performFinalize(View view,
Object model,
Component component)
The following initialization is performed: Initializes component options for empty table message |
void |
setAjaxSource(String ajaxSource)
Setter for the Ajax source URL |
void |
setDisableTableSort(boolean disableTableSort)
Enables/disables the table sorting |
void |
setEmptyTableMessage(String emptyTableMessage)
Setter for a text to be displayed when the table is empty |
void |
setForceAoColumnDefsOverride(boolean forceAoColumnDefsOverride)
|
void |
setGroupingOptionsJSString(String groupingOptionsJSString)
Set the groupingOptions js data. |
void |
setHiddenColumns(Set<String> hiddenColumns)
Setter for the hidden columns set |
void |
setShowSearchAndExportOptions(boolean showSearchAndExportOptions)
Show/Hide the search and export options in tabletools |
void |
setSortableColumns(Set<String> sortableColumns)
Setter for sortable columns |
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
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 RichTable()
Method Detail |
---|
public void performFinalize(View view, Object model, Component component)
performFinalize
in interface Component
performFinalize
in class ComponentBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the datacomponent
- - parent componentComponent.performFinalize(org.kuali.rice.krad.uif.view.View, java.lang.Object,
org.kuali.rice.krad.uif.component.Component)
protected void buildTableOptions(CollectionGroup collectionGroup)
collectionGroup
- protected String getDataFieldColumnOptions(int target, CollectionGroup collectionGroup, DataField field)
collectionGroup
- - the collectionGroup in which the data field is definedfield
- - the field to construction options for
protected String constructTableColumnOptions(int target, boolean isSortable, Class dataTypeClass, String sortDataType)
isSortable
- - whether a column should be marked as sortabledataTypeClass
- - the class type of the column value - used determine the sType option - which identifies
the search plugin to usesortDataType
- - Defines a data source type for the sorting which can be used to read realtime information
from the table
public String getEmptyTableMessage()
public void setEmptyTableMessage(String emptyTableMessage)
emptyTableMessage
- public boolean isDisableTableSort()
public void setDisableTableSort(boolean disableTableSort)
disableTableSort
- the disableTableSort to setpublic boolean isShowSearchAndExportOptions()
public void setShowSearchAndExportOptions(boolean showSearchAndExportOptions)
showSearchAndExportOptions
- the showSearchAndExportOptions to setpublic Set<String> getHiddenColumns()
Duplicate entries are ignored and the order of entries is not significant
public void setHiddenColumns(Set<String> hiddenColumns)
hiddenColumns
- - a set containing propertyNamespublic Set<String> getSortableColumns()
Duplicate entries are ignored and the order of entries is not significant
public void setSortableColumns(Set<String> sortableColumns)
sortableColumns
- - a set containing propertyNames of columns to be sortedpublic String getAjaxSource()
When the ajax source URL is specified the rich table plugin will retrieve the data by invoking the URL and building the table rows from the result. This is different from the standard use of the rich table plugin with uses progressive enhancement to decorate a table that has already been rendereed
public void setAjaxSource(String ajaxSource)
ajaxSource
- public String getGroupingOptionsJSString()
public void setGroupingOptionsJSString(String groupingOptionsJSString)
groupingOptionsJSString
- public boolean isForceAoColumnDefsOverride()
public void setForceAoColumnDefsOverride(boolean forceAoColumnDefsOverride)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |