|
|
|||||
| Package com.dassault_systemes.catjdialog |
Class CATCheckBox
|
| Class Hierarchy |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATCheckBox
| Class Location |
| Class Description |
public class CATCheckBox
The checkbox graphical component.
<checkbox_path>.Title entry.
You may also set it programmatically using setTitle().
| Field Summary |
| Constructor Summary |
| CATCheckBox(CATDialog iDialog, String iName)
Creates a checkbox with the specified parent and name. |
| Method Summary |
| public boolean | getEnable()
Determines whether this checkbox is enabled or not. |
| public boolean | getState()
Returns the checkbox state. |
| public CATNotification | getStateChangedNotification()
Returns the checkbox state changed notification. |
| public String | getTitle()
Returns the checkbox title. |
| public void | setEnable(boolean iEnable)
Enables or disables this checkbox. |
| public void | setState(boolean iState)
Sets the checkbox state. |
| public void | setTitle(String iTitle)
Sets the checkbox title. |
| Field Detail |
| Constructor Detail |
CATCheckBox(CATDialog iDialog, String iName)
Creates a checkbox with the specified parent and name.
iParentiName| Method Detail |
public boolean getEnable()
Determines whether this checkbox is enabled or not.
true if this checkbox is enabled; false otherwise.
public boolean getState()
Returns the checkbox state.
true if this checkbox state is "on"; false otherwise.
public CATNotification getStateChangedNotification()
Returns the checkbox state changed notification.
This notification is sent when the checkbox is ticked or unticked.
public String getTitle()
Returns the checkbox title.
Returns the programmatic value if setTitle() has been called,
or tries to retrieve its title from the associated message catalog file
(<checkbox_path>.Title entry).
public void setEnable(boolean iEnable)
Enables or disables this checkbox.
A disabled checkbox state can't be changed by the user and doesn't fire
its StateChanged notification.
iEnabletrue, this checkbox is enabled; otherwise it is disabled.
public void setState(boolean iState)
Sets the checkbox state.
iStatetrue to set it to the "on" state; false to set it to "off"
public void setTitle(String iTitle)
Sets the checkbox 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