## com.puppycrawl.tools.checkstyle.gui
Class ParseTreeModel

    java.lang.Object
      com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel
          com.puppycrawl.tools.checkstyle.gui.ParseTreeModel

All Implemented Interfaces:
  TreeTableModel, TreeModel

    public class ParseTreeModel

extends AbstractTreeTableModel

The model that backs the parse tree in the GUI.

Author:
  Lars Kühne

Constructor Summary
`ParseTreeModel(DetailAST parseTree)`

Method Summary
`Object` `getChild(Object parent, int index)`
`int` `getChildCount(Object parent)`
`Class` `getColumnClass(int column)` Returns the type for column number `column`.
`int` `getColumnCount()` Returns the number ofs availible column.
`String` `getColumnName(int column)` Returns the name for column number `column`.
`Object` `getValueAt(Object node, int column)` Returns the value to be displayed for node `node`, at column number `column`.
`void` `setValueAt(Object aValue, Object node, int column)` Sets the value for node `node`, at column number `column`.

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`

Constructor Detail

### ParseTreeModel

    public ParseTreeModel(DetailAST parseTree)

Method Detail

### getColumnCount

    public int getColumnCount()

  Description copied from interface: `TreeTableModel`
  Returns the number ofs availible column.

### getColumnName

    public String getColumnName(int column)

  Description copied from interface: `TreeTableModel`
  Returns the name for column number `column`.

### getColumnClass

    public 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 Object getValueAt(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(Object aValue,
                           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 Object getChild(Object parent,
                           int index)

### getChildCount

    public int getChildCount(Object parent)

Back to the Checkstyle Home Page