public class ParseTreeTablePModel extends Object
| Constructor and Description |
|---|
ParseTreeTablePModel(DetailAST parseTree) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getChild(Object parent,
int index)
Returns the child of parent at index.
|
int |
getChildCount(Object parent)
Returns the number of children of parent.
|
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getIndexOfChild(Object parent,
Object child)
Return the index of child in parent.
|
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)
Whether the node is a leaf.
|
protected void |
setParseTree(DetailAST parseTree)
Set parse tree.
|
public ParseTreeTablePModel(DetailAST parseTree)
parseTree - DetailAST parse tree.protected final void setParseTree(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 Object getChild(Object parent, int index)
parent - the node to get a child from.index - the index of a child.public int getChildCount(Object parent)
parent - the node to count children for.public boolean isLeaf(Object node)
node - the node to check.public int getIndexOfChild(Object parent, Object child)
parent
or child is null, returns -1.
If either parent or child don't
belong to this tree model, returns -1.parent - a node in the tree, obtained from this data source.child - the node we are interested in.child or parent are null
or don't belong to this tree model.public boolean isCellEditable(int column)
node,
at column number column is editable.column - the column numberCopyright © 2001-2016. All Rights Reserved.