public class SingleQuestion
extends org.eclipse.jface.dialogs.TrayDialog
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 |
---|
SingleQuestion(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message,
java.lang.String defaultValue,
java.lang.Boolean multiline) |
SingleQuestion(java.lang.String title,
java.lang.String message,
java.lang.String defaultValue) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ask(java.lang.String title,
java.lang.String message) |
static java.lang.String |
ask(java.lang.String title,
java.lang.String message,
java.lang.String defaultValue) |
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Text |
createLT(org.eclipse.swt.widgets.Composite parent,
java.lang.String label)
Creates label and text.
|
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
java.lang.String |
getString() |
protected void |
okPressed() |
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
public SingleQuestion(java.lang.String title, java.lang.String message, java.lang.String defaultValue)
public SingleQuestion(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String message, java.lang.String defaultValue, java.lang.Boolean multiline)
public static java.lang.String ask(java.lang.String title, java.lang.String message)
public static java.lang.String ask(java.lang.String title, java.lang.String message, java.lang.String defaultValue)
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Text createLT(org.eclipse.swt.widgets.Composite parent, java.lang.String label)
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell
in class org.eclipse.jface.window.Window
public java.lang.String getString()
Copyright © 2007–2020. All rights reserved.