Class ColumnCategoriesDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.nebula.widgets.nattable.columnChooser.gui.AbstractColumnChooserDialog
org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
JFace/SWT based column chooser dialog which displays the available/hidden
columns in a tree viewer. This tree viewer is based on the
ColumnCategoriesModel.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler -
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionColumnCategoriesDialog(org.eclipse.swt.widgets.Shell shell, ColumnCategoriesModel model, List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(IColumnCategoriesDialogListener listener) Add aIColumnCategoriesDialogListenerthat is triggered for modifications in the selected tree.protected voidprotected final voidfireItemsMoved(SelectionLayer.MoveDirectionEnum direction, List<Integer> toPositions) protected final voidfireItemsRemoved(List<Integer> removedColumnPositions) protected final voidfireItemsSelected(List<Integer> addedColumnIndexes) protected voidprotected voidvoidpopulateDialogArea(org.eclipse.swt.widgets.Composite parent) voidrefresh(List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries) voidRemove aIColumnCategoriesDialogListenerthat is triggered for modifications in the selected tree.protected voidMethods inherited from class org.eclipse.nebula.widgets.nattable.columnChooser.gui.AbstractColumnChooserDialog
createButtonsForButtonBar, createDialogArea, createLabels, getDialogBoundsSettings, getInitialSize, setDialogSettingsMethods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
ColumnCategoriesDialog
public ColumnCategoriesDialog(org.eclipse.swt.widgets.Shell shell, ColumnCategoriesModel model, List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries)
-
-
Method Details
-
populateDialogArea
public void populateDialogArea(org.eclipse.swt.widgets.Composite parent) - Specified by:
populateDialogAreain classAbstractColumnChooserDialog
-
removeSelected
protected void removeSelected() -
addSelected
protected void addSelected() -
addListener
Add aIColumnCategoriesDialogListenerthat is triggered for modifications in the selected tree.- Parameters:
listener- the listener to add.- Since:
- 2.0
-
removeListener
Remove aIColumnCategoriesDialogListenerthat is triggered for modifications in the selected tree.- Parameters:
listener- the listener to remove.- Since:
- 2.0
-
fireItemsSelected
-
fireItemsRemoved
-
fireItemsMoved
protected final void fireItemsMoved(SelectionLayer.MoveDirectionEnum direction, List<Integer> toPositions) -
moveSelectedUp
protected void moveSelectedUp() -
moveSelectedDown
protected void moveSelectedDown() -
refresh
-