|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITableViewState
View state of a jaret table. The viewstate controls the rendering of the model (i.e. row heights).
| Nested Class Summary | |
|---|---|
static class |
ITableViewState.ColumnResizeMode
Enumeration for the possible resize behaviours: NONE: resize will only have an effect on the resized column SUBSEQUENT: resize will take/give the space from the next visible column (unless minwidth is reached) ALLSUBSEQUENT: resize will take/give the space from all following visible columns (unless minwidth of those is reached) ALL: width is interpreted as a weight; all columns will be resized Recommended mode is NONE since the other modes result in heavy redraw activity. |
static class |
ITableViewState.HAlignment
|
static class |
ITableViewState.RowHeightMode
Enumeration for the row height mode of a table row. |
static class |
ITableViewState.VAlignment
|
| Method Summary | |
|---|---|
void |
addTableViewStateListener(ITableViewStateListener tvsl)
Add a listener to be informed about changes on the viewstate. |
boolean |
columnResizingAllowed(IColumn column)
Check whether resizing of a column is allowed. |
ICellStyle |
getCellStyle(IRow row,
IColumn column)
Retrieve the cell style for a specified cell. |
ICellStyleProvider |
getCellStyleProvider()
Retrieve the cell style provider of the viewstate. |
ITableViewState.ColumnResizeMode |
getColumnResizeMode()
Retrieve the mode used when resizing a column. |
boolean |
getColumnSortingDirection(IColumn column)
Retrieve the sorting direction for a column. |
int |
getColumnSortingPosition(IColumn column)
Retrieve the position in the sorting order set. |
boolean |
getColumnVisible(IColumn column)
Check whether a column is visible. |
int |
getColumnWidth(IColumn column)
retrive the width of a column. |
int |
getMinimalColWidth()
Retrieve the minimum column width. |
int |
getMinimalRowHeight()
Get the configured minimal row heigth. |
int |
getRowHeight(IRow row)
Retrieve the current height of a row. |
ITableViewState.RowHeightMode |
getRowHeightMode()
Retrieve the default row heigth mode. |
ITableViewState.RowHeightMode |
getRowHeigthMode(IRow row)
Retrieve the row heigth mode for a specific row. |
java.util.List<IColumn> |
getSortedColumns()
Retrieve the list of columns in their display order. |
void |
removeTableViewStateListener(ITableViewStateListener tvsl)
Remove a listener from the viewstate. |
void |
setColumnResizeMode(ITableViewState.ColumnResizeMode resizeMode)
Set the mode to use when the size of a column changes. |
void |
setColumnResizingAllowed(IColumn column,
boolean resizingAllowed)
Set whether resizing a column is allowed. |
void |
setColumnVisible(IColumn column,
boolean visible)
Set the visibility of a column. |
void |
setColumnVisible(java.lang.String columnID,
boolean visible)
Set the visibility of a column. |
void |
setColumnWidth(IColumn column,
int width)
Set the width of a column. |
void |
setMinimalColWidth(int minimalColumnWidth)
Set the minimum col width. |
void |
setMinimalRowHeight(int minimalRowHeight)
Set the minimal row height. |
void |
setRowHeight(int height)
Set the row height for ALL rows. |
void |
setRowHeight(IRow row,
int height)
Set the height of a row. |
void |
setRowHeightMode(IRow row,
ITableViewState.RowHeightMode mode)
Set the row height mode for a specific row. |
void |
setRowHeightMode(ITableViewState.RowHeightMode mode)
Set the row heigth mode for all rows and the mode to use as the default for new rows. |
void |
setSortedColumns(java.util.List<IColumn> columns)
Set the order of the columns. |
void |
setSorting(IColumn column)
Handle the slection of a column for sorting (handle a click). |
| Method Detail |
|---|
int getRowHeight(IRow row)
row - row to query the height for.
void setRowHeight(IRow row,
int height)
row - rowheight - heightvoid setRowHeight(int height)
height - heightint getMinimalRowHeight()
void setMinimalRowHeight(int minimalRowHeight)
minimalRowHeight - value to setITableViewState.RowHeightMode getRowHeigthMode(IRow row)
row - row to get the heigth mode for
void setRowHeightMode(IRow row,
ITableViewState.RowHeightMode mode)
row - row to set the height mode formode - mode to set.void setRowHeightMode(ITableViewState.RowHeightMode mode)
mode - mode to be used.ITableViewState.RowHeightMode getRowHeightMode()
int getColumnWidth(IColumn column)
column - column
void setColumnWidth(IColumn column,
int width)
column - columnwidth - width in pixelint getMinimalColWidth()
void setMinimalColWidth(int minimalColumnWidth)
minimalColumnWidth - width a column can be minimal sized toboolean getColumnVisible(IColumn column)
column - column
void setColumnVisible(IColumn column,
boolean visible)
column - columnvisible - true for visible
void setColumnVisible(java.lang.String columnID,
boolean visible)
columnID - id of the columnvisible - true for visibleboolean columnResizingAllowed(IColumn column)
column - column
void setColumnResizingAllowed(IColumn column,
boolean resizingAllowed)
column - columnresizingAllowed - true for allow resizingITableViewState.ColumnResizeMode getColumnResizeMode()
void setColumnResizeMode(ITableViewState.ColumnResizeMode resizeMode)
resizeMode - the resize mode.java.util.List<IColumn> getSortedColumns()
void setSortedColumns(java.util.List<IColumn> columns)
columns - ordered list of columnsint getColumnSortingPosition(IColumn column)
column - column
boolean getColumnSortingDirection(IColumn column)
column - column to check the sorting direction
void setSorting(IColumn column)
column - column to add to the sorting (or to reverse its sorting direction)ICellStyleProvider getCellStyleProvider()
ICellStyle getCellStyle(IRow row,
IColumn column)
row - row of the cellcolumn - column of the cell
void addTableViewStateListener(ITableViewStateListener tvsl)
tvsl - listener to addvoid removeTableViewStateListener(ITableViewStateListener tvsl)
tvsl - listener to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||