Definition at line 16 of file DropMenu.java.
Public Member Functions | |
DropMenu (Mcj app, String titleStr, int row, int col) | |
int | getFieldWidth () |
void | redraw () |
void | addItem (TextItem textItem) |
void | setColors (int color1, int color2) |
|
constructs a dropmenu with a fixed title, a set size, and anchored at position(row,column). Definition at line 36 of file DropMenu.java. References pkgView.ScreenKit.PAIR_BLACK_CYAN, pkgView.ScreenKit.PAIR_WHITE_BLACK, pkgView.TextItem.setColors(), and pkgView.TextItem.setPosition(). |
|
gets fieldWidth which was set by constructor
Definition at line 55 of file DropMenu.java. |
|
redraw the dropmenu Definition at line 64 of file DropMenu.java. References pkgView.TextItem.redraw(), and pkgView.TextItem.setSelected(). Referenced by pkgMcj.MenuBar.redraw(). |
|
Add a textItem to the menubar list of elements.
Definition at line 79 of file DropMenu.java. |
|
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 92 of file DropMenu.java. |