com.intellij.util.ui.treetable
Class ListTreeTableModelOnColumns

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by com.intellij.util.ui.treetable.ListTreeTableModelOnColumns
All Implemented Interfaces:
SortableColumnModel, TreeTableModel, java.io.Serializable, javax.swing.tree.TreeModel

public class ListTreeTableModelOnColumns
extends javax.swing.tree.DefaultTreeModel
implements TreeTableModel, SortableColumnModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Fields inherited from interface com.intellij.util.ui.SortableColumnModel
SORT_ASCENDING, SORT_DESCENDING
 
Constructor Summary
ListTreeTableModelOnColumns(javax.swing.tree.TreeNode root, ColumnInfo[] columns)
           
 
Method Summary
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 ColumnInfo[] getColumnInfos()
           
 java.lang.String getColumnName(int column)
          Returns the name for column number column.
 ColumnInfo[] getColumns()
           
 java.util.List getItems()
           
 int getSortedColumnIndex()
           
 int getSortingType()
           
 java.lang.Object getValueAt(java.lang.Object value, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(java.lang.Object node, int column)
          Indicates whether the value for node node, at column number column is editable.
 boolean isSortable()
           
 void setColumns(ColumnInfo[] columns)
           
 void setSortable(boolean aBoolean)
           
 void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
          Sets the value for node node, at column number column.
 void sortByColumn(int columnIndex)
           
 void sortByColumn(int columnIndex, int sortingType)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Constructor Detail

ListTreeTableModelOnColumns

public ListTreeTableModelOnColumns(javax.swing.tree.TreeNode root,
                                   ColumnInfo[] columns)
Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: TreeTableModel
Returns the number ofs availible column.

Specified by:
getColumnCount in interface TreeTableModel

getColumnName

public java.lang.String getColumnName(int column)
Description copied from interface: TreeTableModel
Returns the name for column number column.

Specified by:
getColumnName in interface TreeTableModel

getValueAt

public java.lang.Object getValueAt(java.lang.Object value,
                                   int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.

Specified by:
getValueAt in interface TreeTableModel

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel
Overrides:
getChild in class javax.swing.tree.DefaultTreeModel

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel
Overrides:
getChildCount in class javax.swing.tree.DefaultTreeModel

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

getColumns

public ColumnInfo[] getColumns()

isCellEditable

public boolean isCellEditable(java.lang.Object node,
                              int column)
Description copied from interface: TreeTableModel
Indicates whether the value for node node, at column number column is editable.

Specified by:
isCellEditable in interface TreeTableModel

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

setColumns

public void setColumns(ColumnInfo[] columns)

getColumnInfos

public ColumnInfo[] getColumnInfos()
Specified by:
getColumnInfos in interface SortableColumnModel

getItems

public java.util.List getItems()

sortByColumn

public void sortByColumn(int columnIndex)
Specified by:
sortByColumn in interface SortableColumnModel

sortByColumn

public void sortByColumn(int columnIndex,
                         int sortingType)
Specified by:
sortByColumn in interface SortableColumnModel

getSortedColumnIndex

public int getSortedColumnIndex()
Specified by:
getSortedColumnIndex in interface SortableColumnModel

getSortingType

public int getSortingType()
Specified by:
getSortingType in interface SortableColumnModel

setSortable

public void setSortable(boolean aBoolean)
Specified by:
setSortable in interface SortableColumnModel

isSortable

public boolean isSortable()
Specified by:
isSortable in interface SortableColumnModel