|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ui.model.AbstractTreeTableModel ui.model.DatabaseModel
public class DatabaseModel
A kind of TreeTableModel representing an XML database.
Field Summary | |
---|---|
protected static String[] |
cNames
|
protected static Class[] |
cTypes
|
Fields inherited from class ui.model.AbstractTreeTableModel |
---|
listenerList, root |
Constructor Summary | |
---|---|
DatabaseModel(String rootPath)
Creates a DatabaseModel with root rootPath . |
Method Summary | |
---|---|
Object |
getChild(Object node,
int i)
Returns the child of node at index i . |
int |
getChildCount(Object node)
Returns the number of children of node . |
protected Object[] |
getChildren(Object node)
|
Class |
getColumnClass(int column)
Returns the class for the particular column. |
int |
getColumnCount()
Returns the number of columns. |
String |
getColumnName(int column)
Returns the name for a particular column. |
Object |
getValueAt(Object node,
int column)
Returns the value of the particular column. |
boolean |
isLeaf(Object node)
Returns true if the passed in object represents a leaf, false otherwise. |
Methods inherited from class ui.model.AbstractTreeTableModel |
---|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, removeTreeModelListener, setValueAt, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static String[] cNames
protected static Class[] cTypes
Constructor Detail |
---|
public DatabaseModel(String rootPath)
rootPath
.
Method Detail |
---|
public int getChildCount(Object node)
node
.
public Object getChild(Object node, int i)
node
at index i
.
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
isLeaf
in class AbstractTreeTableModel
public int getColumnCount()
public String getColumnName(int column)
public Class getColumnClass(int column)
getColumnClass
in interface TreeTableModel
getColumnClass
in class AbstractTreeTableModel
public Object getValueAt(Object node, int column)
protected Object[] getChildren(Object node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |