public class XMLTreeTableModel
extends AbstractTreeTableModel
Modifier and Type | Class and Description |
---|---|
class |
XMLTreeTableModel.Column |
Modifier and Type | Field and Description |
---|---|
int |
ALIGN_CENTER |
int |
ALIGN_LEFT |
int |
ALIGN_RIGHT |
Constructor and Description |
---|
XMLTreeTableModel(XMLNode node)
Creates new XmlTreeTableModel
|
XMLTreeTableModel(XMLNode node,
int level,
java.lang.String[] allowed,
java.lang.String[] forbidden) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(XMLTreeTableModel.Column column) |
void |
addDateColumn(java.lang.String name,
java.lang.String attribute,
java.lang.String label,
int width,
java.lang.String format) |
void |
addJScrollPaneColumn(java.lang.String name,
java.lang.String attribute,
java.lang.String label,
int width) |
void |
addNumberColumn(java.lang.String name,
java.lang.String attribute,
java.lang.String label,
int width,
java.lang.String format) |
void |
addStringColumn(java.lang.String name,
java.lang.String attribute,
java.lang.String label,
int width) |
void |
configureView(XMLTreeTable ctt) |
java.lang.String |
getAttribute(XMLNode node) |
java.lang.Object |
getChild(java.lang.Object parent,
int index) |
int |
getChildCount(java.lang.Object parent) |
java.lang.Class |
getColumnClass(int column) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
java.lang.String |
getValueAt(java.lang.Object node) |
java.lang.Object |
getValueAt(java.lang.Object node,
int column) |
boolean |
isAttributeAt(java.lang.Object node) |
boolean |
isLeaf(java.lang.Object node) |
boolean |
isValueAt(java.lang.Object node) |
boolean |
processChildren(javax.swing.tree.DefaultMutableTreeNode node,
int level) |
void |
setDynamic(boolean value) |
boolean |
setExpandedTree(javax.swing.tree.DefaultMutableTreeNode node,
javax.swing.JTree tree) |
public final int ALIGN_LEFT
public final int ALIGN_RIGHT
public final int ALIGN_CENTER
public XMLTreeTableModel(XMLNode node)
node
- public XMLTreeTableModel(XMLNode node, int level, java.lang.String[] allowed, java.lang.String[] forbidden)
node
- level
- allowed
- forbidden
- public void setDynamic(boolean value)
value
- public boolean isLeaf(java.lang.Object node)
node
- public boolean processChildren(javax.swing.tree.DefaultMutableTreeNode node, int level)
node
- level
- public void configureView(XMLTreeTable ctt)
ctt
- public boolean setExpandedTree(javax.swing.tree.DefaultMutableTreeNode node, javax.swing.JTree tree)
node
- tree
- public void addJScrollPaneColumn(java.lang.String name, java.lang.String attribute, java.lang.String label, int width)
name
- attribute
- label
- width
- public void addStringColumn(java.lang.String name, java.lang.String attribute, java.lang.String label, int width)
name
- attribute
- label
- width
- public void addNumberColumn(java.lang.String name, java.lang.String attribute, java.lang.String label, int width, java.lang.String format)
name
- attribute
- label
- width
- format
- public void addDateColumn(java.lang.String name, java.lang.String attribute, java.lang.String label, int width, java.lang.String format)
name
- attribute
- label
- width
- format
- public void addColumn(XMLTreeTableModel.Column column)
column
- public int getChildCount(java.lang.Object parent)
parent
- public java.lang.Object getChild(java.lang.Object parent, int index)
parent
- index
- public java.lang.String getColumnName(int column)
column
- public java.lang.Class getColumnClass(int column)
column
- public boolean isValueAt(java.lang.Object node)
node
- public boolean isAttributeAt(java.lang.Object node)
node
- public java.lang.String getValueAt(java.lang.Object node)
node
- public java.lang.Object getValueAt(java.lang.Object node, int column)
node
- column
- public java.lang.String getAttribute(XMLNode node)
node
- public int getColumnCount()