public interface Table
Modifier and Type | Interface and Description |
---|---|
static class |
Table.ToolbarShape |
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
getHelpContext()
Returns the context for online-help
|
String |
getId()
Returns the id of this table
|
Page |
getPage()
Define the page the table uses.
|
int |
getPagesize()
Return the size of a page (when using paging).
|
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.
|
Table.ToolbarShape |
getToolbarShape()
Returns the desired mode of the toolbar.
|
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
|
void |
setSearchString(String searchString)
Sets the search string for that table which may be used for filtering the table content
|
boolean |
showCounter()
Returns true if a counter is shown below the table.
|
boolean |
showToolbarIcons()
Deprecated.
use getToolbarShape()
|
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.
|
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
void init(HttpServletRequest req)
req
- void setSearchString(String searchString)
searchString
- a string for filtering or null if no search string is definedint getTableSize()
TableModel getTableModel()
Object getTitle()
Page getPage()
boolean isSortable()
boolean sortAscending()
int getSortColumn()
String getToolbarActions()
String getTableFrameName()
String getToolbarFrameName()
boolean hasVerticalToolbar()
@Deprecated boolean showToolbarIcons()
Table.ToolbarShape getToolbarShape()
String lineStyle(int i, String style)
i
- the row indexstyle
- the css class that is set by the table rendererint getSelectionMode()
boolean oidOnly()
String getEditTarget()
String getEditTargetProps()
String getFieldName()
String getEditUrl()
String getDefaultAction()
getToolbarActions()
for a description of allowed valuesboolean useFilter()
boolean usePaging()
boolean useColumnPicker()
String getFilterId()
boolean showCounter()
List<ColumnDescription> getColumns()
String getId()
String getHelpContext()
int getPagesize()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.