GrammarScope  4.0.0
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.common.component.MultipleChoice Class Reference
Inheritance diagram for grammarscope.common.component.MultipleChoice:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.common.component.MultipleChoice:
Collaboration graph
[legend]

Public Member Functions

 MultipleChoice (final Object[] objects)
 
void setChoice (final int choice)
 
int getChoice ()
 
Object getSelectedItem ()
 

Private Attributes

final JRadioButton[] buttons
 
final Object[] objects
 

Static Private Attributes

static final long serialVersionUID = -6692061990357725006L
 

Detailed Description

Radio button group presenting multiple-choices

Author
Bernard Bou

Constructor & Destructor Documentation

◆ MultipleChoice()

grammarscope.common.component.MultipleChoice.MultipleChoice ( final Object[]  objects)

Constructor

Parameters
objectspossible choices

Member Function Documentation

◆ getChoice()

int grammarscope.common.component.MultipleChoice.getChoice ( )

Get choice

Returns
choice index

◆ getSelectedItem()

Object grammarscope.common.component.MultipleChoice.getSelectedItem ( )

Get chosen item

Returns
choice selected item

◆ setChoice()

void grammarscope.common.component.MultipleChoice.setChoice ( final int  choice)

Set choice

Parameters
choicechoice index

Member Data Documentation

◆ buttons

final JRadioButton [] grammarscope.common.component.MultipleChoice.buttons
private

Choice buttons

◆ objects

final Object [] grammarscope.common.component.MultipleChoice.objects
private

Model

◆ serialVersionUID

final long grammarscope.common.component.MultipleChoice.serialVersionUID = -6692061990357725006L
staticprivate

The documentation for this class was generated from the following file: