Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

pkgMcj.DropMenu Class Reference

Collaboration diagram for pkgMcj.DropMenu:

Collaboration graph
[legend]
List of all members.

Detailed Description

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)


Constructor & Destructor Documentation

pkgMcj.DropMenu.DropMenu Mcj  app,
String  titleStr,
int  row,
int  col
 

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().


Member Function Documentation

int pkgMcj.DropMenu.getFieldWidth  ) 
 

gets fieldWidth which was set by constructor

Returns:
fieldWidth .. integer

Definition at line 55 of file DropMenu.java.

void pkgMcj.DropMenu.redraw  ) 
 

redraw the dropmenu

Definition at line 64 of file DropMenu.java.

References pkgView.TextItem.redraw(), and pkgView.TextItem.setSelected().

Referenced by pkgMcj.MenuBar.redraw().

void pkgMcj.DropMenu.addItem TextItem  textItem  ) 
 

Add a textItem to the menubar list of elements.

Parameters:
textItem to be added

Definition at line 79 of file DropMenu.java.

void pkgMcj.DropMenu.setColors int  color1,
int  color2
 

set/change default color and active color. Only the default color is applied to the menubar. Both colors are needed for the menu items.

Parameters:
color1 .. default color
color2 .. highlighted color

Definition at line 92 of file DropMenu.java.


The documentation for this class was generated from the following file:
SourceForge.net Logo