|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.BoxPane
org.apache.pivot.wtk.content.TableViewCheckboxCellRenderer
public class TableViewCheckboxCellRenderer
Default renderer for table view cells that contain boolean data. Renders cell contents as a checkbox.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
---|
Container.EDT_Checker |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Field Summary | |
---|---|
protected Checkbox |
checkbox
|
Constructor Summary | |
---|---|
TableViewCheckboxCellRenderer()
|
Method Summary | |
---|---|
boolean |
isCheckboxDisabled()
|
void |
render(Object row,
int rowIndex,
int columnIndex,
TableView tableView,
String columnName,
boolean selected,
boolean highlighted,
boolean disabled)
Prepares the renderer for layout or paint. |
void |
setCheckboxDisabled(boolean checkboxDisabled)
|
void |
setSize(int width,
int height)
NOTE This method should only be called during layout. |
String |
toString(Object row,
String columnName)
Converts table view cell data to a string representation. |
Methods inherited from class org.apache.pivot.wtk.BoxPane |
---|
getBoxPaneListeners, getOrientation, setOrientation |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.pivot.wtk.Renderer |
---|
getStyles |
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
---|
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth |
Methods inherited from interface org.apache.pivot.wtk.Visual |
---|
getBaseline, getHeight, getWidth, paint |
Field Detail |
---|
protected Checkbox checkbox
Constructor Detail |
---|
public TableViewCheckboxCellRenderer()
Method Detail |
---|
public void setSize(int width, int height)
Component
Component.setPreferredSize(int, int)
.
setSize
in interface ConstrainedVisual
setSize
in class Component
public void render(Object row, int rowIndex, int columnIndex, TableView tableView, String columnName, boolean selected, boolean highlighted, boolean disabled)
TableView.CellRenderer
render
in interface TableView.CellRenderer
row
- The row to render, or null if called to calculate preferred height for
skins that assume a fixed renderer height.rowIndex
- The index of the row being rendered, or -1 if value
is null.columnIndex
- The index of the column being rendered.tableView
- The host component.columnName
- The name of the column being rendered.selected
- If true, the row is selected.highlighted
- If true, the row is highlighted.disabled
- If true, the row is disabled.public String toString(Object row, String columnName)
TableView.CellRenderer
toString
in interface TableView.CellRenderer
Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.
public boolean isCheckboxDisabled()
public void setCheckboxDisabled(boolean checkboxDisabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |