|
|
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) |
Method Summary |
void | setGroup(CATRadioButtonGroup iGroup) |
CATRadioButtonGroup | getGroup() |
boolean | getState() |
void | setState(boolean iState) |
boolean | getEnable() |
void | setEnable(boolean iEnable) |
String | getTitle() |
void | setTitle(String iTitle) |
CATNotification | getStateChangedNotification() |
Field Detail |
Constructor Detail |
CATRadioButton(CATDialog iParent, String iName)Creates a radio-button with the specified parent and name.
iParent
iName
Method Detail |
void setGroup(CATRadioButtonGroup iGroup)Sets the radio-button group. Default is null (no group).
iGroup
CATRadioButtonGroup getGroup()Returns the radio-button group.
boolean getState()Returns the radio-button state.
true
if this radio-button state is "on"; false
otherwise.void setState(boolean iState)Sets the radio-button state.
iState
true
to set it to the "on" state; false
to set it to "off"boolean getEnable()Determines whether this radio-button is enabled or not.
true
if this radio-button is enabled; false
otherwise.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.
iEnable
true
, this radio-button is enabled; otherwise it is disabled.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).
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
CATNotification getStateChangedNotification()Returns the radio-button state changed notification.
This notification is sent when the radio-button is checked or gets unchecked.