|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.treetable.AbstractTreeTableModel
org.jppf.ui.treetable.AbstractJPPFTreeTableModel
public abstract class AbstractJPPFTreeTableModel
Abstract tree table model implementation for tree table-based options.
| Field Summary | |
|---|---|
protected String |
BASE
Base name for localization bundle lookups. |
| Fields inherited from class org.jppf.ui.treetable.AbstractTreeTableModel |
|---|
listenerList, root |
| Constructor Summary | |
|---|---|
AbstractJPPFTreeTableModel(TreeNode root)
Initialize this model with the specified tree root. |
|
| Method Summary | |
|---|---|
void |
changeNode(DefaultMutableTreeNode node)
Handle a node update. |
Object |
getChild(Object parent,
int index)
Return the child at the specified index from the specified parent node. |
int |
getChildCount(Object parent)
Get the number of children for the specified node. |
Class |
getColumnClass(int column)
Determine the class of th specified column. |
void |
insertNodeInto(DefaultMutableTreeNode child,
DefaultMutableTreeNode parent,
int pos)
Insert the specified child into the specified parent's list of children at the specified position. |
boolean |
isCellEditable(Object node,
int column)
Tells if a cell can be edited. |
protected String |
localize(String message)
Get a localized message given its unique name and the current locale. |
void |
removeNodeFromParent(DefaultMutableTreeNode node)
Remove a node from the tree. |
void |
setValueAt(Object value,
Object node,
int column)
Called when done editing a cell. |
| Methods inherited from class org.jppf.ui.treetable.AbstractTreeTableModel |
|---|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.treetable.TreeTableModel |
|---|
getColumnCount, getColumnName, getValueAt |
| Field Detail |
|---|
protected String BASE
| Constructor Detail |
|---|
public AbstractJPPFTreeTableModel(TreeNode root)
root - - the root of the tree.| Method Detail |
|---|
public boolean isCellEditable(Object node,
int column)
isCellEditable in interface TreeTableModelisCellEditable in class AbstractTreeTableModelnode - not used.column - not used.
AbstractTreeTableModel.isCellEditable(java.lang.Object, int)
public void setValueAt(Object value,
Object node,
int column)
setValueAt in interface TreeTableModelsetValueAt in class AbstractTreeTableModelvalue - not used.node - not used.column - not used.AbstractTreeTableModel.setValueAt(java.lang.Object, java.lang.Object, int)
public Object getChild(Object parent,
int index)
parent - the parent to get the child from.index - the index at which to get the child
TreeModel.getChild(java.lang.Object, int)public int getChildCount(Object parent)
parent - the node for which to get the number of children.
TreeModel.getChildCount(java.lang.Object)
public void insertNodeInto(DefaultMutableTreeNode child,
DefaultMutableTreeNode parent,
int pos)
child - - the node to insert into the parent.parent - - the node into which to insert the child.pos - - the position at which to insert the node.public void removeNodeFromParent(DefaultMutableTreeNode node)
node - - the node to remove from the parent.public void changeNode(DefaultMutableTreeNode node)
node - - the node to update.public Class getColumnClass(int column)
getColumnClass in interface TreeTableModelgetColumnClass in class AbstractTreeTableModelcolumn - - the column index.
Class instance.AbstractTreeTableModel.getColumnClass(int)protected String localize(String message)
message - the unique name of the localized message.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||