|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Table
Interface describing a table for rendering in HTML
| Field Summary | |
|---|---|
static int |
SELECTION_HIDDEN
The first column is the oid or object, but the column is not shown: the column is only needed to find out the object for tablehandlers (linestyle, filter) |
static int |
SELECTION_LINK
A link is used to select a row. |
static int |
SELECTION_MULTIPLE
Show a checkbox for multiple selection of rows. |
static int |
SELECTION_NONE
No selection of rows. |
static int |
SELECTION_ROW_MULTIPLE
The line is clickable, multiple selections possible. |
static int |
SELECTION_ROW_SINGLE
The line is clickable, only one line is selected. |
static int |
SELECTION_SINGLE
Show a radio button for single selection of a row. |
| Method Summary | |
|---|---|
List<ColumnDescription> |
getColumns()
Return a list of column descriptions. |
String |
getDefaultAction()
Returns the action that is executed on doubleclick on a row. |
String |
getEditTarget()
The default target for toolbar functions |
String |
getEditTargetProps()
Return the window properties for the edit target |
String |
getEditUrl()
Returns an url used as link for toolbar functions |
String |
getFieldName()
Return the name of the checkbox or radio buttons |
String |
getFilterId()
Returns the id that is used when column filters are stored. |
String |
getId()
Returns the id of this table |
Page |
getPage()
Define the page the table uses. |
List<String> |
getSelectedItems()
|
int |
getSelectionMode()
Return the mode for selection. |
int |
getSortColumn()
Return the sort column. |
String |
getTableFrameName()
Returns the name of the frame where the table resides. |
TableModel |
getTableModel()
Builds the final tablemodel containing all data displayed in the table. |
int |
getTableSize()
Determines the tablesize of the tablemodel without reading all the objects. |
Object |
getTitle()
Return a string or Component for table title |
String |
getToolbarActions()
Return a comma separated list of action ids for the toolbar. |
String |
getToolbarFrameName()
Returns the name of the frame where the toolbar resides. |
boolean |
hasVerticalToolbar()
Returns true if the toolbar is vertical, false for horizontal. |
void |
init(HttpServletRequest req)
Init the tablemodel (determine data to be displayed). |
boolean |
isSortable()
Is the table sortable. |
String |
lineStyle(int i,
String style)
Use this method for defining a row specific css-class. |
boolean |
oidOnly()
If true the value of the checkbox or radio button contains only the oid, otherwise it contains classname:oid |
boolean |
showCounter()
Returns true if a counter is shown below the table. |
boolean |
showToolbarIcons()
Returns true if the toolbar shows the icons, false for text toolbar. |
boolean |
sortAscending()
Is the table sorted ascending. |
boolean |
useColumnPicker()
Returns true if column picker should be shown. |
boolean |
useFilter()
Returns true if column filters are enabled. |
boolean |
usePaging()
Returns true if paging is enabled. |
| Field Detail |
|---|
static final int SELECTION_NONE
static final int SELECTION_LINK
static final int SELECTION_SINGLE
static final int SELECTION_MULTIPLE
static final int SELECTION_HIDDEN
static final int SELECTION_ROW_SINGLE
static final int SELECTION_ROW_MULTIPLE
| Method Detail |
|---|
void init(HttpServletRequest req)
req - int getTableSize()
TableModel getTableModel()
Object getTitle()
Page getPage()
boolean isSortable()
boolean sortAscending()
int getSortColumn()
String getToolbarActions()
String getTableFrameName()
String getToolbarFrameName()
boolean hasVerticalToolbar()
boolean showToolbarIcons()
String lineStyle(int i,
String style)
i - the row indexstyle - the css class that is set by the table renderer
int getSelectionMode()
boolean oidOnly()
String getEditTarget()
String getEditTargetProps()
String getFieldName()
String getEditUrl()
String getDefaultAction()
getToolbarActions()
for a description of allowed values
boolean useFilter()
boolean usePaging()
boolean useColumnPicker()
String getFilterId()
boolean showCounter()
List<ColumnDescription> getColumns()
String getId()
List<String> getSelectedItems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||