| Constructor and Description |
|---|
Dialogs.DialogAction(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Get the name of this action
|
String |
getTooltip()
Get the tooltip for the button associated with this action
|
int |
hashCode() |
boolean |
isEnabled()
Returns the enabled state of the
DialogAction. |
abstract boolean |
performed(GDialog dialog)
Called when button clicked, before dialog is disposed.
|
void |
setEnabled(boolean enabled)
Sets the enabled state of the
DialogAction. |
void |
setTooltip(String tooltip)
Set a tooltip for the button associated with this action
|
String |
toString() |
public Dialogs.DialogAction(String name)
name - Text to appear on the buttonpublic abstract boolean performed(GDialog dialog)
dialog - that this action is called from. If you wish to display another
dialog as a result of the action you should set this dialog as its
parent. This will ensure the new dialog will be in front of the current one.public void setEnabled(boolean enabled)
DialogAction. When enabled,
the button associated with this object is active and
can be clicked.enabled - true if this DialogAction is enabledpublic boolean isEnabled()
DialogAction. When enabled,
the button associated with this object is active and
can be clicked.DialogAction is enabledpublic String getName()
public String getTooltip()
public void setTooltip(String tooltip)
tooltip - tooltip for the button associated with this action