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,
String[] allowed,
String[] forbidden) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(XMLTreeTableModel.Column column) |
void |
addDateColumn(String name,
String attribute,
String label,
int width,
String format) |
void |
addJScrollPaneColumn(String name,
String attribute,
String label,
int width) |
void |
addNumberColumn(String name,
String attribute,
String label,
int width,
String format) |
void |
addStringColumn(String name,
String attribute,
String label,
int width) |
void |
configureView(XMLTreeTable ctt) |
String |
getAttribute(XMLNode node) |
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
Class |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
String |
getValueAt(Object node) |
Object |
getValueAt(Object node,
int column) |
boolean |
isAttributeAt(Object node) |
boolean |
isLeaf(Object node) |
boolean |
isValueAt(Object node) |
boolean |
processChildren(DefaultMutableTreeNode node,
int level) |
void |
setDynamic(boolean value) |
boolean |
setExpandedTree(DefaultMutableTreeNode node,
JTree tree) |
public final int ALIGN_LEFT
public final int ALIGN_RIGHT
public final int ALIGN_CENTER
public XMLTreeTableModel(XMLNode node)
node
- public void setDynamic(boolean value)
value
- public boolean isLeaf(Object node)
node
- public boolean processChildren(DefaultMutableTreeNode node, int level)
node
- level
- public void configureView(XMLTreeTable ctt)
ctt
- public boolean setExpandedTree(DefaultMutableTreeNode node, JTree tree)
node
- tree
- public void addJScrollPaneColumn(String name, String attribute, String label, int width)
name
- attribute
- label
- width
- public void addStringColumn(String name, String attribute, String label, int width)
name
- attribute
- label
- width
- public void addNumberColumn(String name, String attribute, String label, int width, String format)
name
- attribute
- label
- width
- format
- public void addDateColumn(String name, String attribute, String label, int width, String format)
name
- attribute
- label
- width
- format
- public void addColumn(XMLTreeTableModel.Column column)
column
- public int getChildCount(Object parent)
parent
- public String getColumnName(int column)
column
- public Class getColumnClass(int column)
column
- public boolean isValueAt(Object node)
node
- public boolean isAttributeAt(Object node)
node
- public int getColumnCount()