|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swing.decorator.ComponentAdapter
Abstract base class for all component data adapter classes.
A ComponentAdapter allows a Filter, Sorter,
or Highlighter to interact with a target component through a
common API.
| Field Summary | |
int |
column
|
int |
row
|
protected JComponent |
target
|
| Constructor Summary | |
ComponentAdapter(JComponent component)
Constructs a ComponentAdapter, setting the specified component as the target component. |
|
| Method Summary | |
int |
getColumnCount()
Returns the number of columns in the target component's view. |
String |
getColumnName(int columnIndex)
|
abstract Object |
getFilteredValueAt(int row,
int column)
|
int |
getRowCount()
Returns the number of rows in the target component's view. |
Object |
getValue()
Returns the value of the cell identified by this adapter by invoking getValueAt(int, int), passing in the row and
column values of this adapter. |
abstract Object |
getValueAt(int row,
int column)
Returns the value of the target component's cell identified by the specified row and column. |
abstract boolean |
hasFocus()
Returns true if the cell identified by this adapter currently has focus; Otherwise, it returns false. |
abstract boolean |
isCellEditable(int row,
int column)
|
boolean |
isExpanded()
Returns true if the cell identified by this adapter is currently expanded; Otherwise, it returns false. |
boolean |
isHierarchical()
Returns true if the cell identified by this adapter displays the hierarchical node; Otherwise, it returns false. |
boolean |
isLeaf()
Returns true if the cell identified by this adapter is a leaf node; Otherwise, it returns false. |
abstract boolean |
isSelected()
Returns true if the cell identified by this adapter is currently selected; Otherwise, it returns false. |
int |
modelToView(int columnIndex)
For target components that support multiple columns in their model, along with column reordering in the view, this method transforms the specified columnIndex from model coordinates to view coordinates. |
void |
refresh()
|
abstract void |
setValueAt(Object aValue,
int row,
int column)
|
int |
viewToModel(int columnIndex)
For target components that support multiple columns in their model, along with column reordering in the view, this method transforms the specified columnIndex from view coordinates to model coordinates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int row
public int column
protected final JComponent target
| Constructor Detail |
public ComponentAdapter(JComponent component)
component - target component for this adapter| Method Detail |
public String getColumnName(int columnIndex)
columnIndex - in view coordinates
public int getColumnCount()
public int getRowCount()
public Object getValue()
getValueAt(int, int), passing in the row and
column values of this adapter. For target components that don't
support multiple columns, the value of column is always zero.
public abstract Object getValueAt(int row,
int column)
row - column -
public abstract Object getFilteredValueAt(int row,
int column)
public abstract void setValueAt(Object aValue,
int row,
int column)
public abstract boolean isCellEditable(int row,
int column)
public abstract boolean hasFocus()
public abstract boolean isSelected()
public boolean isExpanded()
public boolean isLeaf()
public boolean isHierarchical()
public int modelToView(int columnIndex)
columnIndex - index of a column in model coordinates
public int viewToModel(int columnIndex)
columnIndex - index of a column in view coordinates
public void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||