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, buttonPanel, 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 Deprecated Methods Modifier and Type Method Description void
close()
T
getSelectedItem()
java.util.List<T>
getSelectedItems()
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)
Deprecated.to be removed sometime after the 9.3 releaseT
show(java.awt.Component parent)
java.util.List<T>
showSelectMultiple(java.awt.Component parent)
-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getId, getIntialLocation, getLocationOnScreen, getParent, getPreferredSize, getRemberSize, getRememberLocation, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, 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
-
close
public void close()
- Overrides:
close
in classDialogComponentProvider
-
getSelectedItem
public T getSelectedItem()
-
getSelectedItems
public java.util.List<T> getSelectedItems()
-
show
public T show(java.awt.Component parent)
-
showSelectMultiple
public java.util.List<T> showSelectMultiple(java.awt.Component parent)
-
setMultiSelectionMode
@Deprecated public void setMultiSelectionMode(boolean enable)
Deprecated.to be removed sometime after the 9.3 releaseCalling this method does does not work correctly when used withshow(Component)
orshowSelectMultiple(Component)
. To use this method, you must show the dialog by calling:DockingWindowManager.showDialog(parent, dialog);
There is no need to use this method when using either of the aforementioned
show
methods- Parameters:
enable
- true to allow multiple selection
-
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.
-
-