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
public class ColumnCategoriesDialog extends AbstractColumnChooserDialog
JFace/SWT based column chooser dialog which displays the available/hidden columns in a tree viewer. This tree viewer is based on theColumnCategoriesModel
.
-
-
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, ELLIPSIS
-
-
Constructor Summary
Constructors Constructor Description ColumnCategoriesDialog(org.eclipse.swt.widgets.Shell shell, ColumnCategoriesModel model, List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(IColumnCategoriesDialogListener listener)
Add aIColumnCategoriesDialogListener
that is triggered for modifications in the selected tree.protected void
addSelected()
protected void
fireItemsMoved(SelectionLayer.MoveDirectionEnum direction, List<Integer> toPositions)
protected void
fireItemsRemoved(List<Integer> removedColumnPositions)
protected void
fireItemsSelected(List<Integer> addedColumnIndexes)
protected void
moveSelectedDown()
protected void
moveSelectedUp()
void
populateDialogArea(org.eclipse.swt.widgets.Composite parent)
void
refresh(List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries)
void
removeListener(IColumnCategoriesDialogListener listener)
Remove aIColumnCategoriesDialogListener
that is triggered for modifications in the selected tree.protected void
removeSelected()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.columnChooser.gui.AbstractColumnChooserDialog
createButtonsForButtonBar, createDialogArea, createLabels, getDialogBoundsSettings, getInitialSize, setDialogSettings
-
Methods 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, shortenText
-
Methods 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 Detail
-
ColumnCategoriesDialog
public ColumnCategoriesDialog(org.eclipse.swt.widgets.Shell shell, ColumnCategoriesModel model, List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries)
-
-
Method Detail
-
populateDialogArea
public void populateDialogArea(org.eclipse.swt.widgets.Composite parent)
- Specified by:
populateDialogArea
in classAbstractColumnChooserDialog
-
removeSelected
protected void removeSelected()
-
addSelected
protected void addSelected()
-
addListener
public void addListener(IColumnCategoriesDialogListener listener)
Add aIColumnCategoriesDialogListener
that is triggered for modifications in the selected tree.- Parameters:
listener
- the listener to add.- Since:
- 2.0
-
removeListener
public void removeListener(IColumnCategoriesDialogListener listener)
Remove aIColumnCategoriesDialogListener
that is triggered for modifications in the selected tree.- Parameters:
listener
- the listener to remove.- Since:
- 2.0
-
fireItemsMoved
protected final void fireItemsMoved(SelectionLayer.MoveDirectionEnum direction, List<Integer> toPositions)
-
moveSelectedUp
protected void moveSelectedUp()
-
moveSelectedDown
protected void moveSelectedDown()
-
refresh
public void refresh(List<ColumnEntry> hiddenColumnEntries, List<ColumnEntry> visibleColumnsEntries)
-
-