Class DateSelectionDialog
- 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.DateSelectionDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class DateSelectionDialog extends org.eclipse.jface.dialogs.MessageDialog
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
dialogMessage
private java.util.Date
initialDate
private java.util.Date
selectedDate
-
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 DateSelectionDialog(java.lang.String dialogTitle, java.lang.String dialogMessage, java.util.Date selectedDate)
DateSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, java.lang.String dialogMessage, int dialogImageType, java.lang.String[] dialogButtonLabels, int defaultIndex, java.util.Date selectedDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite container)
java.util.Date
getSelectedDate()
boolean
isNoneSelected()
void
setSelectedDate(java.util.Date initialDate)
-
Methods inherited from class org.eclipse.jface.dialogs.MessageDialog
buttonPressed, 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, 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
-
-
-
-
Constructor Detail
-
DateSelectionDialog
public DateSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, java.lang.String dialogMessage, int dialogImageType, java.lang.String[] dialogButtonLabels, int defaultIndex, java.util.Date selectedDate)
-
DateSelectionDialog
public DateSelectionDialog(java.lang.String dialogTitle, java.lang.String dialogMessage, java.util.Date selectedDate)
-
-
Method Detail
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite container)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.MessageDialog
-
getSelectedDate
public java.util.Date getSelectedDate()
- Returns:
- the selectedDate
-
setSelectedDate
public void setSelectedDate(java.util.Date initialDate)
- Parameters:
selectedDate
- the selectedDate to set
-
isNoneSelected
public boolean isNoneSelected()
- Returns:
- the noneSelected
-
-