All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.env.control.PacSessionManager

java.lang.Object
   |
   +----ncsa.env.control.PacSessionManager

public class PacSessionManager
extends Object

Variable Index

 o A_AddressBook
 o A_Client
 o A_GlobalTools
 o A_Host
 o manager
 o MENU_ABOUT
 o MENU_ADVANCED
 o MENU_ASK
 o MENU_BEGINNER
 o MENU_BYE
 o MENU_BYE_KEEP
 o MENU_CREATE
 o MENU_CREATE_JOIN
 o MENU_DIST_REPLAY
 o MENU_EXIT
 o MENU_JOIN
 o MENU_LBATCH_REPLAY
 o MENU_LGUI_REPLAY
 o MENU_MAIL
 o MENU_PART
 o MENU_PREFS
 o MENU_RECORD
 o MENU_SAVE
 o MENU_STOP
 o MENU_VIEW_HIDE
 o MENU_VIEW_INFO
 o MENU_VIEW_MAP
 o MENU_VIEW_NOTIFICATION
 o MENU_VIEW_PART
 o MENU_VIEW_ROLE
 o MENU_VIEW_SECU
 o MENU_VIEW_TOOL
 o SESSION_MODE
 o TEMPLATE_MODE

Constructor Index

 o PacSessionManager()
 o PacSessionManager(int, boolean, String, String)
Constructor the parameters come from the command line options when the client is run
 o PacSessionManager(int, boolean, String, String, boolean)

Method Index

 o acceptAutomatically()
Methods called to get back/ set up some preferences
 o addFolder()
Callback from the PacSession display the addfolder box
 o addFolderPalette(Object, String)
 o addNewToolUiCb(InfoTool)
 o addSession(PacSession)
Method Called by PacSession to add a new session in the list
 o addTemplate(InfoSession, int)
Method Called by PacSession to add a new template in the list
 o addToolPalette(Object, String, Object)
 o allowingPartInSession(boolean, InfoPart, String)
 o askConfirmation()
Methods that create/display a confirmation to exit the environment
 o askPasswd(int, InfoSession)
Methods called by the framework to display an the user/passwd box
 o askServer()
 o callbackMenu(int)
 o copyright()
Callback from the Session Manager GUI = SessionEnv object display the About box when the Habanero Icon is selected
 o createSession(InfoSession)
Create the session + invitation process
 o displayPreferences()
Callback from the Session Manager GUI = SessionEnv object display the Preferences Window
 o displayWarning(String, String)
Method to display a warning message
 o distReplay()
 o editParticipant()
Callback from the Session Manager GUI = SessionEnv object Display the Participant Edition Window
 o existTemplate(String)
Method Called by PacTemplate to know if a Templateexists return -1 if does not exist otherwise => give the index
 o exit()
Callback from the Session Manager GUI = SessionEnv object Exit check if the user is still involved in some sessions in this case => display a warning box otherwise exit Also call in the Workplace launchable config by RemoveSession to quit the env => in this case size == 0
 o getInfoToolViaCollObj(String)
function that return info of a tool according to its collobeject name
 o getMode()
 o getPacSession(Session)
 o invit(String, String, int, String)
Methods caleed by the framework to display an invitation box
 o invitation()
 o joinSession(InfoSession)
Join a session
 o localBatchReplay()
 o localGUIReplay()
 o mail(String, String, String)
Callback from the PacSession display the mail composer
 o mail(String, String, String, String)
 o manager()
Static method called to get the one instance of this class.
 o openPanel(int)
 o parsePartFiles()
Method to parse the different user's files participant information file, tool palette file , addressbook file,
 o parseTemplate()
 o record()
 o refreshView()
Method to refresh the View and the 3 details fields in SessionEnv
 o registerViewPanel(PacSession, Panel, int)
Method calls by PacSession to register the different view in SessionEnv
 o removeSession(PacSession)
Method Called by PacSession to remove a session in the list the Workplace launchable config called exit of the environment
 o removeTemp(PacSession)
Method Called by PacTemplate to remove a Template in the list
 o returnInvitation(String, String, int, String)
 o returnPasswd(InfoSession, int, String)
 o runSession(boolean, boolean)
Callback from the callbackMenu = to create or join a session
 o runSession(boolean, boolean, InfoSession)
 o saveAs(PacSession, String, String)
Callback from the PacSession display the saveas box
 o saveTemplate(InfoSession)
 o selection(int, int)
Callback from the Session Manager GUI = SessionEnv object when an item is selected in one of 2 lists Session/Template action : setup the text field for this selected item
 o setAcceptAutomatically(boolean)
 o setInvitation(int)
 o setMode(int)
functions to get/set the current mode
 o setMode(int, int)
 o setMode(int, PacSession)
 o setVisible(boolean)
 o updateFields()
Method to update the 3 fields in InfoSession and the P_info panel corresponding if exist
 o updateFields(InfoSession)
Method to update the 3 fields in sessionenv
 o updateNameTemplate(InfoSession, int)
Method Called by PacSession to add a new template in the list
 o validatePreferences()
Callback from the Validate Window save the preference into the property file

Variables

 o SESSION_MODE
 public static final int SESSION_MODE
 o TEMPLATE_MODE
 public static final int TEMPLATE_MODE
 o MENU_EXIT
 public static final int MENU_EXIT
 o MENU_MAIL
 public static final int MENU_MAIL
 o MENU_PART
 public static final int MENU_PART
 o MENU_PREFS
 public static final int MENU_PREFS
 o MENU_CREATE_JOIN
 public static final int MENU_CREATE_JOIN
 o MENU_CREATE
 public static final int MENU_CREATE
 o MENU_JOIN
 public static final int MENU_JOIN
 o MENU_RECORD
 public static final int MENU_RECORD
 o MENU_SAVE
 public static final int MENU_SAVE
 o MENU_ABOUT
 public static final int MENU_ABOUT
 o MENU_VIEW_SECU
 public static final int MENU_VIEW_SECU
 o MENU_VIEW_NOTIFICATION
 public static final int MENU_VIEW_NOTIFICATION
 o MENU_VIEW_ROLE
 public static final int MENU_VIEW_ROLE
 o MENU_VIEW_INFO
 public static final int MENU_VIEW_INFO
 o MENU_VIEW_TOOL
 public static final int MENU_VIEW_TOOL
 o MENU_VIEW_PART
 public static final int MENU_VIEW_PART
 o MENU_VIEW_MAP
 public static final int MENU_VIEW_MAP
 o MENU_VIEW_HIDE
 public static final int MENU_VIEW_HIDE
 o MENU_BYE
 public static final int MENU_BYE
 o MENU_BYE_KEEP
 public static final int MENU_BYE_KEEP
 o MENU_STOP
 public static final int MENU_STOP
 o MENU_ADVANCED
 public static final int MENU_ADVANCED
 o MENU_BEGINNER
 public static final int MENU_BEGINNER
 o MENU_DIST_REPLAY
 public static final int MENU_DIST_REPLAY
 o MENU_LBATCH_REPLAY
 public static final int MENU_LBATCH_REPLAY
 o MENU_LGUI_REPLAY
 public static final int MENU_LGUI_REPLAY
 o MENU_ASK
 public static final int MENU_ASK
 o manager
 protected static PacSessionManager manager
 o A_Host
 public String A_Host
 o A_Client
 public String A_Client
 o A_GlobalTools
 public Vector A_GlobalTools
 o A_AddressBook
 public AddressBook A_AddressBook

Constructors

 o PacSessionManager
 public PacSessionManager()
 o PacSessionManager
 public PacSessionManager(int listen,
                          boolean url,
                          String location,
                          String lang) throws Exception
Constructor the parameters come from the command line options when the client is run

 o PacSessionManager
 public PacSessionManager(int listen,
                          boolean url,
                          String location,
                          String lang,
                          boolean visible) throws Exception

Methods

 o manager
 public static PacSessionManager manager() throws IllegalArgumentException
Static method called to get the one instance of this class. Throws an exception if there is no instance.

 o setVisible
 public void setVisible(boolean visible)
 o callbackMenu
 public void callbackMenu(int what)
 o openPanel
 public void openPanel(int mode)
 o setMode
 public void setMode(int mode)
functions to get/set the current mode

 o setMode
 public void setMode(int mode,
                     PacSession pacS)
 o setMode
 public void setMode(int mode,
                     int index)
 o getMode
 public int getMode()
 o askServer
 public void askServer()
 o runSession
 public void runSession(boolean create,
                        boolean join)
Callback from the callbackMenu = to create or join a session

 o runSession
 public boolean runSession(boolean create,
                           boolean join,
                           InfoSession is)
 o createSession
 protected boolean createSession(InfoSession is)
Create the session + invitation process

 o joinSession
 protected boolean joinSession(InfoSession is)
Join a session

 o exit
 public void exit()
Callback from the Session Manager GUI = SessionEnv object Exit check if the user is still involved in some sessions in this case => display a warning box otherwise exit Also call in the Workplace launchable config by RemoveSession to quit the env => in this case size == 0

 o editParticipant
 public void editParticipant()
Callback from the Session Manager GUI = SessionEnv object Display the Participant Edition Window

 o selection
 public void selection(int mode,
                       int index)
Callback from the Session Manager GUI = SessionEnv object when an item is selected in one of 2 lists Session/Template action : setup the text field for this selected item

 o copyright
 public void copyright()
Callback from the Session Manager GUI = SessionEnv object display the About box when the Habanero Icon is selected

 o displayPreferences
 public void displayPreferences()
Callback from the Session Manager GUI = SessionEnv object display the Preferences Window

 o mail
 public void mail(String who,
                  String subject,
                  String content)
Callback from the PacSession display the mail composer

 o mail
 public void mail(String to,
                  String who,
                  String subject,
                  String content)
 o saveAs
 public void saveAs(PacSession pacs,
                    String session,
                    String template)
Callback from the PacSession display the saveas box

 o validatePreferences
 public void validatePreferences()
Callback from the Validate Window save the preference into the property file

 o registerViewPanel
 public void registerViewPanel(PacSession pacS,
                               Panel panel,
                               int what)
Method calls by PacSession to register the different view in SessionEnv

 o updateFields
 public void updateFields(InfoSession is)
Method to update the 3 fields in sessionenv

 o updateFields
 public void updateFields()
Method to update the 3 fields in InfoSession and the P_info panel corresponding if exist

 o refreshView
 public void refreshView()
Method to refresh the View and the 3 details fields in SessionEnv

 o acceptAutomatically
 public boolean acceptAutomatically()
Methods called to get back/ set up some preferences

 o setAcceptAutomatically
 public void setAcceptAutomatically(boolean b)
 o setInvitation
 public void setInvitation(int i)
 o invitation
 public int invitation()
 o invit
 public void invit(String sessionName,
                   String serverName,
                   int port,
                   String neighborhood)
Methods caleed by the framework to display an invitation box

 o returnInvitation
 public void returnInvitation(String sessionName,
                              String serverName,
                              int port,
                              String neighborhood)
 o askConfirmation
 public boolean askConfirmation()
Methods that create/display a confirmation to exit the environment

 o askPasswd
 public void askPasswd(int type,
                       InfoSession is)
Methods called by the framework to display an the user/passwd box

 o returnPasswd
 public void returnPasswd(InfoSession is,
                          int type,
                          String reply)
 o allowingPartInSession
 public void allowingPartInSession(boolean b,
                                   InfoPart ip,
                                   String name)
 o addSession
 public void addSession(PacSession pacS)
Method Called by PacSession to add a new session in the list

 o removeSession
 public void removeSession(PacSession pacS)
Method Called by PacSession to remove a session in the list the Workplace launchable config called exit of the environment

 o addTemplate
 public void addTemplate(InfoSession is,
                         int index)
Method Called by PacSession to add a new template in the list

 o updateNameTemplate
 public void updateNameTemplate(InfoSession is,
                                int index)
Method Called by PacSession to add a new template in the list

 o removeTemp
 public void removeTemp(PacSession pacT)
Method Called by PacTemplate to remove a Template in the list

 o existTemplate
 public int existTemplate(String name)
Method Called by PacTemplate to know if a Templateexists return -1 if does not exist otherwise => give the index

 o getInfoToolViaCollObj
 public InfoTool getInfoToolViaCollObj(String t)
function that return info of a tool according to its collobeject name

 o parsePartFiles
 protected void parsePartFiles()
Method to parse the different user's files participant information file, tool palette file , addressbook file,

 o parseTemplate
 protected void parseTemplate()
 o saveTemplate
 public void saveTemplate(InfoSession is)
 o displayWarning
 public void displayWarning(String sentence1,
                            String sentence2)
Method to display a warning message

 o addFolderPalette
 public Object addFolderPalette(Object cont,
                                String folder)
 o addToolPalette
 public void addToolPalette(Object cont,
                            String name,
                            Object o)
 o addNewToolUiCb
 public void addNewToolUiCb(InfoTool tool)
 o addFolder
 public void addFolder()
Callback from the PacSession display the addfolder box

 o record
 public void record()
 o distReplay
 public void distReplay()
 o localBatchReplay
 public void localBatchReplay()
 o localGUIReplay
 public void localGUIReplay()
 o getPacSession
 public PacSession getPacSession(Session s)

All Packages  Class Hierarchy  This Package  Previous  Next  Index