Class PBillinfoDetailsModel

java.lang.Object
com.portal.pfc.ui.AbstractTreeTableModel
com.portal.app.cc.PBillinfoDetailsModel
All Implemented Interfaces:
TreeTableModel, TreeModel

public class PBillinfoDetailsModel extends AbstractTreeTableModel implements TreeTableModel
TreeTableModel for BillInfo table.
  • Field Details

    • cNames

      protected String[] cNames
    • cTypes

      protected Class[] cTypes
  • Constructor Details

    • PBillinfoDetailsModel

      public PBillinfoDetailsModel(TreeNode root)
      Constructor for PBillinfoDetailsModel.
      Parameters:
      root - root of the tree node
  • Method Details

    • getRoot

      public Object getRoot()
      Gets the root of this tree table model
      Specified by:
      getRoot in interface TreeModel
      Overrides:
      getRoot in class AbstractTreeTableModel
      Returns:
      root of this tree table model
    • getChildCount

      public int getChildCount(Object node)
      Gets the child count of the given tree node
      Specified by:
      getChildCount in interface TreeModel
      Parameters:
      node - tree node whose childcount is needed
      Returns:
      number of children of given node
    • getChild

      public Object getChild(Object node, int i)
      Gets the child of the given node at given index.
      Specified by:
      getChild in interface TreeModel
      Parameters:
      node - parent node
      i - index of the child
      Returns:
      the child of the given node at given index.
    • isLeaf

      public boolean isLeaf(Object node)
      Description copied from class: AbstractTreeTableModel
      Default implmentation for method in the TreeModel interface.
      Specified by:
      isLeaf in interface TreeModel
      Overrides:
      isLeaf in class AbstractTreeTableModel
    • getColumnCount

      public int getColumnCount()
      Implementation of TreeTable model interface
      Specified by:
      getColumnCount in interface TreeTableModel
      Returns:
      column count in the table
    • getColumnName

      public String getColumnName(int column)
      Returns the column name of the given column
      Specified by:
      getColumnName in interface TreeTableModel
      Parameters:
      column - number
      Returns:
      the column name of the given column
    • getColumnClass

      public Class getColumnClass(int column)
      Implementation for TreeTable model interface. Returns the type for column number
      Specified by:
      getColumnClass in interface TreeTableModel
      Overrides:
      getColumnClass in class AbstractTreeTableModel
      Returns:
      the type for column number
    • isCellEditable

      public boolean isCellEditable(Object node, int column)
      Implementation for TreeTable model interface. Indicates whether the value for node at column number is editable.
      Specified by:
      isCellEditable in interface TreeTableModel
      Overrides:
      isCellEditable in class AbstractTreeTableModel
      Parameters:
      node - node of the tree
      column - coulmn number
      Returns:
      boolean indicating whether the value for node at column number is editable.
    • getValueAt

      public Object getValueAt(Object node, int column)
      Returns the value to be displayed for node node, at column number column.
      Specified by:
      getValueAt in interface TreeTableModel
      Parameters:
      node -
      column -
      Returns:
    • setValueAt

      public void setValueAt(Object aValue, Object node, int row, int column)
      Sets the value for node node, at row number row and column number column
      Specified by:
      setValueAt in interface TreeTableModel
      Overrides:
      setValueAt in class AbstractTreeTableModel
      Parameters:
      aValue -
      node -
      row -
      column -