Package docking.widgets
Class ListSelectionTableDialog<T>
- java.lang.Object
-
- docking.DialogComponentProvider
-
- docking.widgets.ListSelectionTableDialog<T>
-
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
public class ListSelectionTableDialog<T> extends DialogComponentProvider
-
-
Field Summary
-
Fields inherited from class docking.DialogComponentProvider
applyButton, cancelButton, dismissButton, okButton, rootPanel
-
-
Constructor Summary
Constructors Constructor Description ListSelectionTableDialog(java.lang.String title, RowObjectTableModel<T> model)
ListSelectionTableDialog(java.lang.String title, java.util.List<T> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getSelectedItem()
void
hideOkButton()
Removes the ok button from the dialog.protected void
okCallback()
The callback method for when the "OK" button is pressed.void
setMultiSelectionMode(boolean enable)
T
show(java.awt.Component parent)
-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getIntialLocation, getLocationOnScreen, getPreferredSize, getRemberSize, getRememberLocation, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, main, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, 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 Detail
-
ListSelectionTableDialog
public ListSelectionTableDialog(java.lang.String title, java.util.List<T> list)
-
ListSelectionTableDialog
public ListSelectionTableDialog(java.lang.String title, RowObjectTableModel<T> model)
-
-
Method Detail
-
okCallback
protected void okCallback()
Description copied from class:DialogComponentProvider
The callback method for when the "OK" button is pressed.- Overrides:
okCallback
in classDialogComponentProvider
-
getSelectedItem
public T getSelectedItem()
-
show
public T show(java.awt.Component parent)
-
setMultiSelectionMode
public void setMultiSelectionMode(boolean enable)
-
hideOkButton
public void hideOkButton()
Removes the ok button from the dialog. This is useful if you are using this dialog as a presentation of data and do not wish to do anything when the user makes selections.
-
-