|
|
Package com.dassault_systemes.catjdialog |
Class CATDialogBox
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catjdialog.CATCallbackSource | +-com.dassault_systemes.catjdialog.CATDialog | +-com.dassault_systemes.catjdialog.CATDialogFrame | +-com.dassault_systemes.catjdialog.CATDialogBox
Class Location |
Class Description |
public class CATDialogBox
The dialog box graphical component.
<dialobbox_path>.Title
entry.
You may also set it programmatically using setTitle()
.
All Implemented Interfaces: CATIDefaultButton CATICmdButtons
Field Summary |
int | OK_BUTTON |
int | CANCEL_BUTTON |
int | APPLY_BUTTON |
int | CLOSE_BUTTON |
int | NONE |
int | OKCANCEL |
int | OKCANCELAPPLY |
int | CLOSE |
Constructor Summary |
CATDialogBox(CATDialog iParent, String iName) |
Method Summary |
boolean | getPacked() |
void | setPacked(boolean iPacked) |
void | setDefaultButton(int iButton) |
CATButton | getDefaultButton() |
void | setOKEnable(boolean iEnable) |
boolean | getOKEnable() |
void | setCANCELEnable(boolean iEnable) |
boolean | getCANCELEnable() |
void | setAPPLYEnable(boolean iEnable) |
boolean | getAPPLYEnable() |
void | setAPPLYTitle(String iTitle) |
void | setOKTitle(String iTitle) |
void | setCANCELTitle(String iTitle) |
void | setCLOSETitle(String iTitle) |
String | getAPPLYTitle() |
String | getOKTitle() |
String | getCANCELTitle() |
String | getCLOSETitle() |
int | getStyle() |
void | setStyle(int iStyle) |
CATDialog | getCmdButtons() |
CATDialog | getButtons() |
CATDialog | getContent() |
CATNotification | getOKNotification() |
CATNotification | getCANCELNotification() |
CATNotification | getCLOSENotification() |
CATNotification | getAPPLYNotification() |
Field Detail |
int OK_BUTTONButton: OK
int CANCEL_BUTTONButton: CANCEL
int APPLY_BUTTONButton: APPLY
int CLOSE_BUTTONButton: CLOSE
int NONEStyle: No button
int OKCANCELStyle: Ok/Cancel buttons
int OKCANCELAPPLYStyle: Ok/Apply/Cancel buttons
int CLOSEStyle: Close button
Constructor Detail |
CATDialogBox(CATDialog iParent, String iName)Creates a dialog box with the specified parent and name.
iParent
iName
Method Detail |
boolean getPacked()Determines whether this dialog box is packed to its minimum size or not. Default is not packed.
true
if this dialog box is packed; false
otherwise.void setPacked(boolean iPacked)Enables/disables packing this dialog box to its minimum size.
iPacked
true
, this dialog box is packed to its minimum size.void setDefaultButton(int iButton)Defines the default button.
That causes the default button to be automatically triggered (as if it was pressed) when the user presses ENTER.
iButton
CATButton getDefaultButton()Retrieves the default button in the DialogBox (may be null).
void setOKEnable(boolean iEnable)Enables/disables the OK button.
A disabled button doesn't fire its ButtonActivated
notification.
iEnable
true
, the button is enabled; otherwise it is disabled.boolean getOKEnable()Determines whether if the OK button is enabled.
true
if the button is enabled; false
otherwise.void setCANCELEnable(boolean iEnable)Enables/disables the CANCEL button.
A disabled button doesn't fire its ButtonActivated
notification.
iEnable
true
, the button is enabled; otherwise it is disabled.boolean getCANCELEnable()Determines whether if the CANCEL button is enabled.
true
if the button is enabled; false
otherwise.void setAPPLYEnable(boolean iEnable)Enables/disables the APPLY button.
A disabled button doesn't fire its ButtonActivated
notification.
iEnable
true
, the button is enabled; otherwise it is disabled.boolean getAPPLYEnable()Determines whether if the APPLY button is enabled.
true
if the button is enabled; false
otherwise.void setAPPLYTitle(String iTitle)Sets the APPLY button label.
Calling this method overwrites programmatically the default NLS label ("Apply" in English).
iTitle
void setOKTitle(String iTitle)Sets the OK button label.
Calling this method overwrites programmatically the default NLS label ("Ok" in English).
iTitle
void setCANCELTitle(String iTitle)Sets the CANCEL button label.
Calling this method overwrites programmatically the default NLS label ("Cancel" in English).
iTitle
void setCLOSETitle(String iTitle)Sets the CLOSE button label.
Calling this method overwrites programmatically the default NLS label ("Close" in English).
iTitle
String getAPPLYTitle()Returns the APPLY button label.
Returns the overwritting label (set by setAPPLYTitle()
method) or the
default label (NLS).
String getOKTitle()Returns the OK button label.
Returns the overwritting label (set by setOKTitle()
method) or the
default label (NLS).
String getCANCELTitle()Returns the CANCEL button label.
Returns the overwritting label (set by setCANCELTitle()
method) or the
default label (NLS).
String getCLOSETitle()Returns the CLOSE button label.
Returns the overwritting label (set by setCLOSETitle()
method) or the
default label (NLS).
int getStyle()Returns the dialog box current style.
void setStyle(int iStyle)Sets the dialog box style (that is the buttons to display).
iStyle
CATDialog getCmdButtons()Returns the buttons container component.
CATDialog getButtons()Returns the buttons container component.
CATDialog getContent()Returns the child component that is the content of the dialog box.
CATNotification getOKNotification()Notification for the OK button.
CATNotification getCANCELNotification()Notification for the Cancel button
CATNotification getCLOSENotification()Notification for the Close button
CATNotification getAPPLYNotification()Notification for the Apply button