|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--au.edu.swin.synergy.kernel.BCommandEvent | +--au.edu.swin.synergy.plugin.mod13.event.BWindowCE | +--au.edu.swin.synergy.plugin.mod13.event.BRemoveMenuItemCE | +--au.edu.swin.synergy.plugin.mod13.event.BAddMenuItemCE
Field Summary | |
static String |
kAdminMenu
Adds items to a menu called Admin |
static String |
kEditMenu
Adds items to a menu called Edit |
static String |
kFileMenu
Adds items to a menu called File |
static String |
kMessagingMenu
Adds items to a menu called Messaging |
static String |
kModellerMenu
Adds items to a menu called Modeller |
static String |
kProjectMenu
Adds items to a menu called Project |
static String |
kWindowMenu
Adds items to a menu called Window |
Fields inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
connectionID,
index,
kBroadcast,
kClient,
kClientDone,
kLocal,
kServer,
kServerDone,
networkStatus,
serialVersionUID |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
BAddMenuItemCE(Object source,
JMenuItem fMenuItem,
Object itemName,
Object fMenu)
Creates a new add menu item event with the source, the locale sensitive name of the menu it is to go in and the locale sensitive name of the menu item. |
|
BAddMenuItemCE(Object source,
Object fMenu)
Creates a new add menu item event with the source, the locale sensitive name of the menu it is to go in. |
Method Summary | |
void |
addSeparator()
This will put a separator in the menu item in the location relative to calls to addMenuItem. |
int |
getLocationPolicy()
This will indicate the location policy for the menu that may be created as a result of adding these menu items. |
BString |
getPreferredMenuMnemonic()
This will return the preferred mnemonic for this menu. |
int |
setLocationPolicy(int locationPolicy)
This will set the location policy for the menu that may be created as a result of adding these menu items. |
void |
setPreferredMenuMnemonic(BString preferredMenuMnemonic)
You can set the mnemonic you prefer for this menu here. |
Methods inherited from class au.edu.swin.synergy.plugin.mod13.event.BRemoveMenuItemCE |
addMenuItem,
addMenuItem,
getMenuItems,
getMenuName,
getNameFor |
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
decrementThreadCount,
doComplete,
doInit,
getAutoComplete,
getCompletionObject,
getCompletionStatus,
getConnectionID,
getIndex,
getNetworkStatus,
getPipe,
getUndoable,
setAutoComplete,
setCompletionObject,
setCompletionStatus,
setConnectionID,
setIndex,
setNetworkStatus,
setPipe,
setThreadCount,
setUndoable |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static String kFileMenu
public static String kEditMenu
public static String kWindowMenu
public static String kProjectMenu
public static final String kAdminMenu
public static final String kMessagingMenu
public static final String kModellerMenu
Constructor Detail |
public BAddMenuItemCE(Object source, Object fMenu)
addMenuItem()
method. Not doing so
will result in a menu with no items being created.source
- The source of the eventfMenu
- The name of the menu to add it topublic BAddMenuItemCE(Object source, JMenuItem fMenuItem, Object itemName, Object fMenu)
source
- The source of the eventfMenu
- The name of the menu to add it tomenuItemName
- The name of the menu item itselfMethod Detail |
public int setLocationPolicy(int locationPolicy)
locationPolicy
- The menu location policypublic int getLocationPolicy()
public void setPreferredMenuMnemonic(BString preferredMenuMnemonic)
preferredMnemonic
- The preferred mnemonic for this menupublic BString getPreferredMenuMnemonic()
public void addSeparator()
eg. event.addMenuItem(blah1, nameBlah);
event.addMenuItem(blah2, nameBlah);
event.addMenuItem(blah3, nameBlah);
event.addSeparator();
event.addMenuItem(blah4, nameBlah);
Will result in a separator in the menu between menu item blah3 and blah4
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |