Class MEXButtonList
Class MEXButtonList
java.lang.Object
|
+----MEXButtonList
-
class
MEXButtonList
-
extends Object
MEXButtonList is a header for a group of mutual
exclusive buttons of type MEXButton.
-
See Also:
-
MEXButton
-
Version:
-
1.0f 25 Aug 1995
-
Author:
-
Georg Heßmann
-
MEXButtonList(Font)
-
Create the MEXButton list header.
-
GetChoosedNum()
-
-
NewMEXButton(int, String, int, int, int, int, Font)
-
Insert a new MEXButton into the list of mutual exclusive buttons.
-
SetChoosedNum(int)
-
Select MEXButton with given id-number.
MEXButtonList
public MEXButtonList(Font fnt)
-
Create the MEXButton list header.
-
Parameters:
-
fnt
-
font used for the selected element
NewMEXButton
public void NewMEXButton(int bnum,
String l,
int x,
int y,
int w,
int h,
Font f)
-
Insert a new MEXButton into the list of mutual exclusive buttons.
-
Parameters:
-
bnum
-
id number
-
l
-
label
-
x
-
x-ccordinate of the button
-
y
-
y-coordinate of the button
-
w
-
the size().width
-
h
-
the size().height
-
f
-
the font used for the not selected buttons
SetChoosedNum
public boolean SetChoosedNum(int num)
-
Select MEXButton with given id-number.
-
Returns:
-
Returns, if something has changed and an repaint() is needed.
GetChoosedNum
public int GetChoosedNum()
-
-
Returns:
-
id-number of the selected button