|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog org.eclipse.jface.dialogs.TrayDialog org.eclipse.jface.dialogs.TitleAreaDialog com.ibm.commons.swt.data.dialog.LWPDCommonDialog
public abstract class LWPDCommonDialog
A common base dialog used for most Domino Designer dialogs. This dialog contains a title area for info/warning/error messages. The dialog may optionally have a progress bar embedded.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary | |
---|---|
protected boolean |
_bDialogWidgetInitialized
|
protected boolean |
_bSetFocusControl
|
protected boolean |
useEclipseDialog
|
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
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 |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
LWPDCommonDialog(org.eclipse.swt.widgets.Shell parentShell)
Constructs a new instance of this class. |
Method Summary | |
---|---|
protected org.eclipse.core.runtime.IProgressMonitor |
attachProgressMonitor()
Attaches the progress monitor to the dialog. |
boolean |
close()
|
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
Configures the Shell in which the dialog will reside. |
protected org.eclipse.swt.widgets.Control |
createButtonBar(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Layout |
createContainerLayout()
Creates a GridLayout with two columns. |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
protected TitleAreaComposite |
createTitleAreaComposite(org.eclipse.swt.widgets.Composite parent)
Subclass may override if a title area control is not desirable. |
protected void |
detachProgressMonitor()
Removes the progress monitor widget from the dialog. |
protected boolean |
doPerformDialog()
Calls the abstract method performDialogOperation(IProgressMonitor) . |
protected abstract void |
fillClientArea(org.eclipse.swt.widgets.Composite parent)
Consummers implement this function to provide their content |
protected org.eclipse.jface.dialogs.IDialogSettings |
getDialogBoundsSettings()
Subclasses should override this method to return the dialog settings associated with the current plugin |
protected int |
getDialogBoundsStrategy()
Dialogs should override to set whether they want the size/location of the dialog to be persisted. |
protected java.lang.String |
getDialogTitle()
Returns the title of the dialog. |
protected org.eclipse.swt.graphics.Image |
getTitleImage()
Returns an image to be displayed in the title area of the dialog. |
protected org.eclipse.jface.resource.ImageDescriptor |
getTitleImageDescriptor()
Returns an image descriptor which will be displayed in the title area of the dialog. |
UIUpdater |
getUpdater()
Returns a UIUpdater that is called periodically (frequently) to update various parts of the dialog. |
protected org.eclipse.ui.IWorkbench |
getWorkbench()
Returns the active workbench |
protected void |
initMainPanel()
Subclass may override, does nothing by default. |
protected void |
invalidateDialog(java.lang.String message)
Helper method that invalidates the dialog. |
boolean |
isDirty()
Returns whether or not any of the controls within the dialog have been modified. |
protected boolean |
isModal()
|
protected boolean |
needsProgressMonitor()
Indicates to the dialog creation code that a progress monitor should be added to the UI and be made visible. |
protected void |
okPressed()
|
int |
open()
|
protected abstract boolean |
performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
An abstract method that gets called when the OK button is pressed on the dialog. |
void |
refreshTitleArea()
Refreshes the layout of the title area |
void |
setBlockOnOpen(boolean shouldBlock)
no-op.. |
protected void |
setClassDef(IClassDef classDef)
If this dialog is bound to data (i.e. |
protected void |
setDataChangeNotifier(DataChangeNotifier dataChangeNotifier)
Adds a listener to the data model that gets notified of changes to the model. |
protected void |
setDataProvider(IObjectCollection objectCollection)
If this dialog is bound to data then this method must be called to set up the data provider. |
void |
setDirty(boolean bSet)
Sets whether or not any of the controls in the dialog have been modified. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets an error message in the title area of the dialog |
void |
setMessage(java.lang.String newMessage,
int newType)
|
void |
setUpdater(UIUpdater updater)
Sets the UIUpdater that is responsible for updating various parts of the dialog. |
protected boolean |
useScrollableContents()
By default all dialogs subclassing this base class will use a scrollable composite for the main dialog contents. |
protected void |
validateDialog()
Provide dialog validation for the contents of the dialog. |
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
getInitialSize, getTitleArea, getTitleImageLabel, setMessage, setTitle, setTitleAreaColor, setTitleImage |
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
---|
closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useEclipseDialog
protected boolean _bDialogWidgetInitialized
protected boolean _bSetFocusControl
Constructor Detail |
---|
public LWPDCommonDialog(org.eclipse.swt.widgets.Shell parentShell)
parentShell
- the parent shell to be used to construct this dialogMethod Detail |
---|
public UIUpdater getUpdater()
public void setUpdater(UIUpdater updater)
updater
- protected boolean isModal()
protected org.eclipse.swt.graphics.Image getTitleImage()
protected org.eclipse.jface.resource.ImageDescriptor getTitleImageDescriptor()
public boolean close()
close
in class org.eclipse.jface.dialogs.TrayDialog
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
protected java.lang.String getDialogTitle()
protected org.eclipse.swt.widgets.Layout createContainerLayout()
fillClientArea(Composite)
.
protected abstract void fillClientArea(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected boolean needsProgressMonitor()
needsProgressMonitor()
.
protected void validateDialog()
invalidateDialog(String)
should be called.
protected void invalidateDialog(java.lang.String message)
message
will be displayed as the error message
for the dialog.
message
- the error message to be displayedpublic void setErrorMessage(java.lang.String errorMessage)
setErrorMessage
in class org.eclipse.jface.dialogs.TitleAreaDialog
errorMessage
- an error messagepublic boolean isDirty()
public void setDirty(boolean bSet)
bSet
- true if a control has been modifiedpublic void setMessage(java.lang.String newMessage, int newType)
setMessage
in class org.eclipse.jface.dialogs.TitleAreaDialog
protected boolean useScrollableContents()
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.dialogs.TitleAreaDialog
protected TitleAreaComposite createTitleAreaComposite(org.eclipse.swt.widgets.Composite parent)
parent
- the parent Compositeprotected final org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.TitleAreaDialog
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonBar
in class org.eclipse.jface.dialogs.TrayDialog
protected void initMainPanel()
createDialogArea(Composite)
method.
Allows for variable initialization to occur before the contents of the dialog are created.
public void setBlockOnOpen(boolean shouldBlock)
setBlockOnOpen
in class org.eclipse.jface.window.Window
public int open()
open
in class org.eclipse.jface.window.Window
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
protected boolean doPerformDialog()
performDialogOperation(IProgressMonitor)
. Must return true in order
for the dialog to be dismissed.
protected void detachProgressMonitor()
protected org.eclipse.core.runtime.IProgressMonitor attachProgressMonitor()
protected abstract boolean performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
needsProgressMonitor()
must return true in order for the progress monitor
is visible.
progressMonitor
- the progress monitor that is to be used to provide progress feedback to the user
protected org.eclipse.ui.IWorkbench getWorkbench()
protected void setClassDef(IClassDef classDef)
classDef
- IClassDef
protected void setDataProvider(IObjectCollection objectCollection)
objectCollection
- an object collection to be used in conjunction with the DC* controls in the dialog.IObjectCollection
,
IDataFieldControl
protected void setDataChangeNotifier(DataChangeNotifier dataChangeNotifier)
dataChangeNotifier
- a notifier that listens for data eventsDataNode
,
DataNode.setDataChangeNotifier(DataChangeNotifier)
,
DataChangeNotifier
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
getDialogBoundsSettings
in class org.eclipse.jface.dialogs.Dialog
protected int getDialogBoundsStrategy()
getDialogBoundsStrategy
in class org.eclipse.jface.dialogs.Dialog
public void refreshTitleArea()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |