rero.bridges.menu
public class MenuBridge extends Object implements Environment, Function, Loadable
Field Summary | |
---|---|
protected static String | HELP_MENU |
protected LinkedHashMap | menubarMenus |
protected HashMap | menus |
protected static Stack | ParentMenu |
protected static String | WINDOW_MENU |
Constructor Summary | |
---|---|
MenuBridge() |
Method Summary | |
---|---|
void | bindFunction(ScriptInstance si, String type, String description, Block code) |
Scalar | evaluate(String function, ScriptInstance script, Stack locals) |
static void | FinishParent() |
JPopupMenu | getPopupMenu(String description, HashMap data) |
JPopupMenu | getPrimaryPopup(String description) |
static MenuBridgeParent | GetParent() |
void | installMenubar(JMenuBar bar) |
protected static boolean | isSpecialMenu(String name) |
protected static boolean | isTopLevel(String name) returns true if the specified menu name is one of the top level menus we use in the client |
boolean | scriptLoaded(ScriptInstance si) |
boolean | scriptUnloaded(ScriptInstance si) |
static void | SetParent(MenuBridgeParent m) |