|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Programmers interface to an direct table widget model at the client.
| Field Summary | |
static int |
S_NON_SORTABLE
Indicates that non of the table rows may be sorted. |
| Fields inherited from interface at.spardat.xma.mdl.table.ITableWM |
S_LAST, S_MULTI_SELECT, S_ONE_WAY |
| Method Summary | |
XMATableColumn |
getColumn(int i)
Returns the column at the provided zero based index. |
at.spardat.enterprise.fmt.IFmt |
getFormatter(int columnIndex)
Returns the formatter set for the column at index columnIndex or null if none has been set. |
int |
getSortingColumn()
Returns the index of the column sorting the table or -1 if the table is not sorted by any column. |
boolean |
hasSortIndicator()
Shows if this table shows a sort indicator at the sorting column's header. |
boolean |
isSortable(int columnIndex)
Returns true if the column at index columnIndex may be sorted. |
boolean |
isSortingColumnAscending()
Shows if the sorted column sorts ascending (1 click) or descening(2 clicks). |
boolean |
isVisible(int columnIndex)
Returns the visibility state of a particular column. |
void |
selectByUIIndex(int index)
Selects the row at a provided index in the UI-control (SWT-table) associated with this widget-model. |
void |
setFormatter(int columnIndex,
at.spardat.enterprise.fmt.IFmt formatter)
Sets the formatter to use for column at index columnIndex. |
void |
setSortable(int columnIndex,
boolean what)
Sets the property if the column at index columnIndex may be sorted by the user or not. |
void |
setSortIndicator(boolean showSortIndicator)
If this method is set to true than a sort indicator (a small up or down arrow) is shown at the column's header, which sorts the table. |
void |
sort(int columnIndex)
Sorts the table contents on the UI using a particular column as sort order column. |
void |
sortNatural()
Displays the rows in their natural order, i.e., as inserted in the table model. |
| Methods inherited from interface at.spardat.xma.mdl.table.ITableWM |
clear, containsKey, getColumnCount, getRow, getRow, indexOf, isOneWay, removeRow, removeRow, selectByModelIndex, size |
| Methods inherited from interface at.spardat.xma.mdl.ISelectable |
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select |
| Methods inherited from interface at.spardat.xma.mdl.IWModelClient |
getUIDelegate, isEditable, isEnabled, setEditable, setEnabled |
| Field Detail |
public static final int S_NON_SORTABLE
| Method Detail |
public void setFormatter(int columnIndex,
at.spardat.enterprise.fmt.IFmt formatter)
columnIndex - the zero based index of the columnformatter - the IFmt object determining the string layout of a column cell.
java.lang.ArrayIndexOutOfBoundsException - if columnIndex not valid.
public void setSortable(int columnIndex,
boolean what)
columnIndex - the zero based index of the columnwhat - false if sorting of the column should be supressed, true otherwise.public boolean isSortable(int columnIndex)
public void sort(int columnIndex)
The table won't be sorted if any of the following is true:
columnIndex - the index of the column to be sorted.public void sortNatural()
This method may be used to undo an earlier call to sort. Besides that, the user might have changed the sort order by klicking on the table headers.
public at.spardat.enterprise.fmt.IFmt getFormatter(int columnIndex)
public boolean isVisible(int columnIndex)
columnIndex - zero based index of the column
public XMATableColumn getColumn(int i)
i - zero based index indentifying a column
ArrayIndexOutOfBounds - if i greater equal getColumnCount or
less than zero.public void selectByUIIndex(int index)
Note that the UI must be constructed in order for this method to work.
public int getSortingColumn()
public boolean isSortingColumnAscending()
public boolean hasSortIndicator()
public void setSortIndicator(boolean showSortIndicator)
showSortIndicator - true - show a sort indicator at the sorting column's header / false - no sort indicator is shown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||