TreeModel
, SimpleTreeTableModel
public class SimpleMibTreeTableModel extends SimpleAbstractTreeTableModel
SimpleMibTreeTableModel
is a demo implementation of a simple tree table model for MIB viewing.Modifier and Type | Field | Description |
---|---|---|
protected static String[] |
columnNames |
|
protected static Class<?>[] |
columnTypes |
|
protected static boolean[] |
editableColumns |
listenerList, root
Constructor | Description |
---|---|
SimpleMibTreeTableModel(SimpleMibDataNode rootNode) |
Modifier and Type | Method | Description |
---|---|---|
Object |
getChild(Object parent,
int index) |
|
int |
getChildCount(Object parent) |
|
Class<?> |
getColumnClass(int column) |
Returns the type (class) of a column.
|
int |
getColumnCount() |
Returns the number of available columns.
|
String |
getColumnName(int column) |
Returns the column name.
|
Object |
getValueAt(Object node,
int column) |
Returns the value of a node in a column.
|
boolean |
isCellEditable(Object node,
int column) |
Checks if a cell of a node in one column is editable.
|
void |
setValueAt(Object aValue,
Object node,
int column) |
Sets a value for a node in one column.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
protected static String[] columnNames
protected static Class<?>[] columnTypes
protected static boolean[] editableColumns
public SimpleMibTreeTableModel(SimpleMibDataNode rootNode)
public int getChildCount(Object parent)
public int getColumnCount()
SimpleTreeTableModel
public String getColumnName(int column)
SimpleTreeTableModel
column
- the column number (zero based).public Class<?> getColumnClass(int column)
SimpleTreeTableModel
column
- Column numberpublic Object getValueAt(Object node, int column)
SimpleTreeTableModel
node
- the node object.column
- the column number (zero based).public boolean isCellEditable(Object node, int column)
SimpleTreeTableModel
node
- the node object.column
- the column number (zero based).public void setValueAt(Object aValue, Object node, int column)
SimpleTreeTableModel
aValue
- the new value for the column.node
- the tree node.column
- the column number (zero based).Copyright © 2020 SNMP4J.org. All rights reserved.