smjg.libs.sdwf.control.RadioButtonGroup Class Reference

The smjg.libs.sdwf.control.RadioButtonGroup class is used to interface a group of radio buttons. More...

List of all members.

Public Member Functions

 this (Dialog p, int id1, uint c)
 Constructs a RadioButtonGroup object to interface a group of radio buttons having consecutive IDs within a dialog.
 this (RadioButton[] buttons...)
 Constructs a RadioButtonGroup object to interface an arbitrary group of RadioButton objects.
Properties
int selected ()
 The zero-based index of the currently selected radio button in the group.
int selected (int sel)
 The zero-based index of the currently selected radio button in the group.
Operators
RadioButton opIndex (int i)
 Gets a RadioButton object for a radio button in the group.
final override intBool opEquals (Object o)
final bool opEquals (RadioButtonGroup r)


Detailed Description

The smjg.libs.sdwf.control.RadioButtonGroup class is used to interface a group of radio buttons.

Note:
It is the application's responsibility to ensure that the correct radio buttons are assigned the WS.GROUP style flag (firstInGroup parameter in the RadioButton constructor for creation at runtime).

Constructor & Destructor Documentation

smjg.libs.sdwf.control.RadioButtonGroup.this ( Dialog  p,
int  id1,
uint  c 
)

Constructs a RadioButtonGroup object to interface a group of radio buttons having consecutive IDs within a dialog.

Parameters:
p the dialog on which the radio buttons are placed.
id1 the ID of the first radio button in the group.
c the number of radio buttons in the group. Hence the IDs go from firstID to firstID + count - 1.
Status:
done

smjg.libs.sdwf.control.RadioButtonGroup.this ( RadioButton[]  buttons...  ) 

Constructs a RadioButtonGroup object to interface an arbitrary group of RadioButton objects.

Parameters:
buttons the radio buttons to include in the group.
Since:
0.60
Status:
test


Member Function Documentation

int smjg.libs.sdwf.control.RadioButtonGroup.selected (  ) 

The zero-based index of the currently selected radio button in the group.

Status:
done

int smjg.libs.sdwf.control.RadioButtonGroup.selected ( int  sel  ) 

The zero-based index of the currently selected radio button in the group.

Status:
done

RadioButton smjg.libs.sdwf.control.RadioButtonGroup.opIndex ( int  i  ) 

Gets a RadioButton object for a radio button in the group.

(Implementation of this[i].)

Parameters:
i zero-based index of the radio button in the group.
Returns:
a RadioButton object interfacing the chosen radio button.
Status:
test

final override intBool smjg.libs.sdwf.control.RadioButtonGroup.opEquals ( Object  o  ) 

Determines whether this RadioButtonGroup is equal to another object.

Since:
0.4

final bool smjg.libs.sdwf.control.RadioButtonGroup.opEquals ( RadioButtonGroup  r  ) 

Determines whether this RadioButtonGroup is equal to another RadioButtonGroup. Two RadioButtonGroup objects are equal iff they interface the same collection of radio buttons in the same sequence, and are both constructed in the same way (from IDs in a dialog or from an array of RadioButton objects).

Since:
0.4
Future directions:
The condition that both are constructed in the same way should not be relied upon, as it may change in a later version.


The documentation for this class was generated from the following file:
Generated on Sun Jan 11 21:54:11 2009 for Stewart's D Windows Framework by  doxygen 1.5.4