Constructor and Description |
---|
ParseTreeTableModel(DetailAST parseTree) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener listener) |
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
Object |
getValueAt(Object node,
int column) |
boolean |
isCellEditable(int column)
Indicates whether the the value for node
node ,
at column number column is editable. |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener listener) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
public ParseTreeTableModel(DetailAST parseTree)
parseTree
- DetailAST parse tree.public int getColumnCount()
public String getColumnName(int column)
column
- the column numbercolumn
.public Class<?> getColumnClass(int column)
column
- the column numbercolumn
.public Object getValueAt(Object node, int column)
node
- the nodecolumn
- the column numbernode
,
at column number column
.public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener listener)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener listener)
removeTreeModelListener
in interface TreeModel
public boolean isCellEditable(int column)
node
,
at column number column
is editable.column
- the column numberCopyright © 2001–2022. All rights reserved.