public class SelectObjectDialog extends TitleAreaDialog
Window.IExceptionHandler
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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 |
---|
SelectObjectDialog(Shell parentShell)
Create the dialog.
|
Modifier and Type | Method and Description |
---|---|
protected Control |
createDialogArea(Composite parent)
Create contents of the dialog.
|
info.textgrid.lab.core.model.TextGridObject |
getFirstElement() |
protected Point |
getInitialSize()
Return the initial size of the dialog.
|
String |
getQuery() |
info.textgrid.lab.core.model.TextGridObject[] |
getSelection() |
boolean |
isMulti() |
static info.textgrid.lab.core.model.TextGridObject |
selectObject(Shell parentShell,
String query,
String dialogTitle,
String title,
String message,
info.textgrid.lab.core.model.TextGridObject initialSelection) |
static info.textgrid.lab.core.model.TextGridObject[] |
selectObjects(Shell parentShell,
String query,
String dialogTitle,
String title,
String message,
info.textgrid.lab.core.model.TextGridObject... initialSelection) |
void |
setMessage(String newMessage) |
void |
setMulti(boolean multi) |
void |
setQuery(String query) |
void |
setSelection(info.textgrid.lab.core.model.TextGridObject... selection) |
createContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
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, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, configureShell, 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 SelectObjectDialog(Shell parentShell)
parentShell
- public boolean isMulti()
public void setMulti(boolean multi)
public info.textgrid.lab.core.model.TextGridObject[] getSelection()
public info.textgrid.lab.core.model.TextGridObject getFirstElement()
public void setSelection(info.textgrid.lab.core.model.TextGridObject... selection)
public String getQuery()
public void setQuery(String query)
protected Control createDialogArea(Composite parent)
createDialogArea
in class TitleAreaDialog
parent
- public static info.textgrid.lab.core.model.TextGridObject[] selectObjects(Shell parentShell, String query, String dialogTitle, String title, String message, info.textgrid.lab.core.model.TextGridObject... initialSelection)
public static info.textgrid.lab.core.model.TextGridObject selectObject(Shell parentShell, String query, String dialogTitle, String title, String message, info.textgrid.lab.core.model.TextGridObject initialSelection)
public void setMessage(String newMessage)
setMessage
in class TitleAreaDialog
protected Point getInitialSize()
getInitialSize
in class TitleAreaDialog
Copyright © 2013 TextGrid. All Rights Reserved.