|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.decorator.ComponentAdapter
org.jdesktop.swingx.JXList.ListAdapter
protected static class JXList.ListAdapter
A component adapter targeted at a JXList.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.decorator.ComponentAdapter |
|---|
column, DEFAULT_COLUMN_IDENTIFIER, row, target |
| Constructor Summary | |
|---|---|
JXList.ListAdapter(JXList component)
Constructs a ListAdapter for the specified target
JXList. |
|
| Method Summary | |
|---|---|
int |
convertRowIndexToModel(int rowViewIndex)
Converts a row index in view coordinates to an index in model coordinates. |
int |
convertRowIndexToView(int rowModelIndex)
Converts a row index in model coordinates to an index in view coordinates. |
java.awt.Rectangle |
getCellBounds()
Returns the bounds of the cell identified by this adapter. |
JXList |
getList()
Typesafe accessor for the target component. |
int |
getRowCount()
Returns the number of rows in the target's data model. |
java.lang.String |
getStringAt(int row,
int column)
Returns the String representation of the value of the cell identified by the row specified row and column in model coordinates. |
java.lang.Object |
getValueAt(int row,
int column)
Returns the value of the target component's cell identified by the specified row and column in model coordinates. |
boolean |
hasFocus()
Returns true if the cell identified by this adapter currently has focus. |
boolean |
isCellEditable(int row,
int column)
Determines whether this cell is editable. |
boolean |
isEditable()
Returns true if the cell identified by this adapter is editable,
false otherwise. |
boolean |
isSelected()
Returns true if the cell identified by this adapter is currently selected. |
| Methods inherited from class org.jdesktop.swingx.decorator.ComponentAdapter |
|---|
convertColumnIndexToModel, convertColumnIndexToView, getColumnCount, getColumnIdentifierAt, getColumnIndex, getColumnName, getComponent, getDepth, getFilteredStringAt, getFilteredValueAt, getString, getString, getValue, getValue, isExpanded, isHierarchical, isLeaf, isTestable, refresh |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JXList.ListAdapter(JXList component)
ListAdapter for the specified target
JXList.
component - the target list.| Method Detail |
|---|
public JXList getList()
JXListpublic boolean hasFocus()
hasFocus in class ComponentAdapterpublic int getRowCount()
getRowCount in class ComponentAdapter
public java.lang.Object getValueAt(int row,
int column)
getValueAt in class ComponentAdapterrow - in model coordinatescolumn - in model coordinates
public java.lang.String getStringAt(int row,
int column)
This implementation messages the StringValue.TO_STRING with the valueAt, subclasses should re-implement and use the api appropriate for the target component type.
This is implemented to query the table's StringValueRegistry for an appropriate StringValue and use that for getting the string representation.
getStringAt in class ComponentAdapterrow - in model coordinatescolumn - in model coordinates
public java.awt.Rectangle getCellBounds()
getCellBounds in class ComponentAdapter
public boolean isCellEditable(int row,
int column)
isCellEditable in class ComponentAdapterrow - the row to query in model coordinatescolumn - the column to query in model coordinates
true if the cell is editable, false
otherwisepublic boolean isEditable()
true if the cell identified by this adapter is editable,
false otherwise.
isEditable in class ComponentAdaptertrue if the cell is editable, false otherwisepublic boolean isSelected()
isSelected in class ComponentAdapterpublic int convertRowIndexToView(int rowModelIndex)
convertRowIndexToView in class ComponentAdapterrowModelIndex - index of a row in model coordinates
public int convertRowIndexToModel(int rowViewIndex)
convertRowIndexToModel in class ComponentAdapterrowViewIndex - index of a row in view coordinates
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||