|
|
|||||
| Package com.dassault_systemes.catjdialog |
Class CATButton
|
| Class Hierarchy |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATButton
| Class Location |
| Class Description |
public class CATButton
The button graphical component.
<button_path>.Title entry.
You may also set it programmatically using setTitle().
<button_path>.Tooltip entry.
You may also set it programmatically using setTooltip().
| Field Summary |
| Constructor Summary |
| CATButton(CATDialog iDialog, String iName)
Creates a button with the specified parent and name. |
| Method Summary |
| public CATNotification | getButtonActivatedNotification()
Returns the button activation notification. |
| public boolean | getEnable()
Determines whether this button is enabled or not. |
| public String | getTitle()
Returns the button's title. |
| public String | getTooltip()
Returns the button's tooltip. |
| public void | setEnable(boolean iEnable)
Enables or disables this button. |
| public void | setTitle(String iTitle)
Sets the button's title. |
| public void | setTooltip(String iTooltip)
Sets the button's tooltip. |
| Field Detail |
| Constructor Detail |
CATButton(CATDialog iDialog, String iName)
Creates a button with the specified parent and name.
iParentiName| Method Detail |
public CATNotification getButtonActivatedNotification()
Returns the button activation notification.
This notification is sent when the button is pressed.
public boolean getEnable()
Determines whether this button is enabled or not.
true if this button is enabled; false otherwise.
public String getTitle()
Returns the button's title.
Returns the programmatic value if setTitle() has been called,
or tries to retrieve its title from the associated message catalog file
(<button_path>.Title entry).
public String getTooltip()
Returns the button's tooltip.
Returns the programmatic value if setTooltip() has been called,
or tries to retrieve its value from the associated message catalog file
(<button_path>.Tooltip entry).
public void setEnable(boolean iEnable)
Enables or disables this button.
A disabled button doesn't fire its ButtonActivated notification.
iEnabletrue, this button is enabled; otherwise it is disabled.
public void setTitle(String iTitle)
Sets the 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
public void setTooltip(String iTooltip)
Sets the button's tooltip.
Calling this method sets programmatically the tooltip. This should
be reserved for cases where the tooltip can only be determined by dynamic
means.
The standard way of defining components messages is using CATNls catalog
files (supports NLS).
iTooltip