com.intellij.util.ui.treetable
Class ListTreeTableModelOnColumns
java.lang.Object
javax.swing.tree.DefaultTreeModel
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
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
| 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 |
ListTreeTableModelOnColumns
public ListTreeTableModelOnColumns(javax.swing.tree.TreeNode root,
ColumnInfo[] columns)
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