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