Package docking.widgets
Class ListSelectionDialog<T>
java.lang.Object
docking.DialogComponentProvider
docking.widgets.ListSelectionDialog<T>
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
-
Field Summary
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
Constructor Summary
ConstructorDescriptionListSelectionDialog
(String title, String label, List<T> data, DataToStringConverter<T> searchConverter) ListSelectionDialog
(String title, String label, List<T> data, DataToStringConverter<T> searchConverter, DataToStringConverter<T> descriptionConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
browse()
protected JComponent
buildWorkPanel
(String label, DropDownTextFieldDataModel<T> model) protected void
The callback method for when the "Cancel" button is pressed.static ListSelectionDialog
<String> getStringListSelectionDialog
(String title, String label, List<String> data) static void
protected void
The callback method for when the "OK" button is pressed.boolean
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, closeDialog, dialogClosed, dialogShown, dismissCallback, dispose, 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
-
Field Details
-
cancelled
protected boolean cancelled
-
-
Constructor Details
-
ListSelectionDialog
-
ListSelectionDialog
public ListSelectionDialog(String title, String label, List<T> data, DataToStringConverter<T> searchConverter, DataToStringConverter<T> descriptionConverter)
-
-
Method Details
-
getStringListSelectionDialog
-
cancelCallback
protected void cancelCallback()Description copied from class:DialogComponentProvider
The callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.- Overrides:
cancelCallback
in classDialogComponentProvider
-
okCallback
protected void okCallback()Description copied from class:DialogComponentProvider
The callback method for when the "OK" button is pressed.- Overrides:
okCallback
in classDialogComponentProvider
-
wasCancelled
public boolean wasCancelled() -
show
-
getSelectedItem
-
buildWorkPanel
-
browse
protected void browse() -
main
-