Interface TableColumnModel
- All Known Implementing Classes:
DefaultTableColumnModel
public interface TableColumnModel
Port of
TableColumnModel. Forced to port (rather
than JDK-reuse via D_whitelist_porting) because its addColumn(TableColumn) method
references our ported TableColumn. Selection model stays
ListSelectionModel (JDK) — its API surface has no
Component-touching members and is JDK-reused per D_whitelist_porting.
Listener type is the ported
TableColumnModelListener — the JDK
TableColumnModelEvent ctor would not accept our
ported TableColumnModel as its source argument, so we ship a
matching TableColumnModelEvent port and the
listener references that.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(TableColumn aColumn) voidgetColumn(int columnIndex) intintgetColumnIndex(Object columnIdentifier) intgetColumnIndexAtX(int xPosition) intbooleanintint[]intvoidmoveColumn(int columnIndex, int newIndex) voidremoveColumn(TableColumn column) voidvoidsetColumnMargin(int newMargin) voidsetColumnSelectionAllowed(boolean flag) voidsetSelectionModel(ListSelectionModel newModel)
-
Method Details
-
addColumn
-
removeColumn
-
moveColumn
void moveColumn(int columnIndex, int newIndex) -
setColumnMargin
void setColumnMargin(int newMargin) -
getColumnCount
int getColumnCount() -
getColumns
Enumeration<TableColumn> getColumns() -
getColumnIndex
-
getColumn
-
getColumnMargin
int getColumnMargin() -
getColumnIndexAtX
int getColumnIndexAtX(int xPosition) -
getTotalColumnWidth
int getTotalColumnWidth() -
setColumnSelectionAllowed
void setColumnSelectionAllowed(boolean flag) -
getColumnSelectionAllowed
boolean getColumnSelectionAllowed() -
getSelectedColumns
int[] getSelectedColumns() -
getSelectedColumnCount
int getSelectedColumnCount() -
setSelectionModel
-
getSelectionModel
ListSelectionModel getSelectionModel() -
addColumnModelListener
-
removeColumnModelListener
-