java.lang.Object
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel
com.puppycrawl.tools.checkstyle.gui.ParseTreeModel
- All Implemented Interfaces:
- javax.swing.tree.TreeModel, TreeTableModel
- public class ParseTreeModel
- extends AbstractTreeTableModel
The model that backs the parse tree in the GUI.
- Version:
- $Id: ParseTreeModel.java,v 1.3 2003/01/11 13:09:04 lkuehne Exp $
| Methods inherited from class com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel |
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, isLeaf, removeTreeModelListener, valueForPathChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLUMN_NAMES
private static final java.lang.String[] COLUMN_NAMES
ParseTreeModel
public ParseTreeModel(com.puppycrawl.tools.checkstyle.api.DetailAST parseTree)
createArtificialTreeRoot
private static com.puppycrawl.tools.checkstyle.api.DetailAST createArtificialTreeRoot()
setParseTree
void setParseTree(com.puppycrawl.tools.checkstyle.api.DetailAST parseTree)
getColumnCount
public int getColumnCount()
- Description copied from interface:
TreeTableModel
- Returns the number ofs availible column.
getColumnName
public java.lang.String getColumnName(int column)
- Description copied from interface:
TreeTableModel
- Returns the name for column number
column.
getColumnClass
public java.lang.Class getColumnClass(int column)
- Description copied from interface:
TreeTableModel
- Returns the type for column number
column.
- Specified by:
getColumnClass in interface TreeTableModel- Overrides:
getColumnClass in class AbstractTreeTableModel
getValueAt
public java.lang.Object getValueAt(java.lang.Object node,
int column)
- Description copied from interface:
TreeTableModel
- Returns the value to be displayed for node
node,
at column number column.
setValueAt
public void setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
- Description copied from interface:
TreeTableModel
- Sets the value for node
node,
at column number column.
- Specified by:
setValueAt in interface TreeTableModel- Overrides:
setValueAt in class AbstractTreeTableModel
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
- Description copied from interface:
javax.swing.tree.TreeModel
- getChild
getChildCount
public int getChildCount(java.lang.Object parent)
- Description copied from interface:
javax.swing.tree.TreeModel
- getChildCount