Definition at line 20 of file MenuBar.java.
Public Member Functions | |
MenuBar (Mcj parent) | |
void | redraw () |
void | setColors (int color1, int color2) |
boolean | checkKey (boolean flag, int keyItem) |
|
Constructs a menubar, sets it's position, and color param y ..row position param x ..column position param numCols .. param color1 .. param color2 .. Definition at line 50 of file MenuBar.java. References pkgView.ScreenKit.PAIR_BLACK_CYAN, pkgView.ScreenKit.PAIR_WHITE_BLACK, pkgView.TextItem.setAttribute(), pkgView.TextItem.setColors(), pkgView.TextItem.setPosition(), pkgView.TextItem.setSelected(), pkgView.TextItem.setText(), and pkgView.ScreenKit.SK_BOLD. |
|
redraw the menubar and its menuitems Definition at line 83 of file MenuBar.java. References pkgMcj.DropMenu.redraw(), pkgView.TextItem.redraw(), pkgView.ScreenKit.ttyDrawHline(), pkgView.ScreenKit.ttyRefresh(), pkgMcj.RowCol.xPos, and pkgMcj.RowCol.yPos. Referenced by pkgMcj.MenuBar.checkKey(), and pkgMcj.Mcj.Mcj(). |
|
set/change default color and active color. Only the default color is applied to the menubar. Both colors are needed for the menu items.
Definition at line 129 of file MenuBar.java. |
|
updates the widget according to keyboard item and system mode.
Definition at line 141 of file MenuBar.java. References pkgView.Keyboard.KEY_ESC, pkgView.Keyboard.KEY_F9, pkgView.Keyboard.KEY_NEWMODE, pkgMcj.MenuBar.redraw(), pkgMcj.Mcj.setState(), pkgMcj.Mcj.STATE_2PL, pkgMcj.Mcj.STATE_NULL, and pkgMcj.Mcj.STATE_PULDN. |