org.jdesktop.swing.data
Class DOMAdapter
java.lang.Object
org.jdesktop.swing.treetable.AbstractTreeTableModel
org.jdesktop.swing.treetable.DefaultTreeTableModel
org.jdesktop.swing.data.DOMAdapter
- All Implemented Interfaces:
- TreeModel, TreeTableModel
- public class DOMAdapter
- extends DefaultTreeTableModel
| Methods inherited from class org.jdesktop.swing.treetable.DefaultTreeTableModel |
asksAllowsChildren, getPathToRoot, getPathToRoot, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, setAsksAllowsChildren, setRoot, setValueAt |
| Methods inherited from class org.jdesktop.swing.treetable.AbstractTreeTableModel |
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getListeners, getTreeModelListeners, isCellEditable, removeTreeModelListener, valueForPathChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dom
protected Document dom
DOMAdapter
public DOMAdapter()
DOMAdapter
public DOMAdapter(Document dom)
bind
public final void bind(Document dom)
convertValueToText
public String convertValueToText(Object value)
getRoot
public Object getRoot()
- Description copied from class:
AbstractTreeTableModel
-
- Specified by:
getRoot in interface TreeModel- Overrides:
getRoot in class AbstractTreeTableModel
getColumnClass
public Class getColumnClass(int column)
- Description copied from class:
AbstractTreeTableModel
-
- Specified by:
getColumnClass in interface TreeTableModel- Overrides:
getColumnClass in class AbstractTreeTableModel
getChild
public Object getChild(Object parent,
int index)
- Description copied from class:
AbstractTreeTableModel
- Returns the child of parent at index index in the parent's
child array. parent must be a node previously obtained from
this data source. This should not return null if index
is a valid index for parent (that is index >= 0 &&
index < getChildCount(parent)).
- Specified by:
getChild in interface TreeModel- Overrides:
getChild in class AbstractTreeTableModel
- Parameters:
parent - a node in the tree, obtained from this data source
- Returns:
- the child of parent at index index, or null if the
specified parent node is not a
TreeNode.
getChildCount
public int getChildCount(Object parent)
- Description copied from class:
AbstractTreeTableModel
- Returns the number of children in the specified parent node.
- Specified by:
getChildCount in interface TreeModel- Overrides:
getChildCount in class AbstractTreeTableModel
- Parameters:
parent - node whose child count is being requested
- Returns:
- the number of children in the specified parent node
setMetaData
public void setMetaData(HierarchicalDataMetaData metaData)
getMetaData
public HierarchicalDataMetaData getMetaData()
getColumnCount
public int getColumnCount()
- Description copied from class:
AbstractTreeTableModel
-
- Specified by:
getColumnCount in interface TreeTableModel- Overrides:
getColumnCount in class AbstractTreeTableModel
getColumnIndex
public int getColumnIndex(String columnName)
- Parameters:
columnName - String containing the name of the column
- Returns:
- integer index of column in the data model which corresponds
to the specified column name
- Throws:
IllegalArgumentException - if the column name does not exist in
this tabular data model
getColumnName
public String getColumnName(int column)
- Description copied from class:
AbstractTreeTableModel
-
- Specified by:
getColumnName in interface TreeTableModel- Overrides:
getColumnName in class AbstractTreeTableModel
getValueAt
public Object getValueAt(Object node,
int column)
- Specified by:
getValueAt in interface TreeTableModel- Overrides:
getValueAt in class DefaultTreeTableModel
Copyright 2004 by Sun Microsystems, Inc. All Rights Reserved.