|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.DefaultController
org.olat.core.gui.components.table.TableController
public class TableController
EVENT_FILTER_SELECTED:EVENT_NOFILTER_SELECTED:Table component events:
excel media resource.
| Field Summary | |
|---|---|
static Event |
EVENT_FILTER_SELECTED
Event is fired when a specific filter is selected. |
static Event |
EVENT_NOFILTER_SELECTED
Event is fired when the 'apply no filter' is selected * |
| Constructor Summary | |
|---|---|
TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
java.util.List filters,
ShortName activeFilter,
java.lang.String filterTitle,
java.lang.String noFilterOption,
Translator tableTrans,
ControllerEventListener tableEventListener)
Constructor for the table controller using the table filter. |
|
TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
Translator tableTrans,
ControllerEventListener tableEventListener)
Constructor for the table controller |
|
TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
Translator tableTrans,
ControllerEventListener tableEventListener,
boolean enableTableSearch)
|
|
| Method Summary | |
|---|---|
void |
addColumnDescriptor(boolean visible,
ColumnDescriptor cd)
Add a table column descriptor |
void |
addColumnDescriptor(ColumnDescriptor cd)
Add a visible table column descriptor |
void |
addMultiSelectAction(java.lang.String actionKeyi18n,
java.lang.String actionIdentifier)
Add a multiselect action. |
void |
dispatchEvent(UserRequest ureq,
Controller source,
Event event)
|
void |
event(UserRequest ureq,
Component source,
Event event)
abstract event method for subclasses. |
ShortName |
getActiveFilter()
|
ColumnDescriptor |
getColumnDescriptor(int row)
Get the table column descriptor. |
java.util.List |
getSelectedSortedObjects(java.util.BitSet objectMarkers,
DefaultTableDataModel defaultTableDataModel)
Sorts the selected table row indexes according with the table Comparator, and then retrieves the rows from the input defaultTableDataModel. |
TableDataModel |
getTableDataModel()
Get the current table data model from the table |
void |
modelChanged()
|
void |
modelChanged(boolean resetSearchString)
Notifies the controller about a changed table data model. |
void |
setActiveFilter(ShortName activeFilter)
|
void |
setFilters(java.util.List filters,
ShortName activeFilter)
Sets the list of filters and the currently active filter |
void |
setMultiSelect(boolean isMultiSelect)
Sets wether user is able to select multiple rows via checkboxes. |
void |
setMultiSelectReadonlyAt(int row,
boolean readonly)
|
void |
setMultiSelectSelectedAt(int row,
boolean selected)
|
void |
setSelectedRowId(int selectedRowId)
Sets the selectedRowId to a specific row id. |
void |
setSortColumn(int sortColumn,
boolean isSortAscending)
Sets the sortColumn to a specific colun id. |
void |
setTableDataModel(TableDataModel tableDataModel)
Sets the tableDataModel. |
| Methods inherited from class org.olat.core.gui.control.DefaultController |
|---|
addControllerListener, addLoggingResourceable, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Event EVENT_NOFILTER_SELECTED
public static final Event EVENT_FILTER_SELECTED
| Constructor Detail |
|---|
public TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
java.util.List filters,
ShortName activeFilter,
java.lang.String filterTitle,
java.lang.String noFilterOption,
Translator tableTrans,
ControllerEventListener tableEventListener)
tableConfig - The table gui configuration determines the tables
behaviour, may be null to use default table config.ureq - The user requestwControl - The window controlfilters - A list of filter objects (ShortName)activeFilter - The initially activated filter objectfilterTitle - The translated title of the filternoFilterOption - The translated key for the no-filter filter or
null if not usedtableTrans - The translator that is used to translate the tabletableEventListener - The listener for the table and table controller
events
public TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
Translator tableTrans,
ControllerEventListener tableEventListener)
tableConfig - The table gui configuration determines the tables
behaviour, may be null to use default table config.ureq - The user requestwControl - The window controltableTrans - The translator that is used to translate the tabletableEventListener - The listener for the table and table controller
events
public TableController(TableGuiConfiguration tableConfig,
UserRequest ureq,
WindowControl wControl,
Translator tableTrans,
ControllerEventListener tableEventListener,
boolean enableTableSearch)
| Method Detail |
|---|
public void event(UserRequest ureq,
Component source,
Event event)
DefaultController
DefaultController.event(org.olat.core.gui.UserRequest,
org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
public void dispatchEvent(UserRequest ureq,
Controller source,
Event event)
dispatchEvent in interface ControllerEventListenerdispatchEvent in class DefaultControllerControllerEventListener.dispatchEvent(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)public ShortName getActiveFilter()
null if no
filter is appliedpublic void setActiveFilter(ShortName activeFilter)
activeFilter - The currently applied filter or null if
no filter is applied
public void setFilters(java.util.List filters,
ShortName activeFilter)
filters - List of TableFilteractiveFilter - active TableFilterpublic void modelChanged()
public void modelChanged(boolean resetSearchString)
public void setTableDataModel(TableDataModel tableDataModel)
tableDataModel - The tableDataModel to set
public void addColumnDescriptor(boolean visible,
ColumnDescriptor cd)
visible - true: is visible; false: is not visiblecd - column descriptorpublic void addColumnDescriptor(ColumnDescriptor cd)
cd - column descriptorpublic ColumnDescriptor getColumnDescriptor(int row)
row -
public TableDataModel getTableDataModel()
public java.util.List getSelectedSortedObjects(java.util.BitSet objectMarkers,
DefaultTableDataModel defaultTableDataModel)
objectMarkers -
public void setSelectedRowId(int selectedRowId)
selectedRowId - The selectedRowId to set
public void setSortColumn(int sortColumn,
boolean isSortAscending)
sortColumn - The sortColumn to setisSortAscending - true: sorting is ascendingpublic void setMultiSelect(boolean isMultiSelect)
isMultiSelect -
public void setMultiSelectSelectedAt(int row,
boolean selected)
public void setMultiSelectReadonlyAt(int row,
boolean readonly)
public void addMultiSelectAction(java.lang.String actionKeyi18n,
java.lang.String actionIdentifier)
actionKeyi18n - actionIdentifier -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||