|
|||||||||
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.JXTree.TreeAdapter
protected static class JXTree.TreeAdapter
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.decorator.ComponentAdapter |
---|
column, DEFAULT_COLUMN_IDENTIFIER, row, target |
Constructor Summary | |
---|---|
JXTree.TreeAdapter(JXTree component)
Constructs a TableCellRenderContext for the specified
target component. |
Method Summary | |
---|---|
java.awt.Rectangle |
getCellBounds()
Returns the bounds of the cell identified by this adapter. |
int |
getDepth()
Returns the depth of this row in the hierarchy where the root is 0. |
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. |
JXTree |
getTree()
|
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 |
isExpanded()
Returns true if the cell identified by this adapter is currently expanded. |
boolean |
isHierarchical()
Returns true if the cell identified by this adapter displays the hierarchical node. |
boolean |
isLeaf()
Returns true if the cell identified by this adapter is a leaf node. |
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, convertRowIndexToModel, convertRowIndexToView, getColumnCount, getColumnIdentifierAt, getColumnIndex, getColumnName, getComponent, getFilteredStringAt, getFilteredValueAt, getRowCount, getString, getString, getValue, getValue, isTestable, modelToView, refresh, viewToModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JXTree.TreeAdapter(JXTree component)
TableCellRenderContext
for the specified
target component.
component
- the target componentMethod Detail |
---|
public JXTree getTree()
public boolean hasFocus()
hasFocus
in class ComponentAdapter
public java.lang.Object getValueAt(int row, int column)
getValueAt
in class ComponentAdapter
row
- 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.
getStringAt
in class ComponentAdapter
row
- in model coordinatescolumn
- in model coordinates
public java.awt.Rectangle getCellBounds()
getCellBounds
in class ComponentAdapter
public boolean isEditable()
true
if the cell identified by this adapter is editable,
false
otherwise.
isEditable
in class ComponentAdapter
true
if the cell is editable, false
otherwisepublic boolean isSelected()
isSelected
in class ComponentAdapter
public boolean isExpanded()
isExpanded
in class ComponentAdapter
public int getDepth()
getDepth
in class ComponentAdapter
public boolean isHierarchical()
isHierarchical
in class ComponentAdapter
public boolean isLeaf()
isLeaf
in class ComponentAdapter
public boolean isCellEditable(int row, int column)
isCellEditable
in class ComponentAdapter
row
- the row to query in model coordinatescolumn
- the column to query in model coordinates
true
if the cell is editable, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |