arlut.csd.ganymede.client
Class PermEditorModel

java.lang.Object
  |
  +--arlut.csd.ganymede.client.AbstractTreeTableModel
        |
        +--arlut.csd.ganymede.client.PermEditorModel
All Implemented Interfaces:
javax.swing.tree.TreeModel, TreeTableModel

class PermEditorModel
extends AbstractTreeTableModel
implements TreeTableModel

Custom TreeTableModel model for use with the Ganymede client's perm_editor permissions editor dialog.


Field Summary
protected static java.lang.String[] cNames
          Names of the columns.
(package private) static int CREATABLE
           
protected static java.lang.Class[] cTypes
          Types of the columns.
(package private) static int DELETABLE
           
(package private) static int EDITABLE
           
(package private) static int NAME
           
(package private)  boolean viewOnly
           
(package private) static int VISIBLE
           
 
Fields inherited from class arlut.csd.ganymede.client.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
PermEditorModel(javax.swing.tree.DefaultMutableTreeNode root, boolean viewOnly)
           
 
Method Summary
 java.lang.Object getChild(java.lang.Object node, int i)
           
 int getChildCount(java.lang.Object node)
           
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 java.lang.String getColumnName(int column)
          Returns the name for column number column.
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(java.lang.Object node, int col)
          Indicates whether the the value for node node, at column number column is editable.
 boolean isLeaf(java.lang.Object node)
           
 void setBaseChildren(java.lang.Object node, int col, java.lang.Object value)
           
 void setValueAt(java.lang.Object value, java.lang.Object node, int col)
          Sets the value for node node, at column number column.
 
Methods inherited from class arlut.csd.ganymede.client.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged
 

Field Detail

NAME

static final int NAME

VISIBLE

static final int VISIBLE

CREATABLE

static final int CREATABLE

EDITABLE

static final int EDITABLE

DELETABLE

static final int DELETABLE

viewOnly

boolean viewOnly

cNames

protected static java.lang.String[] cNames
Names of the columns.

cTypes

protected static java.lang.Class[] cTypes
Types of the columns.
Constructor Detail

PermEditorModel

public PermEditorModel(javax.swing.tree.DefaultMutableTreeNode root,
                       boolean viewOnly)
Method Detail

getChildCount

public int getChildCount(java.lang.Object node)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

getChild

public java.lang.Object getChild(java.lang.Object node,
                                 int i)
Specified by:
getChild in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel
Overrides:
isLeaf in class AbstractTreeTableModel

getColumnCount

public int getColumnCount()
Description copied from interface: TreeTableModel
Returns the number ofs availible column.
Specified by:
getColumnCount in interface TreeTableModel

getColumnName

public java.lang.String getColumnName(int column)
Description copied from interface: TreeTableModel
Returns the name for column number column.
Specified by:
getColumnName in interface TreeTableModel

getColumnClass

public java.lang.Class getColumnClass(int column)
Description copied from interface: TreeTableModel
Returns the type for column number column.
Specified by:
getColumnClass in interface TreeTableModel
Overrides:
getColumnClass in class AbstractTreeTableModel

getValueAt

public java.lang.Object getValueAt(java.lang.Object node,
                                   int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.
Specified by:
getValueAt in interface TreeTableModel

isCellEditable

public boolean isCellEditable(java.lang.Object node,
                              int col)
Description copied from interface: TreeTableModel
Indicates whether the the value for node node, at column number column is editable.
Specified by:
isCellEditable in interface TreeTableModel
Overrides:
isCellEditable in class AbstractTreeTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       java.lang.Object node,
                       int col)
Description copied from interface: TreeTableModel
Sets the value for node node, at column number column.
Specified by:
setValueAt in interface TreeTableModel
Overrides:
setValueAt in class AbstractTreeTableModel

setBaseChildren

public void setBaseChildren(java.lang.Object node,
                            int col,
                            java.lang.Object value)