Package snap.view

Class TreeCol<T>

All Implemented Interfaces:
PropChange.DoChange, Selectable<T>, XMLArchiver.Archivable

public class TreeCol<T> extends ListArea<T>
A ListArea subclass that represents a column in TreeView.
  • Constructor Details

    • TreeCol

      public TreeCol()
      Creates a new TreeCol.
  • Method Details

    • getTree

      public TreeView getTree()
      Returns the tree.
    • setTree

      protected void setTree(TreeView aTV)
      Sets the tree.
    • getHeaderText

      public String getHeaderText()
      Returns the header value.
    • setHeaderText

      public void setHeaderText(String aValue)
      Sets the header value.
    • isResizable

      public boolean isResizable()
      Returns whether resizable.
    • setResizable

      public void setResizable(boolean aValue)
      Sets the resizable.
    • getRowHeight

      public double getRowHeight()
      Override to get row height from table.
      Overrides:
      getRowHeight in class ListArea<T>
    • getColIndex

      public int getColIndex()
      Returns the column index.
      Overrides:
      getColIndex in class ListArea<T>
    • setItemsList

      public void setItemsList(List<T> theItems)
      Override to suppress setting items in pick list (already done by TreeView).
      Specified by:
      setItemsList in interface Selectable<T>
      Overrides:
      setItemsList in class ListArea<T>
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      Override to set TreeView.SelCol.
      Overrides:
      processEvent in class ListArea<T>
    • fireActionEvent

      protected void fireActionEvent(ViewEvent anEvent)
      Override to have tree fireAction.
      Overrides:
      fireActionEvent in class View
    • getCellConfigure

      public Consumer<ListCell<T>> getCellConfigure()
      Called to set method for rendering.
      Overrides:
      getCellConfigure in class ListArea<T>
    • configureCell

      protected void configureCell(ListCell<T> aCell)
      Overrride to add branch icons.
      Overrides:
      configureCell in class ListArea<T>