public abstract class AbstractTreeTableModel extends AbstractTableColumnModel implements TreeTableModel
Constructor and Description |
---|
AbstractTreeTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addTreeTableModelListener(TreeTableModelListener l)
Adds a
listener to this tree table model. |
protected void |
fireTableContentChanged() |
void |
fireTreeNodeInserted(java.lang.Object parent,
java.lang.Object node) |
void |
fireTreeNodeRemoved(java.lang.Object node) |
int |
getColumnCount() |
java.lang.Object |
getParent(java.lang.Object node)
Returns the parent node for the specified node.
|
abstract java.lang.Object |
getRoot(int index)
Returns a root node at the specified index.
|
abstract int |
getRootCount()
Returns the number of root nodes, which this
model
represents. |
java.lang.Object |
getValueAt(java.lang.Object node,
int column) |
java.lang.String |
getViewName() |
boolean |
isCellEditable(java.lang.Object node,
int column) |
boolean |
isFrom(java.lang.Object parent,
java.lang.Object child)
Determines the direction from the parent to its child.
|
protected boolean |
isRoot(java.lang.Object o) |
void |
refresh() |
void |
removeTreeTableModelListener(TreeTableModelListener l)
Removes a registered listener from this tree table model.
|
void |
setValueAt(java.lang.Object value,
java.lang.Object node,
int column)
Sets the value of the cell with the given column index on the given node.
|
addTableColumnModelListener, fireTableColumnsInserted, fireTableColumnsRemoved, getCellRenderer, getColumnComparator, getColumnHref, getColumnName, getColumnPopupModal, getColumnRangeValues, getColumnTargetLocation, getColumnType, getColumnWindowHeight, getColumnWindowWidth, getDisplayFormat, getFixedColumnCount, getFormat, getGroupHeader, getGroupHeaderBGColor, getLocale, getNoWrap, getSortMode, getSortOrder, getTableName, getWrapHeader, isColumnEditable, isColumnHTML, isColumnMultiline, removeTableColumnModelListener, setLocale, setTableName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren
addTableColumnModelListener, getCellRenderer, getColumnComparator, getColumnHref, getColumnName, getColumnPopupModal, getColumnRangeValues, getColumnTargetLocation, getColumnType, getColumnWindowHeight, getColumnWindowWidth, getDisplayFormat, getFixedColumnCount, getFormat, getGroupHeader, getGroupHeaderBGColor, getLocale, getNoWrap, getSortMode, getSortOrder, getTableName, getWrapHeader, isColumnEditable, isColumnHTML, isColumnMultiline, removeTableColumnModelListener
public void refresh()
refresh
in interface TreeTableModel
public java.lang.String getViewName()
getViewName
in interface TreeTableModel
public int getColumnCount()
getColumnCount
in interface TableColumnModel
getColumnCount
in class AbstractTableColumnModel
public boolean isCellEditable(java.lang.Object node, int column)
isCellEditable
in interface TreeTableModel
node
- The nodecolumn
- The column indexpublic void setValueAt(java.lang.Object value, java.lang.Object node, int column) throws TVCException
TreeTableModel
setValueAt
in interface TreeTableModel
value
- The valuenode
- The nodecolumn
- The column indexTVCException
public java.lang.Object getValueAt(java.lang.Object node, int column)
getValueAt
in interface TreeTableModel
node
- The nodecolumn
- The column indexpublic abstract java.lang.Object getRoot(int index)
TreeTableModel
TreeTableModel.getRootCount()
, then an
IndexOutOfBoundsException is thrown.getRoot
in interface TreeTableModel
index
- The indexpublic abstract int getRootCount()
TreeTableModel
model
represents.getRootCount
in interface TreeTableModel
public boolean isFrom(java.lang.Object parent, java.lang.Object child)
TreeTableModel
isFrom
in interface TreeTableModel
parent
- The parent objectchild
- The child object.public java.lang.Object getParent(java.lang.Object node)
TreeTableModel
getParent
in interface TreeTableModel
protected boolean isRoot(java.lang.Object o)
public void addTreeTableModelListener(TreeTableModelListener l)
TreeTableModel
listener
to this tree table model.addTreeTableModelListener
in interface TreeTableModel
l
- The listenerpublic void removeTreeTableModelListener(TreeTableModelListener l)
TreeTableModel
removeTreeTableModelListener
in interface TreeTableModel
l
- The listener to removeprotected void fireTableContentChanged()
public void fireTreeNodeInserted(java.lang.Object parent, java.lang.Object node)
public void fireTreeNodeRemoved(java.lang.Object node)
Copyright © Technia AB. All Rights Reserved.