Class SimpleMibTreeTableModel

java.lang.Object
org.snmp4j.model.demo.mibbrowser.SimpleAbstractTreeTableModel
org.snmp4j.model.demo.mibbrowser.SimpleMibTreeTableModel
All Implemented Interfaces:
TreeModel, SimpleTreeTableModel

public class SimpleMibTreeTableModel extends SimpleAbstractTreeTableModel
The SimpleMibTreeTableModel is a demo implementation of a simple tree table model for MIB viewing.
Version:
1.0
Author:
Frank Fock
  • Field Details

    • columnNames

      protected static String[] columnNames
    • columnTypes

      protected static Class<?>[] columnTypes
    • editableColumns

      protected static boolean[] editableColumns
  • Constructor Details

    • SimpleMibTreeTableModel

      public SimpleMibTreeTableModel(SimpleMibDataNode rootNode)
  • Method Details

    • getChild

      public Object getChild(Object parent, int index)
    • getChildCount

      public int getChildCount(Object parent)
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: SimpleTreeTableModel
      Returns the number of available columns.
      Returns:
      the number of columns.
    • getColumnName

      public String getColumnName(int column)
      Description copied from interface: SimpleTreeTableModel
      Returns the column name.
      Parameters:
      column - the column number (zero based).
      Returns:
      the name of the specified column.
    • getColumnClass

      public Class<?> getColumnClass(int column)
      Description copied from interface: SimpleTreeTableModel
      Returns the type (class) of a column.
      Parameters:
      column - Column number
      Returns:
      Class
    • getValueAt

      public Object getValueAt(Object node, int column)
      Description copied from interface: SimpleTreeTableModel
      Returns the value of a node in a column.
      Parameters:
      node - the node object.
      column - the column number (zero based).
      Returns:
      Value of the node in the column
    • isCellEditable

      public boolean isCellEditable(Object node, int column)
      Description copied from interface: SimpleTreeTableModel
      Checks if a cell of a node in one column is editable.
      Parameters:
      node - the node object.
      column - the column number (zero based).
      Returns:
      true/false
    • setValueAt

      public void setValueAt(Object aValue, Object node, int column)
      Description copied from interface: SimpleTreeTableModel
      Sets a value for a node in one column.
      Parameters:
      aValue - the new value for the column.
      node - the tree node.
      column - the column number (zero based).