Class XViewerCustomizeDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.IconAndMessageDialog
org.eclipse.jface.dialogs.MessageDialog
org.eclipse.nebula.widgets.xviewer.customize.dialog.XViewerCustomizeDialog
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class XViewerCustomizeDialog
extends org.eclipse.jface.dialogs.MessageDialog
Provides dialog for table customization
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.widgets.Button
addAllItemButton
(package private) org.eclipse.swt.widgets.Button
addItemButton
(package private) org.eclipse.swt.widgets.Button
deleteButton
protected XViewerFilteredTree
hiddenColTable
(package private) org.eclipse.swt.dnd.DragSourceAdapter
hiddenTableDragListener
(package private) org.eclipse.swt.dnd.DropTargetAdapter
hiddenTableDropListener
(package private) boolean
isFeedbackAfter
(package private) boolean
isShowColumnFilterTextBlock
(package private) boolean
isShowFilterTextBlock
(package private) boolean
isShowSorterBlock
(package private) org.eclipse.swt.widgets.Button
moveDownButton
(package private) org.eclipse.swt.widgets.Button
moveUpButton
(package private) org.eclipse.swt.widgets.Button
removeAllItemButton
(package private) org.eclipse.swt.widgets.Button
removeItemButton
(package private) org.eclipse.swt.widgets.Button
renameButton
(package private) org.eclipse.swt.widgets.Button
saveButton
(package private) org.eclipse.swt.widgets.Button
setDefaultButton
protected XViewerFilteredTree
visibleColTable
(package private) org.eclipse.swt.dnd.DragSourceAdapter
visibleTableDragListener
(package private) org.eclipse.swt.dnd.DropTargetAdapter
visibleTableDropListener
Fields inherited from class org.eclipse.jface.dialogs.MessageDialog
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
Fields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
imageLabel, message, messageLabel
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 XViewerCustomizeDialog(XViewer xViewer)
-
Method Summary
Modifier and Type Method Description protected void
buttonPressed(int buttonId)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected java.util.List<XViewerColumn>
getHiddenTableSelection()
java.lang.String
getTitle()
protected java.util.List<XViewerColumn>
getVisibleTableSelection()
protected void
handleAddAllItem()
for testing purposesprotected void
handleLoadConfigCust()
for testing purposesprotected void
moveFromVisibleToHidden(java.util.List<XViewerColumn> visibleSelCols)
void
performHiddenTableDragOver(org.eclipse.swt.dnd.DropTargetEvent event)
Drag should only be from visible tablevoid
performHiddenTableTextDrop(org.eclipse.swt.dnd.DropTargetEvent event)
void
performVisibleTableDragOver(org.eclipse.swt.dnd.DropTargetEvent event)
void
performVisibleTableTextDrop(org.eclipse.swt.dnd.DropTargetEvent event)
void
restoreCustTableSelection()
void
setShowColumnFilterTextBlock(boolean isShowColumnFilterTextBlock)
void
setShowFilterTextBlock(boolean isShowFilterTextBlock)
void
setShowSorterBlock(boolean isShowSorterBlock)
void
setTitle(java.lang.String title)
void
storeCustTableSelection()
Methods inherited from class org.eclipse.jface.dialogs.MessageDialog
configureShell, createButton, createButtonsForButtonBar, createCustomArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getColumnCount, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Field Details
-
-
visibleColTable
-
setDefaultButton
org.eclipse.swt.widgets.Button setDefaultButton -
deleteButton
org.eclipse.swt.widgets.Button deleteButton -
addItemButton
org.eclipse.swt.widgets.Button addItemButton -
addAllItemButton
org.eclipse.swt.widgets.Button addAllItemButton -
removeItemButton
org.eclipse.swt.widgets.Button removeItemButton -
removeAllItemButton
org.eclipse.swt.widgets.Button removeAllItemButton -
moveUpButton
org.eclipse.swt.widgets.Button moveUpButton -
moveDownButton
org.eclipse.swt.widgets.Button moveDownButton -
saveButton
org.eclipse.swt.widgets.Button saveButton -
renameButton
org.eclipse.swt.widgets.Button renameButton -
isFeedbackAfter
boolean isFeedbackAfter -
isShowSorterBlock
boolean isShowSorterBlock -
isShowFilterTextBlock
boolean isShowFilterTextBlock -
isShowColumnFilterTextBlock
boolean isShowColumnFilterTextBlock -
org.eclipse.swt.dnd.DragSourceAdapter hiddenTableDragListener
-
org.eclipse.swt.dnd.DropTargetAdapter hiddenTableDropListener
-
visibleTableDragListener
org.eclipse.swt.dnd.DragSourceAdapter visibleTableDragListener -
visibleTableDropListener
org.eclipse.swt.dnd.DropTargetAdapter visibleTableDropListener
-
-
Constructor Details
-
Method Details
-
setTitle
public void setTitle(java.lang.String title) -
performHiddenTableDragOver
public void performHiddenTableDragOver(org.eclipse.swt.dnd.DropTargetEvent event)Drag should only be from visible table -
performHiddenTableTextDrop
public void performHiddenTableTextDrop(org.eclipse.swt.dnd.DropTargetEvent event) -
performVisibleTableTextDrop
public void performVisibleTableTextDrop(org.eclipse.swt.dnd.DropTargetEvent event) -
performVisibleTableDragOver
public void performVisibleTableDragOver(org.eclipse.swt.dnd.DropTargetEvent event) -
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.MessageDialog
-
moveFromVisibleToHidden
-
handleAddAllItem
protected void handleAddAllItem()for testing purposes -
handleLoadConfigCust
protected void handleLoadConfigCust()for testing purposes -
getVisibleTableSelection
-
getHiddenTableSelection
-
storeCustTableSelection
public void storeCustTableSelection() -
restoreCustTableSelection
public void restoreCustTableSelection() -
buttonPressed
protected void buttonPressed(int buttonId)- Overrides:
buttonPressed
in classorg.eclipse.jface.dialogs.MessageDialog
-
getTitle
public java.lang.String getTitle() -
setShowSorterBlock
public void setShowSorterBlock(boolean isShowSorterBlock) -
setShowFilterTextBlock
public void setShowFilterTextBlock(boolean isShowFilterTextBlock) -
setShowColumnFilterTextBlock
public void setShowColumnFilterTextBlock(boolean isShowColumnFilterTextBlock)
-