public interface ColumnModel
ColumnModel holds information about columns e.g. which columns are available, visible etc.| Modifier and Type | Method and Description |
|---|---|
void |
addColumnModelListener(ColumnModelListener listener)
Registers
listener with this column model. |
int |
findColumn(ColumnDescriptor colDescr)
Returns the index of the column represented by colDescr or -1
|
UIEditor |
getCellEditor(int columnIndex)
Gets the cell editor.
|
CellRenderer |
getCellRenderer(int columnIndex)
Gets the cell renderer.
|
ColumnDescriptor |
getColumn(int columnIndex)
Returns the column with index
columnIndex. |
java.util.List<ColumnDescriptor> |
getColumns()
Returns all columns (visible and hidden) held by this model.
|
java.lang.String |
getColumnWidth(ColumnDescriptor colDescr)
Gets the column width.
|
java.lang.String |
getColumnWidth(ColumnDescriptor colDescr,
java.lang.Boolean returnDefault)
Gets the column width.
|
java.util.List<ColumnDescriptor> |
getHiddenColumns()
Returns all the columns which are currently marked as invisible.
|
java.util.List<ColumnDescriptor> |
getHiddenLocalizedColumns(ColumnDescriptor colDescr)
Gets the hidden localized columns.
|
ColumnDescriptor |
getLocalizedColumn(ColumnDescriptor colDescr,
LanguageModel lang)
Gets the localized column.
|
ListViewMenuPopupBuilder |
getMenuPopupBuilder()
Gets the menu popup builder which is responsible for building table header menu popups.
|
CellRenderer |
getNewInlineItemRenderer(int columnIndex)
Gets the new inline item renderer.
|
PropertyDescriptor |
getPropertyDescriptor(ColumnDescriptor colDescr)
Gets the property descriptor.
|
ColumnGroup |
getRootColumnGroup()
Returns the root
ColumnGroup i.e. |
int |
getSelectedIndex()
Returns the index of the currently selected column.
|
java.util.List<java.lang.Integer> |
getSelectedIndexes()
Returns the indexes of the currently selected columns.
|
int |
getSortedByColumnIndex()
Returns the index of the column by which values are currently sorted.
|
java.lang.Object |
getValueAt(int columnIndex,
TypedObject object)
Returns the value of the specified object's cell.
|
ColumnDescriptor |
getVisibleColumn(int columnIndex)
Returns the visible column at position
columnIndex. |
java.util.List<ColumnDescriptor> |
getVisibleColumns()
Returns all the columns which are currently marked as visible.
|
java.util.List<ColumnDescriptor> |
getVisibleLocalizedColumns(ColumnDescriptor colDescr)
Gets the visible localized columns.
|
boolean |
isColumnLocalized(ColumnDescriptor colDescr)
Checks if is column localized.
|
boolean |
isColumnSelected(int columnIndex)
Returns whether the column with index
columnIndex is selected or not. |
boolean |
isSortAscending()
Returns the sort order of the column by which values are currently sorted.
|
void |
removeColumnModelListener(ColumnModelListener listener)
Unregisters
listener with this column model. |
void addColumnModelListener(ColumnModelListener listener)
listener with this column model.listener - the ColumnModelListener to registerint findColumn(ColumnDescriptor colDescr)
colDescr or -1
colDescr - column which index should be retrievedUIEditor getCellEditor(int columnIndex)
columnIndex - the column indexCellRenderer getCellRenderer(int columnIndex)
columnIndex - the column indexColumnDescriptor getColumn(int columnIndex) throws java.lang.IndexOutOfBoundsException
columnIndex.columnIndex - the zero based position index of column to be returnedcolumnIndexjava.lang.IndexOutOfBoundsException - if there is no column with the specified indexgetVisibleColumn(int)java.util.List<ColumnDescriptor> getColumns()
java.lang.String getColumnWidth(ColumnDescriptor colDescr)
colDescr - the col descrjava.lang.String getColumnWidth(ColumnDescriptor colDescr, java.lang.Boolean returnDefault)
colDescr - the col descrreturnDefault - the return defaultjava.util.List<ColumnDescriptor> getHiddenColumns()
java.util.List<ColumnDescriptor> getHiddenLocalizedColumns(ColumnDescriptor colDescr)
colDescr - the col descrColumnDescriptor getLocalizedColumn(ColumnDescriptor colDescr, LanguageModel lang)
colDescr - the col descrlang - the langListViewMenuPopupBuilder getMenuPopupBuilder()
CellRenderer getNewInlineItemRenderer(int columnIndex)
columnIndex - the column indexPropertyDescriptor getPropertyDescriptor(ColumnDescriptor colDescr)
colDescr - the col descrColumnGroup getRootColumnGroup()
ColumnGroup i.e. the column group which holds all other groups and columns, held by this
model.int getSelectedIndex()
java.util.List<java.lang.Integer> getSelectedIndexes()
int getSortedByColumnIndex()
isSortAscending()java.lang.Object getValueAt(int columnIndex,
TypedObject object)
columnIndex - zero based column position index of the cell which value is to be returnedobject - the object which cell's value is to be returnedColumnDescriptor getVisibleColumn(int columnIndex) throws java.lang.IndexOutOfBoundsException
columnIndex.columnIndex - the zero based position index of the visible column to be returnedcolumnIndexjava.lang.IndexOutOfBoundsException - if there is no column at the specified positiongetColumn(int)java.util.List<ColumnDescriptor> getVisibleColumns()
java.util.List<ColumnDescriptor> getVisibleLocalizedColumns(ColumnDescriptor colDescr)
colDescr - the col descrboolean isColumnLocalized(ColumnDescriptor colDescr)
colDescr - the col descrboolean isColumnSelected(int columnIndex)
columnIndex is selected or not.columnIndex - zero based position index of the column which selection status is to be retrievedtrue if a column at position columnIndex exists and is marked as selected,
false otherwiseboolean isSortAscending()
true if the sort order is ascending, false otherwisegetSortedByColumnIndex()void removeColumnModelListener(ColumnModelListener listener)
listener with this column model.listener - the ColumnModelListener to unregisterCopyright © 2018 SAP SE. All Rights Reserved.