|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.columbia.coms6901.pingtel.pingim.HelperClass | +--edu.columbia.coms6901.pingtel.pingim.MenuSystem
Contains code for different menus, including the phonebook menu, the X10 menu, the buddy list menu, and several other supporting user input screens.
Field Summary | |
(package private) static int |
CANCEL
Cancel action |
private java.lang.String |
defaultBindDN
default distinguished name (DN) for binding to LDAP |
private java.lang.String |
defaultBindPWD
default password for binding to LDAP |
private int |
defaultLDAPPort
default LDAP port |
private java.lang.String |
defaultLDAPServer
default LDAP server |
private java.lang.String |
defaultRoot
default LDAP root / search base |
(package private) static int |
OK
Ok |
(package private) static int |
OPTION_ADD_BUDDY
Returned when user chooses to add a buddy |
(package private) static int |
OPTION_BUDDY_CALL
Returned when user chooses to make a phone call |
(package private) static int |
OPTION_BUDDY_LIST
Returned when user chose to go to buddy list |
(package private) static int |
OPTION_CONFIGURE
Returned when user chose configuration option |
(package private) static int |
OPTION_DELETE_BUDDY
Returned when user chooses to delete a buddy |
(package private) static int |
OPTION_DISABLE_IM
Returned when user disables instant messaging |
(package private) static int |
OPTION_EXIT
Returned when user chooses to exit application |
(package private) static int |
OPTION_PHONEBOOK
Returned when user chooses to go to the phone book screen |
(package private) static int |
OPTION_X10_LIST
Returned when user chooses to go to the X10 screen |
(package private) static int |
UNDEFINED
Undefined action |
Fields inherited from class edu.columbia.coms6901.pingtel.pingim.HelperClass |
application |
Constructor Summary | |
(package private) |
MenuSystem(PingIM app)
Constructor. |
Method Summary | |
private void |
checkForBuddyAction(ActionListener listener,
Buddy buddy)
Checks for any actions concerning a buddy from the menu. |
private boolean |
checkForMenuAction(ActionListener listener)
Checks for any actions coming from the menu panel. |
protected int |
displayIMBuddies()
Displays IM Buddies and prompts user for action. |
protected int |
displayPhoneBuddies()
Displays Phonebook and prompts user for action. |
protected int |
displayX10Buddies()
Displays X10 Buddies and prompts user for action. |
protected void |
getLDAPServerInfo()
Prompts the user to enter information about the LDAP server. |
protected Buddy |
getNewBuddyInfo()
Prompts user for information about new buddy, such as type, name, description, etc. |
protected Buddy |
getNewBuddyInfo(java.lang.String sSIP)
Prompts user for information about new buddy. |
protected int |
promptUserForState()
Prompts user for current state/presence of PingIM |
private int |
searchMenu()
Searches the phone book for a particular entry. |
protected void |
sendIM(Buddy buddy)
Prompts user for a message to IM to another buddy |
private void |
setMenuButtons(com.pingtel.xpressa.awt.form.SimpleListForm form,
ActionListener listener)
Sets the menu buttons for the three display screens |
Methods inherited from class edu.columbia.coms6901.pingtel.pingim.HelperClass |
setApplication |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int UNDEFINED
static final int OK
static final int CANCEL
static final int OPTION_CONFIGURE
static final int OPTION_BUDDY_LIST
static final int OPTION_DISABLE_IM
static final int OPTION_EXIT
static final int OPTION_ADD_BUDDY
static final int OPTION_DELETE_BUDDY
static final int OPTION_BUDDY_CALL
static final int OPTION_PHONEBOOK
static final int OPTION_X10_LIST
private java.lang.String defaultLDAPServer
private int defaultLDAPPort
private java.lang.String defaultBindDN
private java.lang.String defaultBindPWD
private java.lang.String defaultRoot
Constructor Detail |
MenuSystem(PingIM app)
app
- The current PingIM application.Method Detail |
protected void getLDAPServerInfo()
protected Buddy getNewBuddyInfo()
protected Buddy getNewBuddyInfo(java.lang.String sSIP)
sSIP
- Buddy's SIP addressprotected int promptUserForState()
protected void sendIM(Buddy buddy)
buddy
- The buddy who we're sending toprotected int displayIMBuddies()
protected int displayX10Buddies()
protected int displayPhoneBuddies()
private void setMenuButtons(com.pingtel.xpressa.awt.form.SimpleListForm form, ActionListener listener)
form
- The form currently being displayedlistener
- The corresponding listener for that formprivate void checkForBuddyAction(ActionListener listener, Buddy buddy)
listener
- The ActionListener used by the formbuddy
- Buddy that was selected when action was chosenprivate boolean checkForMenuAction(ActionListener listener)
listener
- The ActionListener used by the formprivate int searchMenu()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |