|
|
|||||
| Package com.dassault_systemes.catjdialog |
Class CATRadioButton
|
| Class Hierarchy |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATRadioButton
| Class Location |
| Class Description |
public class CATRadioButton
The radio-button graphical component.
<radiobutton_path>.Title entry.
You may also set it programmatically using setTitle().
| Field Summary |
| Constructor Summary |
| CATRadioButton(CATDialog iParent, String iName)
Creates a radio-button with the specified parent and name. |
| Method Summary |
| public boolean | getEnable()
Determines whether this radio-button is enabled or not. |
| public CATRadioButtonGroup | getGroup()
Returns the radio-button group. |
| public boolean | getState()
Returns the radio-button state. |
| public CATNotification | getStateChangedNotification()
Returns the radio-button state changed notification. |
| public String | getTitle()
Returns the radio button's title. |
| public void | setEnable(boolean iEnable)
Enables or disables this radio-button. |
| public void | setGroup(CATRadioButtonGroup iGroup)
Sets the radio-button group. |
| public void | setState(boolean iState)
Sets the radio-button state. |
| public void | setTitle(String iTitle)
Sets the radio button's title. |
| Field Detail |
| Constructor Detail |
CATRadioButton(CATDialog iParent, String iName)
Creates a radio-button with the specified parent and name.
iParentiName| Method Detail |
public boolean getEnable()
Determines whether this radio-button is enabled or not.
true if this radio-button is enabled; false otherwise.
public CATRadioButtonGroup getGroup()
Returns the radio-button group.
public boolean getState()
Returns the radio-button state.
true if this radio-button state is "on"; false otherwise.
public CATNotification getStateChangedNotification()
Returns the radio-button state changed notification.
This notification is sent when the radio-button is checked or gets unchecked.
public String getTitle()
Returns the radio button's title.
Returns the programmatic value if setTitle() has been called,
or tries to retrieve its title from the associated message catalog file
(<radiobutton_path>.Title entry).
public void setEnable(boolean iEnable)
Enables or disables this radio-button.
A disabled radio-button doesn't change state and then doesn't fire its StateChanged notification.
iEnabletrue, this radio-button is enabled; otherwise it is disabled.
public void setGroup(CATRadioButtonGroup iGroup)
Sets the radio-button group. Default is null (no group).
iGroup
public void setState(boolean iState)
Sets the radio-button state.
iStatetrue to set it to the "on" state; false to set it to "off"
public void setTitle(String iTitle)
Sets the radio button's title.
Calling this method sets programmatically the title. This should
be reserved for cases where the title can only be determined by dynamic
means.
The standard way of defining components messages is using CATNls catalog
files (supports NLS).
iTitle