Class JXTable.TableAdapter
java.lang.Object
org.jdesktop.swingx.decorator.ComponentAdapter
org.jdesktop.swingx.JXTable.TableAdapter
- Enclosing class:
JXTable
protected static class JXTable.TableAdapter
extends org.jdesktop.swingx.decorator.ComponentAdapter
- Author:
- Ramesh Gupta, Amy Fowler, Mark Davidson, Jeanette Winzenburg
-
Field Summary
FieldsFields inherited from class org.jdesktop.swingx.decorator.ComponentAdapter
column, DEFAULT_COLUMN_IDENTIFIER, row, target -
Constructor Summary
ConstructorsConstructorDescriptionTableAdapter(JXTable component) Constructs aTableDataAdapterfor the specified target component. -
Method Summary
Modifier and TypeMethodDescriptionintconvertColumnIndexToModel(int columnIndex) intconvertColumnIndexToView(int columnIndex) intconvertRowIndexToModel(int rowViewIndex) intconvertRowIndexToView(int rowModelIndex) protected TableColumngetColumnByModelIndex(int modelColumn) Returns the first contained TableColumn with the given model index, or null if none is found.Class<?> getColumnClass(int column) intgetColumnIdentifierAt(int columnIndex) intgetColumnIndex(Object identifier) getColumnName(int columnIndex) intgetStringAt(int row, int column) This is implemented to query the table's StringValueRegistry for an appropriate StringValue and use that for getting the string representation.getTable()Typesafe accessor for the target component.getValueAt(int row, int column) booleanhasFocus()booleanisCellEditable(int row, int column) booleanbooleanbooleanisTestable(int column) Methods inherited from class org.jdesktop.swingx.decorator.ComponentAdapter
getColumnClass, getComponent, getDepth, getFilteredStringAt, getFilteredValueAt, getString, getString, getValue, getValue, isExpanded, isHierarchical, isLeaf
-
Field Details
-
table
-
-
Constructor Details
-
TableAdapter
Constructs aTableDataAdapterfor the specified target component.- Parameters:
component- the target component
-
-
Method Details
-
getTable
-
getColumnName
- Overrides:
getColumnNamein classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getColumnByModelIndex
Returns the first contained TableColumn with the given model index, or null if none is found.- Parameters:
modelColumn- the column index in model coordinates, must be valid- Returns:
- the first contained TableColumn with the given model index, or null if none is found
- Throws:
IllegalArgumentException- if model index invalid
-
getColumnIdentifierAt
- Overrides:
getColumnIdentifierAtin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getColumnIndex
- Overrides:
getColumnIndexin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getColumnClass
- Overrides:
getColumnClassin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getColumnCount
public int getColumnCount()- Overrides:
getColumnCountin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getRowCount
public int getRowCount()- Overrides:
getRowCountin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getValueAt
- Specified by:
getValueAtin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditablein classorg.jdesktop.swingx.decorator.ComponentAdapter
-
isTestable
public boolean isTestable(int column) - Overrides:
isTestablein classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getStringAt
This is implemented to query the table's StringValueRegistry for an appropriate StringValue and use that for getting the string representation.- Overrides:
getStringAtin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
getCellBounds
- Overrides:
getCellBoundsin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
isEditable
public boolean isEditable()- Specified by:
isEditablein classorg.jdesktop.swingx.decorator.ComponentAdapter
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
hasFocus
public boolean hasFocus()- Specified by:
hasFocusin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
convertColumnIndexToView
public int convertColumnIndexToView(int columnIndex) - Overrides:
convertColumnIndexToViewin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
convertColumnIndexToModel
public int convertColumnIndexToModel(int columnIndex) - Overrides:
convertColumnIndexToModelin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
convertRowIndexToView
public int convertRowIndexToView(int rowModelIndex) - Overrides:
convertRowIndexToViewin classorg.jdesktop.swingx.decorator.ComponentAdapter
-
convertRowIndexToModel
public int convertRowIndexToModel(int rowViewIndex) - Overrides:
convertRowIndexToModelin classorg.jdesktop.swingx.decorator.ComponentAdapter
-

