|
|||||||||
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
Nested Class Summary | |
---|---|
static class |
Table.ToolbarShape
|
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 | |
---|---|
java.util.List<ColumnDescription> |
getColumns()
Return a list of column descriptions. |
java.lang.String |
getDefaultAction()
Returns the action that is executed on doubleclick on a row. |
java.lang.String |
getEditTarget()
The default target for toolbar functions |
java.lang.String |
getEditTargetProps()
Return the window properties for the edit target |
java.lang.String |
getEditUrl()
Returns an url used as link for toolbar functions |
java.lang.String |
getFieldName()
Return the name of the checkbox or radio buttons |
java.lang.String |
getFilterId()
Returns the id that is used when column filters are stored. |
java.lang.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). |
java.util.List<java.lang.String> |
getSelectedItems()
|
int |
getSelectionMode()
Return the mode for selection. |
int |
getSortColumn()
Return the sort column. |
java.lang.String |
getTableFrameName()
Returns the name of the frame where the table resides. |
javax.swing.table.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. |
java.lang.Object |
getTitle()
Return a string or Component for table title |
java.lang.String |
getToolbarActions()
Return a comma separated list of action ids for the toolbar. |
java.lang.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(javax.servlet.http.HttpServletRequest req)
Init the tablemodel (determine data to be displayed). |
boolean |
isSortable()
Is the table sortable. |
java.lang.String |
lineStyle(int i,
java.lang.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(javax.servlet.http.HttpServletRequest req)
req
- int getTableSize()
javax.swing.table.TableModel getTableModel()
java.lang.Object getTitle()
Page getPage()
boolean isSortable()
boolean sortAscending()
int getSortColumn()
java.lang.String getToolbarActions()
java.lang.String getTableFrameName()
java.lang.String getToolbarFrameName()
boolean hasVerticalToolbar()
boolean showToolbarIcons()
Table.ToolbarShape getToolbarShape()
java.lang.String lineStyle(int i, java.lang.String style)
i
- the row indexstyle
- the css class that is set by the table renderer
int getSelectionMode()
boolean oidOnly()
java.lang.String getEditTarget()
java.lang.String getEditTargetProps()
java.lang.String getFieldName()
java.lang.String getEditUrl()
java.lang.String getDefaultAction()
getToolbarActions()
for a description of allowed values
boolean useFilter()
boolean usePaging()
boolean useColumnPicker()
java.lang.String getFilterId()
boolean showCounter()
java.util.List<ColumnDescription> getColumns()
java.lang.String getId()
java.util.List<java.lang.String> getSelectedItems()
int getPagesize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |