public class DialogWithEntry
extends org.eclipse.jface.dialogs.MessageDialog
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.widgets.Composite |
comp |
(package private) java.lang.String |
entryText |
(package private) org.eclipse.swt.widgets.Label |
errorLabel |
(package private) boolean |
fillVertically |
(package private) org.eclipse.swt.events.MouseMoveListener |
listener |
(package private) org.eclipse.swt.widgets.Button |
ok |
(package private) XViewerTextWidget |
text |
(package private) java.lang.String |
validationErrorString |
(package private) java.lang.String |
validationRegularExpression |
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
imageLabel, message, messageLabel
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 and Description |
---|
DialogWithEntry(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) |
DialogWithEntry(java.lang.String dialogTitle,
java.lang.String dialogMessage) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Control |
createCustomArea(org.eclipse.swt.widgets.Composite parent) |
protected void |
createExtendedArea(org.eclipse.swt.widgets.Composite parent)
Override to provide other widgets
|
protected void |
createExtendedAreaPre(org.eclipse.swt.widgets.Composite parent)
Override to provide other widgets before entry
|
java.lang.String |
getEntry() |
void |
handleModified() |
boolean |
isEntryValid()
override this method to make own checks on entry this will be called with every keystroke
|
boolean |
isFillVertically() |
protected boolean |
isResizable() |
void |
setEntry(java.lang.String entry) |
void |
setFillVertically(boolean fillVertically) |
void |
setInitialButtonState() |
void |
setModeless()
Calling will enable dialog to loose focus
|
void |
setSelectionListener(org.eclipse.swt.events.SelectionListener listener) |
void |
setValidationErrorString(java.lang.String errorText) |
void |
setValidationRegularExpression(java.lang.String regExp) |
buttonPressed, configureShell, createButton, createButtonsForButtonBar, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
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
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
XViewerTextWidget text
org.eclipse.swt.widgets.Composite comp
java.lang.String entryText
java.lang.String validationRegularExpression
java.lang.String validationErrorString
org.eclipse.swt.widgets.Button ok
org.eclipse.swt.events.MouseMoveListener listener
org.eclipse.swt.widgets.Label errorLabel
boolean fillVertically
public DialogWithEntry(java.lang.String dialogTitle, java.lang.String dialogMessage)
public DialogWithEntry(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)
protected org.eclipse.swt.widgets.Control createCustomArea(org.eclipse.swt.widgets.Composite parent)
createCustomArea
in class org.eclipse.jface.dialogs.MessageDialog
protected void createExtendedAreaPre(org.eclipse.swt.widgets.Composite parent)
protected boolean isResizable()
isResizable
in class org.eclipse.jface.dialogs.Dialog
protected void createExtendedArea(org.eclipse.swt.widgets.Composite parent)
public void setInitialButtonState()
public void handleModified()
public java.lang.String getEntry()
public void setEntry(java.lang.String entry)
public boolean isEntryValid()
public void setValidationRegularExpression(java.lang.String regExp)
public void setValidationErrorString(java.lang.String errorText)
public void setModeless()
public void setSelectionListener(org.eclipse.swt.events.SelectionListener listener)
public boolean isFillVertically()
public void setFillVertically(boolean fillVertically)