|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.renderer.CellContext
org.jdesktop.swingx.renderer.TreeCellContext
public class TreeCellContext
Tree specific CellContext.
| Nested Class Summary | |
|---|---|
class |
TreeCellContext.TreeFocusBorder
Border used to draw around the content of the node. |
| Constructor Summary | |
|---|---|
TreeCellContext()
|
|
| Method Summary | |
|---|---|
javax.swing.JTree |
getComponent()
Returns the component the cell resides on, may be null. |
javax.swing.Icon |
getIcon()
Returns the icon. |
javax.swing.tree.TreePath |
getTreePath()
Returns the treePath for the row or null if invalid. |
void |
installContext(javax.swing.JTree component,
java.lang.Object value,
int row,
int column,
boolean selected,
boolean focused,
boolean expanded,
boolean leaf)
Sets state of the cell's context. |
boolean |
isEditable()
Returns the cell's editability. |
| Methods inherited from class org.jdesktop.swingx.renderer.CellContext |
|---|
getColumn, getRow, getValue, isExpanded, isFocused, isLeaf, isSelected, replaceValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeCellContext()
| Method Detail |
|---|
public void installContext(javax.swing.JTree component,
java.lang.Object value,
int row,
int column,
boolean selected,
boolean focused,
boolean expanded,
boolean leaf)
component - the component the cell resides on, might be nullvalue - the content value of the cellrow - the cell's row index in view coordinatescolumn - the cell's column index in view coordinatesselected - the cell's selected statefocused - the cell's focused stateexpanded - the cell's expanded stateleaf - the cell's leaf statepublic javax.swing.JTree getComponent()
CellContext
getComponent in class CellContextpublic javax.swing.tree.TreePath getTreePath()
public boolean isEditable()
Here: false.
PENDING: implement to return the tree cell editability!
isEditable in class CellContextpublic javax.swing.Icon getIcon()
Here: null.
Overridden to return a default depending for the leaf/open cell state.
getIcon in class CellContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||