public class UnoTypeBrowser extends org.eclipse.jface.dialogs.StatusDialog implements IFieldChangedListener, IInitListener
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 |
|---|
UnoTypeBrowser(org.eclipse.swt.widgets.Shell pParentShell,
int pAllowedTypes)
Creates a new browser dialog.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateFields(boolean pActivate)
Method to activate or unactivate the dialog fields.
|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite pParent) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite pParent) |
void |
fieldChanged(FieldEvent pEvent)
Method called when the row has changed.
|
InternalUnoType |
getSelectedType() |
void |
initialized()
Method called when the
UnoTypeProvider is initialized. |
protected void |
okPressed() |
void |
setSelectedType(InternalUnoType pType)
Set the type selected in the list.
|
configureShell, create, createButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatuscloseTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableapplyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerpublic UnoTypeBrowser(org.eclipse.swt.widgets.Shell pParentShell,
int pAllowedTypes)
pParentShell - the shell where to create the dialogpAllowedTypes - the bit-ORed allowed typesprotected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite pParent)
createButtonsForButtonBar in class org.eclipse.jface.dialogs.StatusDialogprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite pParent)
createDialogArea in class org.eclipse.jface.dialogs.Dialogpublic void initialized()
UnoTypeProvider is initialized.initialized in interface IInitListenerpublic void activateFields(boolean pActivate)
pActivate - true to activate all the fields, false to set the fields as not active.protected void okPressed()
okPressed in class org.eclipse.jface.dialogs.Dialogpublic void fieldChanged(FieldEvent pEvent)
fieldChanged in interface IFieldChangedListenerpEvent - the field event thrownpublic InternalUnoType getSelectedType()
InternalUnoType.public void setSelectedType(InternalUnoType pType)
pType - the type which should be selected