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
-
A_AddressBook
-
-
A_Client
-
-
A_GlobalTools
-
-
A_Host
-
-
manager
-
-
MENU_ABOUT
-
-
MENU_ADVANCED
-
-
MENU_ASK
-
-
MENU_BEGINNER
-
-
MENU_BYE
-
-
MENU_BYE_KEEP
-
-
MENU_CREATE
-
-
MENU_CREATE_JOIN
-
-
MENU_DIST_REPLAY
-
-
MENU_EXIT
-
-
MENU_JOIN
-
-
MENU_LBATCH_REPLAY
-
-
MENU_LGUI_REPLAY
-
-
MENU_MAIL
-
-
MENU_PART
-
-
MENU_PREFS
-
-
MENU_RECORD
-
-
MENU_SAVE
-
-
MENU_STOP
-
-
MENU_VIEW_HIDE
-
-
MENU_VIEW_INFO
-
-
MENU_VIEW_MAP
-
-
MENU_VIEW_NOTIFICATION
-
-
MENU_VIEW_PART
-
-
MENU_VIEW_ROLE
-
-
MENU_VIEW_SECU
-
-
MENU_VIEW_TOOL
-
-
SESSION_MODE
-
-
TEMPLATE_MODE
-
-
PacSessionManager()
-
-
PacSessionManager(int, boolean, String, String)
- Constructor
the parameters come from the command line options when
the client is run
-
PacSessionManager(int, boolean, String, String, boolean)
-
-
acceptAutomatically()
- Methods called
to get back/ set up some preferences
-
addFolder()
- Callback from the PacSession
display the addfolder box
-
addFolderPalette(Object, String)
-
-
addNewToolUiCb(InfoTool)
-
-
addSession(PacSession)
- Method Called by PacSession to add a new session in the list
-
addTemplate(InfoSession, int)
- Method Called by PacSession to add a new template in the list
-
addToolPalette(Object, String, Object)
-
-
allowingPartInSession(boolean, InfoPart, String)
-
-
askConfirmation()
- Methods that create/display a confirmation to
exit the environment
-
askPasswd(int, InfoSession)
- Methods called by the framework to display
an the user/passwd box
-
askServer()
-
-
callbackMenu(int)
-
-
copyright()
- Callback from the Session Manager GUI = SessionEnv object
display the About box when the Habanero Icon is selected
-
createSession(InfoSession)
- Create the session + invitation process
-
displayPreferences()
- Callback from the Session Manager GUI = SessionEnv object
display the Preferences Window
-
displayWarning(String, String)
- Method to display a warning message
-
distReplay()
-
-
editParticipant()
- Callback from the Session Manager GUI = SessionEnv object
Display the Participant Edition Window
-
existTemplate(String)
- Method Called by PacTemplate to know if a Templateexists
return -1 if does not exist otherwise => give the index
-
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
-
getInfoToolViaCollObj(String)
- function that return info of a tool according to
its collobeject name
-
getMode()
-
-
getPacSession(Session)
-
-
invit(String, String, int, String)
- Methods caleed by the framework to display
an invitation box
-
invitation()
-
-
joinSession(InfoSession)
- Join a session
-
localBatchReplay()
-
-
localGUIReplay()
-
-
mail(String, String, String)
- Callback from the PacSession
display the mail composer
-
mail(String, String, String, String)
-
-
manager()
- Static method called to get the one instance of this class.
-
openPanel(int)
-
-
parsePartFiles()
- Method to parse the different user's files
participant information file, tool palette file ,
addressbook file,
-
parseTemplate()
-
-
record()
-
-
refreshView()
- Method to refresh the View and the 3 details fields
in SessionEnv
-
registerViewPanel(PacSession, Panel, int)
- Method calls by PacSession to register the different view
in SessionEnv
-
removeSession(PacSession)
- Method Called by PacSession to remove a session in the list
the Workplace launchable config called exit of the environment
-
removeTemp(PacSession)
- Method Called by PacTemplate to remove a Template in the list
-
returnInvitation(String, String, int, String)
-
-
returnPasswd(InfoSession, int, String)
-
-
runSession(boolean, boolean)
- Callback from the callbackMenu = to create or join a session
-
runSession(boolean, boolean, InfoSession)
-
-
saveAs(PacSession, String, String)
- Callback from the PacSession
display the saveas box
-
saveTemplate(InfoSession)
-
-
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
-
setAcceptAutomatically(boolean)
-
-
setInvitation(int)
-
-
setMode(int)
- functions to get/set the current mode
-
setMode(int, int)
-
-
setMode(int, PacSession)
-
-
setVisible(boolean)
-
-
updateFields()
- Method to update the 3 fields
in InfoSession and the P_info panel corresponding if exist
-
updateFields(InfoSession)
- Method to update the 3 fields
in sessionenv
-
updateNameTemplate(InfoSession, int)
- Method Called by PacSession to add a new template in the list
-
validatePreferences()
- Callback from the Validate Window
save the preference into the property file
SESSION_MODE
public static final int SESSION_MODE
TEMPLATE_MODE
public static final int TEMPLATE_MODE
MENU_EXIT
public static final int MENU_EXIT
MENU_MAIL
public static final int MENU_MAIL
MENU_PART
public static final int MENU_PART
MENU_PREFS
public static final int MENU_PREFS
MENU_CREATE_JOIN
public static final int MENU_CREATE_JOIN
MENU_CREATE
public static final int MENU_CREATE
MENU_JOIN
public static final int MENU_JOIN
MENU_RECORD
public static final int MENU_RECORD
MENU_SAVE
public static final int MENU_SAVE
MENU_ABOUT
public static final int MENU_ABOUT
MENU_VIEW_SECU
public static final int MENU_VIEW_SECU
MENU_VIEW_NOTIFICATION
public static final int MENU_VIEW_NOTIFICATION
MENU_VIEW_ROLE
public static final int MENU_VIEW_ROLE
MENU_VIEW_INFO
public static final int MENU_VIEW_INFO
MENU_VIEW_TOOL
public static final int MENU_VIEW_TOOL
MENU_VIEW_PART
public static final int MENU_VIEW_PART
MENU_VIEW_MAP
public static final int MENU_VIEW_MAP
MENU_VIEW_HIDE
public static final int MENU_VIEW_HIDE
MENU_BYE
public static final int MENU_BYE
MENU_BYE_KEEP
public static final int MENU_BYE_KEEP
MENU_STOP
public static final int MENU_STOP
MENU_ADVANCED
public static final int MENU_ADVANCED
MENU_BEGINNER
public static final int MENU_BEGINNER
MENU_DIST_REPLAY
public static final int MENU_DIST_REPLAY
MENU_LBATCH_REPLAY
public static final int MENU_LBATCH_REPLAY
MENU_LGUI_REPLAY
public static final int MENU_LGUI_REPLAY
MENU_ASK
public static final int MENU_ASK
manager
protected static PacSessionManager manager
A_Host
public String A_Host
A_Client
public String A_Client
A_GlobalTools
public Vector A_GlobalTools
A_AddressBook
public AddressBook A_AddressBook
PacSessionManager
public PacSessionManager()
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
PacSessionManager
public PacSessionManager(int listen,
boolean url,
String location,
String lang,
boolean visible) throws Exception
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.
setVisible
public void setVisible(boolean visible)
callbackMenu
public void callbackMenu(int what)
openPanel
public void openPanel(int mode)
setMode
public void setMode(int mode)
- functions to get/set the current mode
setMode
public void setMode(int mode,
PacSession pacS)
setMode
public void setMode(int mode,
int index)
getMode
public int getMode()
askServer
public void askServer()
runSession
public void runSession(boolean create,
boolean join)
- Callback from the callbackMenu = to create or join a session
runSession
public boolean runSession(boolean create,
boolean join,
InfoSession is)
createSession
protected boolean createSession(InfoSession is)
- Create the session + invitation process
joinSession
protected boolean joinSession(InfoSession is)
- Join a session
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
editParticipant
public void editParticipant()
- Callback from the Session Manager GUI = SessionEnv object
Display the Participant Edition Window
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
copyright
public void copyright()
- Callback from the Session Manager GUI = SessionEnv object
display the About box when the Habanero Icon is selected
displayPreferences
public void displayPreferences()
- Callback from the Session Manager GUI = SessionEnv object
display the Preferences Window
mail
public void mail(String who,
String subject,
String content)
- Callback from the PacSession
display the mail composer
mail
public void mail(String to,
String who,
String subject,
String content)
saveAs
public void saveAs(PacSession pacs,
String session,
String template)
- Callback from the PacSession
display the saveas box
validatePreferences
public void validatePreferences()
- Callback from the Validate Window
save the preference into the property file
registerViewPanel
public void registerViewPanel(PacSession pacS,
Panel panel,
int what)
- Method calls by PacSession to register the different view
in SessionEnv
updateFields
public void updateFields(InfoSession is)
- Method to update the 3 fields
in sessionenv
updateFields
public void updateFields()
- Method to update the 3 fields
in InfoSession and the P_info panel corresponding if exist
refreshView
public void refreshView()
- Method to refresh the View and the 3 details fields
in SessionEnv
acceptAutomatically
public boolean acceptAutomatically()
- Methods called
to get back/ set up some preferences
setAcceptAutomatically
public void setAcceptAutomatically(boolean b)
setInvitation
public void setInvitation(int i)
invitation
public int invitation()
invit
public void invit(String sessionName,
String serverName,
int port,
String neighborhood)
- Methods caleed by the framework to display
an invitation box
returnInvitation
public void returnInvitation(String sessionName,
String serverName,
int port,
String neighborhood)
askConfirmation
public boolean askConfirmation()
- Methods that create/display a confirmation to
exit the environment
askPasswd
public void askPasswd(int type,
InfoSession is)
- Methods called by the framework to display
an the user/passwd box
returnPasswd
public void returnPasswd(InfoSession is,
int type,
String reply)
allowingPartInSession
public void allowingPartInSession(boolean b,
InfoPart ip,
String name)
addSession
public void addSession(PacSession pacS)
- Method Called by PacSession to add a new session in the list
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
addTemplate
public void addTemplate(InfoSession is,
int index)
- Method Called by PacSession to add a new template in the list
updateNameTemplate
public void updateNameTemplate(InfoSession is,
int index)
- Method Called by PacSession to add a new template in the list
removeTemp
public void removeTemp(PacSession pacT)
- Method Called by PacTemplate to remove a Template in the list
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
getInfoToolViaCollObj
public InfoTool getInfoToolViaCollObj(String t)
- function that return info of a tool according to
its collobeject name
parsePartFiles
protected void parsePartFiles()
- Method to parse the different user's files
participant information file, tool palette file ,
addressbook file,
parseTemplate
protected void parseTemplate()
saveTemplate
public void saveTemplate(InfoSession is)
displayWarning
public void displayWarning(String sentence1,
String sentence2)
- Method to display a warning message
addFolderPalette
public Object addFolderPalette(Object cont,
String folder)
addToolPalette
public void addToolPalette(Object cont,
String name,
Object o)
addNewToolUiCb
public void addNewToolUiCb(InfoTool tool)
addFolder
public void addFolder()
- Callback from the PacSession
display the addfolder box
record
public void record()
distReplay
public void distReplay()
localBatchReplay
public void localBatchReplay()
localGUIReplay
public void localGUIReplay()
getPacSession
public PacSession getPacSession(Session s)
All Packages Class Hierarchy This Package Previous Next Index