Package docking.actions.dialog
Class ActionChooserDialog
java.lang.Object
docking.DialogComponentProvider
docking.actions.dialog.ActionChooserDialog
- All Implemented Interfaces:
ActionContextProvider,StatusListener,TaskListener
Dialog for displaying and invoking docking actions. The dialog will display a mix of local
and global actions that varies depending on its current
ActionDisplayLevel.-
Field Summary
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel -
Constructor Summary
ConstructorsConstructorDescriptionActionChooserDialog(ActionsModel model) Constructor given an ActionsModel.ActionChooserDialog(Tool tool, ComponentProvider provider, ActionContext context) Constructor for when aComponentProviderhas focusActionChooserDialog(Tool tool, DialogComponentProvider dialog, ActionContext context) Constructor for when aDialogComponentProviderhas focus -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride this method if you want to do something when the dialog is made visiblevoiddispose()Disposes this dialog.Returns the currentActionDisplayLevelprotected voidThe callback method for when the "OK" button is pressed.voidSets theActionDisplayLevelfor the dialog which determines which actions to displayMethods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, closeDialog, createSharedActions, dialogClosed, dismissCallback, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocation, getId, getInitialLocation, getLocationOnScreen, getParent, getPreferredSize, getRememberLocation, getRememberSize, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isDialogKeyBindingAction, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, setAccessibleDescription, setApplyEnabled, setApplyToolTip, setBackground, setCancelButtonText, setCancelEnabled, setCancelToolTip, setCursor, setDefaultButton, setDefaultSize, setDialogSize, setDismissToolTip, setFocusComponent, setGlassPane, setHelpLocation, setInitialLocation, setMinimumSize, setMinimumSize, setOkButtonText, setOkEnabled, setOkToolTip, setPreferredSize, setRememberLocation, setRememberSize, setResizable, setStatusJustification, setStatusText, setStatusText, setStatusText, setTitle, setTransient, setUseSharedLocation, showProgressBar, showTaskMonitorComponent, stopProgressTimer, taskCancelled, taskCompleted, toFront, toString, waitForCurrentTask
-
Constructor Details
-
ActionChooserDialog
Constructor given an ActionsModel.- Parameters:
model- the ActionsModel to use in the dialog
-
ActionChooserDialog
Constructor for when aComponentProviderhas focus- Parameters:
tool- the active toolprovider- the ComponentProvider that has focuscontext- the ActionContext that is active and will be used to invoke the chosen action
-
ActionChooserDialog
Constructor for when aDialogComponentProviderhas focus- Parameters:
tool- the active tooldialog- the DialogComponentProvider that has focuscontext- the ActionContext that is active and will be used to invoke the chosen action
-
-
Method Details
-
dialogShown
protected void dialogShown()Description copied from class:DialogComponentProviderOverride this method if you want to do something when the dialog is made visible- Overrides:
dialogShownin classDialogComponentProvider
-
getActionDisplayLevel
Returns the currentActionDisplayLevel- Returns:
- the current action display level
-
setActionDisplayLevel
Sets theActionDisplayLevelfor the dialog which determines which actions to display- Parameters:
level- the action display level to use.
-
okCallback
protected void okCallback()Description copied from class:DialogComponentProviderThe callback method for when the "OK" button is pressed.- Overrides:
okCallbackin classDialogComponentProvider
-
dispose
public void dispose()Description copied from class:DialogComponentProviderDisposes this dialog. Only call this when the dialog is no longer used. Calling this method will close the dialog if it is open.- Overrides:
disposein classDialogComponentProvider
-