com.metamatrix.console.ui.views.entitlements
Class AuthorizationsModel

java.lang.Object
  extended by com.metamatrix.console.ui.treetable.AbstractTreeTableModel
      extended by com.metamatrix.console.ui.treetable.DynamicTreeTableModel
          extended by com.metamatrix.console.ui.views.entitlements.AuthorizationsModel
All Implemented Interfaces:
TreeTableModel, javax.swing.tree.TreeModel

public class AuthorizationsModel
extends DynamicTreeTableModel


Field Summary
static int CREATE_COLUMN_NUM
           
static int DELETE_COLUMN_NUM
           
static int READ_COLUMN_NUM
           
static int TREE_COLUMN_NUM
           
static int UPDATE_COLUMN_NUM
           
 
Fields inherited from class com.metamatrix.console.ui.treetable.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
AuthorizationsModel(javax.swing.tree.DefaultTreeModel model)
           
 
Method Summary
static java.lang.String columnNumToString(int columnNum)
           
 java.lang.Object getValueAt(java.lang.Object node, int col)
          Returns the value for the column column and object node.
 boolean isCellEditable(java.lang.Object nodeObj, int column)
          Returns true if there is a setter method name for column column.
 void setTreeTable(AuthorizationsTreeTable treeTbl)
           
 
Methods inherited from class com.metamatrix.console.ui.treetable.DynamicTreeTableModel
getChild, getChildCount, getColumnClass, getColumnCount, getColumnName, getPathToRoot, isLeaf, setValueAt
 
Methods inherited from class com.metamatrix.console.ui.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE_COLUMN_NUM

public static final int TREE_COLUMN_NUM
See Also:
Constant Field Values

CREATE_COLUMN_NUM

public static final int CREATE_COLUMN_NUM
See Also:
Constant Field Values

READ_COLUMN_NUM

public static final int READ_COLUMN_NUM
See Also:
Constant Field Values

UPDATE_COLUMN_NUM

public static final int UPDATE_COLUMN_NUM
See Also:
Constant Field Values

DELETE_COLUMN_NUM

public static final int DELETE_COLUMN_NUM
See Also:
Constant Field Values
Constructor Detail

AuthorizationsModel

public AuthorizationsModel(javax.swing.tree.DefaultTreeModel model)
Method Detail

columnNumToString

public static java.lang.String columnNumToString(int columnNum)

setTreeTable

public void setTreeTable(AuthorizationsTreeTable treeTbl)

isCellEditable

public boolean isCellEditable(java.lang.Object nodeObj,
                              int column)
Description copied from class: DynamicTreeTableModel
Returns true if there is a setter method name for column column. This is set in the constructor.

Specified by:
isCellEditable in interface TreeTableModel
Overrides:
isCellEditable in class DynamicTreeTableModel

getValueAt

public java.lang.Object getValueAt(java.lang.Object node,
                                   int col)
Description copied from class: DynamicTreeTableModel
Returns the value for the column column and object node. The return value is determined by invoking the method specified in constructor for the passed in column.

Specified by:
getValueAt in interface TreeTableModel
Overrides:
getValueAt in class DynamicTreeTableModel


Copyright © 2009. All Rights Reserved.