com.metamatrix.console.ui.views.users
Class GroupTabSelectionHandler

java.lang.Object
  extended by com.metamatrix.console.ui.views.users.GroupTabSelectionHandler
All Implemented Interfaces:
NotifyOnSelectionChange

public class GroupTabSelectionHandler
extends java.lang.Object
implements NotifyOnSelectionChange

Auxilliary class to UserTabMainPanel. The UserTabMainPanel will instaniate one UserTabSelectionHandler, which will handle:

  communicating with the UserManager re API calls
  repopulating panels as a result of user actions
  implementing and populating pop-up menus
 


Field Summary
static boolean SHOW_USERS_ON_GROUPS_TREE
           
static java.lang.String SIGNED_ON_USERNAME
           
static java.lang.String TOP_OF_METAMATRIX_BRANCH_INDICATOR
           
 
Constructor Summary
GroupTabSelectionHandler(GroupsManager mgr, GroupsTabMainPanel mainPnl, RolesList rl, javax.swing.JPanel rPanel, boolean viewsPrincipals, boolean modifiesPrincipals, boolean viewsRoles, boolean modifiesRoles, RepaintController rc)
           
 
Method Summary
 ConnectionInfo getConnection()
           
 javax.swing.Action[] getCurrentActions()
           
 java.util.List getCurrentActionsAsList()
           
 javax.swing.JPanel getRightPanel()
           
 void principalCreated(MetaMatrixPrincipal principal)
           
 void selectionChanged(java.awt.Component component, java.lang.Object selectionObject)
          Receive notification that selection in groups tree, users tree, or roles list has changed.
 void setProperty(MetaMatrixPrincipal principal, java.lang.String propertyName, java.lang.String value)
           
 void setRolesList(RolesList rl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_USERS_ON_GROUPS_TREE

public static final boolean SHOW_USERS_ON_GROUPS_TREE
See Also:
Constant Field Values

TOP_OF_METAMATRIX_BRANCH_INDICATOR

public static final java.lang.String TOP_OF_METAMATRIX_BRANCH_INDICATOR
See Also:
Constant Field Values

SIGNED_ON_USERNAME

public static java.lang.String SIGNED_ON_USERNAME
Constructor Detail

GroupTabSelectionHandler

public GroupTabSelectionHandler(GroupsManager mgr,
                                GroupsTabMainPanel mainPnl,
                                RolesList rl,
                                javax.swing.JPanel rPanel,
                                boolean viewsPrincipals,
                                boolean modifiesPrincipals,
                                boolean viewsRoles,
                                boolean modifiesRoles,
                                RepaintController rc)
Method Detail

setRolesList

public void setRolesList(RolesList rl)

getRightPanel

public javax.swing.JPanel getRightPanel()

principalCreated

public void principalCreated(MetaMatrixPrincipal principal)

selectionChanged

public void selectionChanged(java.awt.Component component,
                             java.lang.Object selectionObject)
Description copied from interface: NotifyOnSelectionChange
Receive notification that selection in groups tree, users tree, or roles list has changed.

Specified by:
selectionChanged in interface NotifyOnSelectionChange
Parameters:
component - Will be the groups tree, the users tree, or the roles list
selectionObject - The new selected item (single selection is assumed). For either tree, this is the selected node itself. For the roles list, this is the name of the selected role.

setProperty

public void setProperty(MetaMatrixPrincipal principal,
                        java.lang.String propertyName,
                        java.lang.String value)

getConnection

public ConnectionInfo getConnection()

getCurrentActions

public javax.swing.Action[] getCurrentActions()

getCurrentActionsAsList

public java.util.List getCurrentActionsAsList()


Copyright © 2009. All Rights Reserved.