|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.renderer.CellContext
public class CellContext
Encapsulates a snapshop of cell content and default display context
for usage by a ComponentProvider
.
One part is the super-set of properties that's traditionally passed into the core renderers' (Table-, List-, Tree-) getXXCellRendererComponent. Raw properties which define the context are
PENDING JW: the generic parameterization is useful to have a type-safe installContext but introduces a bunch of generic warnings. Not enough reason to go for, so will be removed in future versions (see Issue 1042-swingx)
Constructor Summary | |
---|---|
CellContext()
|
Method Summary | |
---|---|
int |
getColumn()
Returns the cell's column index in view coordinates as set in the install. |
javax.swing.JComponent |
getComponent()
Returns the component the cell resides on, may be null. |
javax.swing.Icon |
getIcon()
Returns the icon. |
int |
getRow()
Returns the cell's row index in view coordinates as set in the install. |
java.lang.Object |
getValue()
Returns the value of the cell as set in the install. |
boolean |
isEditable()
Returns the cell's editability. |
boolean |
isExpanded()
Returns the expanded state as set in the install. |
boolean |
isFocused()
Returns the focused state as set in the install. |
boolean |
isLeaf()
Returns the leaf state as set in the install. |
boolean |
isSelected()
Returns the selected state as set in the install. |
java.lang.Object |
replaceValue(java.lang.Object value)
Replaces the value of this cell context with the given parameter and returns the replaced value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CellContext()
Method Detail |
---|
public java.lang.Object replaceValue(java.lang.Object value)
value
- the new value of the cell context
public javax.swing.JComponent getComponent()
public java.lang.Object getValue()
public int getRow()
public int getColumn()
public boolean isSelected()
public boolean isFocused()
public boolean isExpanded()
public boolean isLeaf()
public boolean isEditable()
Here: false.
public javax.swing.Icon getIcon()
Here: null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |