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
ConstructorDescriptionActionChooserDialog
(ActionsModel model) Constructor given an ActionsModel.ActionChooserDialog
(Tool tool, ComponentProvider provider, ActionContext context) Constructor for when aComponentProvider
has focusActionChooserDialog
(Tool tool, DialogComponentProvider dialog, ActionContext context) Constructor for when aDialogComponentProvider
has focus -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this method if you want to do something when the dialog is made visiblevoid
dispose()
Disposes this dialog.Returns the currentActionDisplayLevel
protected void
The callback method for when the "OK" button is pressed.void
Sets theActionDisplayLevel
for 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, 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, 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 aComponentProvider
has 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 aDialogComponentProvider
has 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:DialogComponentProvider
Override this method if you want to do something when the dialog is made visible- Overrides:
dialogShown
in classDialogComponentProvider
-
getActionDisplayLevel
Returns the currentActionDisplayLevel
- Returns:
- the current action display level
-
setActionDisplayLevel
Sets theActionDisplayLevel
for the dialog which determines which actions to display- Parameters:
level
- the action display level to use.
-
okCallback
protected void okCallback()Description copied from class:DialogComponentProvider
The callback method for when the "OK" button is pressed.- Overrides:
okCallback
in classDialogComponentProvider
-
dispose
public void dispose()Description copied from class:DialogComponentProvider
Disposes this dialog. Only call this when the dialog is no longer used. Calling this method will close the dialog if it is open.- Overrides:
dispose
in classDialogComponentProvider
-