Game Control Plus  1.2.2
 All Classes Namespaces Functions Variables Pages
org.gamecontrolplus.gui.MToggleGroup Class Reference

Public Member Functions

 MToggleGroup ()
 
void addControl (MToggleControl tc)
 
void addControls (MToggleControl...controls)
 

Package Functions

void makeSelected (MToggleControl tc)
 

Private Attributes

MToggleControl selected = null
 
MToggleControl deselected = null
 

Detailed Description

Use this class to create a single selection collection of options.

To use create an object of this class and then add GOption objects to it with the addControl method.

You cannot add GCheckbox objects because they are designed to work independently.

Author
Peter Lager

Constructor & Destructor Documentation

org.gamecontrolplus.gui.MToggleGroup.MToggleGroup ( )

Create a toggle group object.

Member Function Documentation

void org.gamecontrolplus.gui.MToggleGroup.addControl ( MToggleControl  tc)

Add a GOption object to this group.

Parameters
tc
void org.gamecontrolplus.gui.MToggleGroup.addControls ( MToggleControl...  controls)

Add a set of comma separated GOptions.

Parameters
controls
void org.gamecontrolplus.gui.MToggleGroup.makeSelected ( MToggleControl  tc)
package

Used internally to change selection