Class ClosureRenderer

java.lang.Object
groovy.swing.impl.ClosureRenderer
All Implemented Interfaces:
ListCellRenderer, TableCellRenderer, TreeCellRenderer

public class ClosureRenderer
extends Object
implements ListCellRenderer, TableCellRenderer, TreeCellRenderer
  • Constructor Details

    • ClosureRenderer

      public ClosureRenderer()
    • ClosureRenderer

      public ClosureRenderer​(Closure c)
  • Method Details

    • getListCellRendererComponent

      public Component getListCellRendererComponent​(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent​(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
    • getTreeCellRendererComponent

      public Component getTreeCellRendererComponent​(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
    • getUpdate

      public Closure getUpdate()
    • setUpdate

      public void setUpdate​(Closure update)
    • setTableHeader

      public void setTableHeader​(boolean tableHeader)
    • isTableHeader

      public boolean isTableHeader()
    • getChildren

      public List getChildren()
    • getList

      public JList getList()
    • getTable

      public JTable getTable()
    • getValue

      public Object getValue()
    • isSelected

      public boolean isSelected()
    • isFocused

      public boolean isFocused()
    • getRow

      public int getRow()
    • getColumn

      public int getColumn()
    • getTree

      public JTree getTree()
    • isLeaf

      public boolean isLeaf()
    • isExpanded

      public boolean isExpanded()
    • isDefaultRenderer

      public boolean isDefaultRenderer()