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-seletcted.png")
.withHandler(event -> {
// add action logic here
}),
new DialogAction(Type.CANCEL)
});
Modifier and Type | Class and Description |
---|---|
static class |
DialogAction.Type |
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAware
PROP_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, addEnabledRule, getTarget, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setTarget, setVisible, setVisibleByUiPermissions, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombination
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setShortcut, setShortcutCombination
public DialogAction(DialogAction.Type type)
public DialogAction(DialogAction.Type type, boolean primary)
public DialogAction(DialogAction.Type type, Action.Status status)
public DialogAction.Type getType()