|
||||||||||
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, row, target |
Constructor Summary | |
---|---|
JXTree.TreeAdapter(JXTree component)
Constructs a TableCellRenderContext for the specified
target component. |
Method Summary | |
---|---|
String |
getColumnIdentifier(int columnIndex)
returns the logical name (== identifier) of the column at columnIndex in model coordinates. |
String |
getColumnName(int columnIndex)
returns the column's label (= headerValue). |
int |
getDepth()
Returns the depth of this row in the hierarchy where the root is 0. |
Object |
getFilteredValueAt(int row,
int column)
returns the filtered value of the cell identified by the row in view coordinate and the column in model coordinates. |
JXTree |
getTree()
|
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; Otherwise, it returns false. |
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; Otherwise, it returns false. |
boolean |
isLeaf()
Returns true if the cell identified by this adapter is a leaf node; Otherwise, it returns false. |
boolean |
isSelected()
Returns true if the cell identified by this adapter is currently selected; Otherwise, it returns false. |
void |
setValueAt(Object aValue,
int row,
int column)
|
Methods inherited from class org.jdesktop.swingx.decorator.ComponentAdapter |
---|
getColumnCount, getComponent, getRowCount, getValue, isHierarchical, 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()
ComponentAdapter
hasFocus
in class ComponentAdapter
public Object getValueAt(int row, int column)
ComponentAdapter
getValueAt
in class ComponentAdapter
row
- in model coordinatescolumn
- in model coordinates
public Object getFilteredValueAt(int row, int column)
ComponentAdapter
getFilteredValueAt
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()
ComponentAdapter
isSelected
in class ComponentAdapter
public boolean isExpanded()
ComponentAdapter
isExpanded
in class ComponentAdapter
public int getDepth()
ComponentAdapter
getDepth
in class ComponentAdapter
public boolean isLeaf()
ComponentAdapter
isLeaf
in class ComponentAdapter
public boolean isCellEditable(int row, int column)
ComponentAdapter
This method is for use with Filter
s.
isCellEditable
in class ComponentAdapter
row
- the row to querycolumn
- the column to query
true
if the cell is editable, false
otherwisepublic void setValueAt(Object aValue, int row, int column)
setValueAt
in class ComponentAdapter
public String getColumnName(int columnIndex)
ComponentAdapter
getColumnName
in class ComponentAdapter
columnIndex
- in model coordinates
public String getColumnIdentifier(int columnIndex)
ComponentAdapter
getColumnIdentifier
in class ComponentAdapter
columnIndex
- in model coordinates
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |