public abstract class AbstractTreeTableModel extends Object implements TreeTableModel
Module: swing-util-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>swing-util-api</artifactId>
</dependency>| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listenerList
The
EventListenerList associated with this AbstractTreeTableModel. |
| Constructor and Description |
|---|
AbstractTreeTableModel(Object root)
Creates a new AbstractTreeTableModel object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener l) |
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
Class<?> |
getColumnClass(int column)
Returns the class of the column specified in the argument.
|
int |
getIndexOfChild(Object parent,
Object child)
Returns the index of a child given a parent.
|
Object |
getRoot()
Returns the root of this AbstractTreeTableModel.
|
boolean |
isCellEditable(Object node,
int column)
By default, make the column with the Tree in it the only editable one.
|
boolean |
isLeaf(Object node)
Returns true if the specified node is a leaf, false otherwise.
|
void |
removeTreeModelListener(TreeModelListener l) |
void |
setValueAt(Object aValue,
Object node,
int column)
Should be overridden - this is a no-op.
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Should be overridden.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getColumnName, getValueAtgetChild, getChildCountprotected EventListenerList listenerList
EventListenerList associated with this AbstractTreeTableModel.public AbstractTreeTableModel(Object root)
root - The root of this AbstractTreeTableModel.public Object getRoot()
public boolean isLeaf(Object node)
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpath - the TreePath.newValue - the new value.public int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelparent - The parent object.child - The child whose index we want.public void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModell - The TreeModelListener to add.public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModell - The TreeModelListener to remove.protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListpublic Class<?> getColumnClass(int column)
getColumnClass in interface TreeTableModelcolumn - The index of the column.public boolean isCellEditable(Object node, int column)
isCellEditable in interface TreeTableModelnode - The node to check.column - The column number.public void setValueAt(Object aValue, Object node, int column)
setValueAt in interface TreeTableModelaValue - The value.node - The node.column - The column.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.