public class DialogAction extends BaseAction
showOptionDialog(
"Select options",
"Do you want to print all rows?",
MessageType.CONFIRMATION,
new Action[]{
new DialogAction(Type.YES).withHandler(event -> {
// add action logic here
}),
new DialogAction(Type.NO)
.withCaption("Print selected")
.withIcon("icons/print-selected.png")
.withHandler(event -> {
// add action logic here
}),
new DialogAction(Type.CANCEL)
});
Dialogs| Modifier and Type | Class and Description |
|---|---|
static class |
DialogAction.Type |
BaseAction.EnabledRuleAction.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status| Modifier and Type | Field and Description |
|---|---|
protected DialogAction.Type |
type |
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visiblePROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE| Constructor and Description |
|---|
DialogAction(DialogAction.Type type) |
DialogAction(DialogAction.Type type,
Action.Status status) |
DialogAction(DialogAction.Type type,
boolean primary) |
| Modifier and Type | Method and Description |
|---|---|
DialogAction.Type |
getType() |
actionPerform, addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutaddOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setShortcut, setShortcutCombinationprotected DialogAction.Type type
public DialogAction(DialogAction.Type type)
public DialogAction(DialogAction.Type type, boolean primary)
public DialogAction(DialogAction.Type type, Action.Status status)
public DialogAction.Type getType()