|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.ui.wicket.models.AbstractInstanceObject
org.efaps.ui.wicket.models.objects.AbstractUIObject
org.efaps.ui.wicket.models.objects.UIAbstractPageObject
org.efaps.ui.wicket.models.objects.UITable
public class UITable
TODO description!
| Nested Class Summary | |
|---|---|
class |
UITable.Filter
Class represents one filter applied to this UITable. |
static class |
UITable.UserAttributeKey
This enum holds the Values used as part of the key for the UserAttributes witch belong to a TableModel. |
| Constructor Summary | |
|---|---|
UITable(org.apache.wicket.PageParameters _parameters)
Constructor setting the parameters. |
|
UITable(java.util.UUID _commandUUID,
java.lang.String _instanceKey)
Constructor setting the uuid and Key of the instance. |
|
UITable(java.util.UUID _commandUUID,
java.lang.String _instanceKey,
java.lang.String _openerId)
Constructor setting the uuid and Key of the instance. |
|
| Method Summary | |
|---|---|
void |
addFilterList(UITableHeader _uitableHeader,
java.util.Set<?> _list)
Add a filterlist to the filters of this UiTable. |
void |
addFilterRange(UITableHeader _uitableHeader,
java.lang.String _from,
java.lang.String _to)
Add a range to the filters of this UiTable. |
void |
execute()
Method is used to execute the UIObject (Fill it with data). |
UIRow |
getEmptyRow()
Getter method for the instance variable emptyRow. |
protected java.util.List<org.efaps.admin.event.EventDefinition> |
getEvents(org.efaps.admin.event.EventType _eventType)
Method to get the events that are related to this UITable. |
UITable.Filter |
getFilter(UITableHeader _uitableHeader)
Method to get a Filter from the list of filters belonging to this UITable. |
java.util.List<?> |
getFilterPickList(UITableHeader _uitableHeader)
Get the List of values for a PICKERLIST. |
java.util.List<UITableHeader> |
getHeaders()
This is the getter method for the instance variable headers. |
protected java.util.List<org.efaps.db.Instance> |
getInstanceList()
Method to get the list of instance. |
protected java.util.List<java.util.List<org.efaps.db.Instance>> |
getInstanceListsOld()
Method to get the List of Instances for the table. |
org.efaps.admin.ui.AbstractCommand.SortDirection |
getSortDirection()
This is the getter method for the instance variable sortDirection. |
java.lang.String |
getSortKey()
This is the getter method for the instance variable sortKey. |
org.efaps.admin.ui.Table |
getTable()
This is the getter method for the instance variable #table. |
int |
getTableId()
This is the getter method for the instance variable tableId. |
java.lang.String |
getUserAttributeKey(UITable.UserAttributeKey _key)
This method generates the Key for a UserAttribute by using the UUID of the Command and the given UserAttributeKey, so that for every Table a unique key for sorting etc, is created. |
java.util.List<UIRow> |
getValues()
This is the getter method for the instance variable values. |
int |
getWidthWeight()
This is the getter method for the instance variable widthWeight. |
boolean |
isFiltered()
Are the values of the Rows filtered or not. |
boolean |
isShowCheckBoxes()
|
boolean |
isUserSetWidth()
This is the getter method for the instance variable userWidths. |
void |
removeFilter(UITableHeader _uiTableHeader)
Method to remove a filter from the filters. |
void |
resetModel()
This Method resets the Model, so that the next time the Model is going to be connected, the underlying Data will be received newly from the eFapsDataBase. |
void |
setColumnOrder(java.lang.String _markupsIds)
Method to set the order of the columns. |
void |
setShowCheckBoxes(boolean _showCheckBoxes)
This is the setter method for the instance variable showCheckBoxes. |
void |
setSortDirection(org.efaps.admin.ui.AbstractCommand.SortDirection _sortdirection)
Method to set he sort direction. |
void |
setSortKey(java.lang.String _sortKey)
This is the setter method for the instance variable sortKey. |
void |
setTableId(int _tableId)
This is the setter method for the instance variable tableId. |
protected void |
setTableUUID(java.util.UUID _tableUUID)
This is the setter method for the instance variable tableUUID. |
void |
sort()
The instance method sorts the table values depending on the sort key in sortKey and the sort direction in sortDirection. |
| Methods inherited from class org.efaps.ui.wicket.models.objects.UIAbstractPageObject |
|---|
addHidden, getHelpTarget, getHiddenCells, getNewRandom, getTargetCmd, getTargetCmdUUID, getUiID2Oid, getValue4Wizard, getWizard, hasTargetCmd, isPartOfWizardCall, isRenderRevise, isTargetCmdRevise, isTargetShowFile, setPartOfWizardCall, setRenderRevise, setTargetCmdRevise, setTargetCmdUUID, setWizard |
| Methods inherited from class org.efaps.ui.wicket.models.objects.AbstractUIObject |
|---|
executeEvents, getCallingCommand, getCallingCommandUUID, getCommand, getCommand, getCommandUUID, getInstanceFromManager, getMenuTreeKey, getMode, getOpenerId, getTarget, getTitle, hasInstanceManager, isCreateMode, isEditMode, isInitialized, isPrintMode, isSearchMode, isSubmit, isViewMode, setCallingCommandUUID, setCommandUUID, setInitialized, setMode, setOpenerId, setSubmit, validate |
| Methods inherited from class org.efaps.ui.wicket.models.AbstractInstanceObject |
|---|
getInstance, getInstanceKey, setInstanceKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UITable(org.apache.wicket.PageParameters _parameters)
throws org.efaps.util.EFapsException
_parameters - PageParameters
org.efaps.util.EFapsException - on error
public UITable(java.util.UUID _commandUUID,
java.lang.String _instanceKey)
throws org.efaps.util.EFapsException
_commandUUID - UUID of the Command_instanceKey - Key of the instance
org.efaps.util.EFapsException - on error
public UITable(java.util.UUID _commandUUID,
java.lang.String _instanceKey,
java.lang.String _openerId)
throws org.efaps.util.EFapsException
_commandUUID - UUID of the Command_instanceKey - Key of the instance_openerId - id of the opener
org.efaps.util.EFapsException - on error| Method Detail |
|---|
protected java.util.List<java.util.List<org.efaps.db.Instance>> getInstanceListsOld()
throws org.efaps.util.EFapsException
org.efaps.util.EFapsException - on error
protected java.util.List<org.efaps.db.Instance> getInstanceList()
throws org.efaps.util.EFapsException
org.efaps.util.EFapsException - on errorpublic void execute()
execute in class AbstractUIObjectpublic UIRow getEmptyRow()
emptyRow.
emptyRow
public void addFilterList(UITableHeader _uitableHeader,
java.util.Set<?> _list)
_uitableHeader - UitableHeader this filter belongs to_list - lsi of value to filter
public void addFilterRange(UITableHeader _uitableHeader,
java.lang.String _from,
java.lang.String _to)
_uitableHeader - UitableHeader this filter belongs to_from - from value_to - to valuepublic UITable.Filter getFilter(UITableHeader _uitableHeader)
_uitableHeader - UitableHeader this filter belongs to
public java.util.List<?> getFilterPickList(UITableHeader _uitableHeader)
_uitableHeader - UitableHeader this filter belongs to
public java.util.List<UITableHeader> getHeaders()
headers.
headerspublic org.efaps.admin.ui.AbstractCommand.SortDirection getSortDirection()
sortDirection.
sortDirectionsortDirection,
setSortDirection(org.efaps.admin.ui.AbstractCommand.SortDirection)public void setSortDirection(org.efaps.admin.ui.AbstractCommand.SortDirection _sortdirection)
_sortdirection - sort direction to setpublic java.lang.String getSortKey()
sortKey.
sortKeysortKey,
setSortKey(java.lang.String)public void setSortKey(java.lang.String _sortKey)
sortKey.
_sortKey - new value for instance variable sortKeysortKey,
getSortKey()public org.efaps.admin.ui.Table getTable()
#table.
#table#tablepublic int getTableId()
tableId.
tableIdpublic void setTableId(int _tableId)
tableId.
_tableId - the tableId to setpublic java.lang.String getUserAttributeKey(UITable.UserAttributeKey _key)
_key - UserAttributeKey the Key is wanted
public java.util.List<UIRow> getValues()
values.
values
org.efaps.util.EFapsExceptionvalues,
#setValuespublic int getWidthWeight()
widthWeight.
widthWeightpublic boolean isFiltered()
public boolean isShowCheckBoxes()
showCheckBoxespublic void setShowCheckBoxes(boolean _showCheckBoxes)
showCheckBoxes.
_showCheckBoxes - the showCheckBoxes to setpublic boolean isUserSetWidth()
userWidths.
userWidthspublic void removeFilter(UITableHeader _uiTableHeader)
_uiTableHeader - UITableHeader the filter is removed forpublic void resetModel()
resetModel in class AbstractUIObjectpublic void setColumnOrder(java.lang.String _markupsIds)
_markupsIds - ids of the columns as a string with ; separatedprotected void setTableUUID(java.util.UUID _tableUUID)
tableUUID.
_tableUUID - the tableUUID to setprotected java.util.List<org.efaps.admin.event.EventDefinition> getEvents(org.efaps.admin.event.EventType _eventType)
_eventType - eventype to get
public void sort()
sortKey and the sort direction in sortDirection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||