Class ColumnFilterDialog
- 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.util.internal.dialog.DialogWithEntry
-
- org.eclipse.nebula.widgets.xviewer.util.internal.dialog.ColumnFilterDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class ColumnFilterDialog extends DialogWithEntry
-
-
Field Summary
Fields Modifier and Type Field Description private XViewerColumncolumnprivate java.util.Datedate1private org.eclipse.swt.widgets.DateTimedate1Widgetprivate java.util.Datedate2private org.eclipse.swt.widgets.DateTimedate2Widgetprivate DateRangeTypedateRangeTypeprivate org.eclipse.jface.viewers.ComboViewerdateRangeTypeComboprivate org.eclipse.swt.widgets.DateTimetime1Widgetprivate org.eclipse.swt.widgets.DateTimetime2Widgetprivate org.eclipse.swt.widgets.CompositewidgetComp-
Fields inherited from class org.eclipse.nebula.widgets.xviewer.util.internal.dialog.DialogWithEntry
comp, entryText, errorLabel, fillVertically, listener, ok, text, validationErrorString, validationRegularExpression
-
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 ColumnFilterDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String dialogTitle, java.lang.String dialogMessage, int question, java.lang.String[] strings, int i, XViewerColumn column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateExtendedArea(org.eclipse.swt.widgets.Composite parent)Override to provide other widgetsjava.util.DategetDate1()java.util.DategetDate2()DateRangeTypegetDateRangeType()private booleanisBetweenDates()voidsetDate1(java.util.Date date1)private voidsetDate1Selection()voidsetDate2(java.util.Date date2)private voidsetDate2Selection()voidsetDateRangeType(DateRangeType dateRangeType)voidupdateDate2Composite()-
Methods inherited from class org.eclipse.nebula.widgets.xviewer.util.internal.dialog.DialogWithEntry
createCustomArea, createExtendedAreaPre, getEntry, handleModified, isEntryValid, isFillVertically, isResizable, setEntry, setFillVertically, setInitialButtonState, setModeless, setSelectionListener, setValidationErrorString, setValidationRegularExpression
-
Methods inherited from class org.eclipse.jface.dialogs.MessageDialog
buttonPressed, configureShell, createButton, createButtonsForButtonBar, createDialogArea, 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, 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, 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 Detail
-
column
private final XViewerColumn column
-
dateRangeTypeCombo
private org.eclipse.jface.viewers.ComboViewer dateRangeTypeCombo
-
date1Widget
private org.eclipse.swt.widgets.DateTime date1Widget
-
date1
private java.util.Date date1
-
date2
private java.util.Date date2
-
dateRangeType
private DateRangeType dateRangeType
-
date2Widget
private org.eclipse.swt.widgets.DateTime date2Widget
-
time1Widget
private org.eclipse.swt.widgets.DateTime time1Widget
-
time2Widget
private org.eclipse.swt.widgets.DateTime time2Widget
-
widgetComp
private org.eclipse.swt.widgets.Composite widgetComp
-
-
Constructor Detail
-
ColumnFilterDialog
public ColumnFilterDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String dialogTitle, java.lang.String dialogMessage, int question, java.lang.String[] strings, int i, XViewerColumn column)
-
-
Method Detail
-
createExtendedArea
protected void createExtendedArea(org.eclipse.swt.widgets.Composite parent)
Description copied from class:DialogWithEntryOverride to provide other widgets- Overrides:
createExtendedAreain classDialogWithEntry
-
isBetweenDates
private boolean isBetweenDates()
-
updateDate2Composite
public void updateDate2Composite()
-
setDate1Selection
private void setDate1Selection()
-
setDate2Selection
private void setDate2Selection()
-
getDate1
public java.util.Date getDate1()
-
setDate1
public void setDate1(java.util.Date date1)
-
getDate2
public java.util.Date getDate2()
-
setDate2
public void setDate2(java.util.Date date2)
-
getDateRangeType
public DateRangeType getDateRangeType()
-
setDateRangeType
public void setDateRangeType(DateRangeType dateRangeType)
-
-