public class ClosureRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer, javax.swing.table.TableCellRenderer, javax.swing.tree.TreeCellRenderer
Constructor and Description |
---|
ClosureRenderer() |
ClosureRenderer(Closure c) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getChildren() |
int |
getColumn() |
javax.swing.JList |
getList() |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
int |
getRow() |
javax.swing.JTable |
getTable() |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
javax.swing.JTree |
getTree() |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) |
Closure |
getUpdate() |
java.lang.Object |
getValue() |
boolean |
isDefaultRenderer() |
boolean |
isExpanded() |
boolean |
isFocused() |
boolean |
isLeaf() |
boolean |
isSelected() |
boolean |
isTableHeader() |
void |
setTableHeader(boolean tableHeader) |
void |
setUpdate(Closure update) |
public ClosureRenderer()
public ClosureRenderer(Closure c)
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
public Closure getUpdate()
public void setUpdate(Closure update)
public void setTableHeader(boolean tableHeader)
public boolean isTableHeader()
public java.util.List getChildren()
public javax.swing.JList getList()
public javax.swing.JTable getTable()
public java.lang.Object getValue()
public boolean isSelected()
public boolean isFocused()
public int getRow()
public int getColumn()
public javax.swing.JTree getTree()
public boolean isLeaf()
public boolean isExpanded()
public boolean isDefaultRenderer()