|
||||||||||
| 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.AbstractUIPageObject
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.UserCacheKey
This enum holds the Values used as part of the key for the UserAttributes or SessionAttribute witch belong to a TableModel. |
| Constructor Summary | |
|---|---|
UITable(org.apache.wicket.PageParameters _parameters)
Constructor setting the parameters. |
|
UITable(UUID _commandUUID,
String _instanceKey)
Constructor setting the uuid and Key of the instance. |
|
UITable(UUID _commandUUID,
String _instanceKey,
String _openerId)
Constructor setting the uuid and Key of the instance. |
|
| Method Summary | |
|---|---|
void |
addFilterList(UITableHeader _uitableHeader,
Set<?> _list)
Add a filterlist to the filters of this UiTable. |
void |
addFilterRange(UITableHeader _uitableHeader,
String _from,
String _to)
Add a range to the filters of this UiTable. |
void |
execute()
Method is used to execute the UIObject (Fill it with data). |
String |
getCacheKey(UITable.UserCacheKey _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. |
UIRow |
getEmptyRow()
Getter method for the instance variable emptyRow. |
protected 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. |
List<?> |
getFilterPickList(UITableHeader _uitableHeader)
Get the List of values for a PICKERLIST. |
List<UITableHeader> |
getHeaders()
This is the getter method for the instance variable headers. |
protected List<org.efaps.db.Instance> |
getInstanceList()
Method to get the list of instance. |
org.efaps.admin.ui.AbstractCommand.SortDirection |
getSortDirection()
This is the getter method for the instance variable sortDirection. |
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. |
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 |
isEditable()
In create or edit mode this Table is editable. |
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(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(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(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.AbstractUIPageObject |
|---|
addHidden, checkAccessToInstances, getAccessMap, 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 |
|---|
addEventObject, executeEvents, getCallingCommand, getCallingCommandUUID, getCommand, getCommand, getCommandUUID, getInstanceFromManager, getMenuTreeKey, getMode, getOpenerId, getTarget, getTitle, hasInstanceManager, isCreateMode, isEditMode, isInitialized, isPicker, 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(UUID _commandUUID,
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(UUID _commandUUID,
String _instanceKey,
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 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,
Set<?> _list)
_uitableHeader - UitableHeader this filter belongs to_list - lsi of value to filter
public void addFilterRange(UITableHeader _uitableHeader,
String _from,
String _to)
throws org.efaps.util.EFapsException
_uitableHeader - UitableHeader this filter belongs to_from - from value_to - to value
org.efaps.util.EFapsException - on errorpublic UITable.Filter getFilter(UITableHeader _uitableHeader)
_uitableHeader - UitableHeader this filter belongs to
public List<?> getFilterPickList(UITableHeader _uitableHeader)
_uitableHeader - UitableHeader this filter belongs to
public 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 String getSortKey()
sortKey.
sortKeysortKey,
setSortKey(java.lang.String)public void setSortKey(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 String getCacheKey(UITable.UserCacheKey _key)
_key - UserAttributeKey the Key is wanted
public 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 boolean isEditable()
public void setColumnOrder(String _markupsIds)
_markupsIds - ids of the columns as a string with ; separatedprotected void setTableUUID(UUID _tableUUID)
tableUUID.
_tableUUID - the tableUUID to setprotected List<org.efaps.admin.event.EventDefinition> getEvents(org.efaps.admin.event.EventType _eventType)
_eventType - eventype to get
public void sort()
throws org.efaps.util.EFapsException
sortKey and the sort direction in sortDirection.
org.efaps.util.EFapsException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||