|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.TitleAreaDialog
net.sourceforge.java.feednread.frontend.dialog.AutoCloseConfirmationDialog
Dialog capable of displaying an information message along with
a confirmation Button (OK) which closes itself after a
predefined time span if the end-user does not close the dialog before this
time span elapses. The Time begins to run once the open() method is
called.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.jface.window.Window |
Window.IExceptionHandler |
| Field Summary | |
private Image |
dialogImage
The Image to display in this
AutoCloseConfirmationDialog
Shell title.
|
private String |
dialogTitle
The title of this AutoCloseConfirmationDialog |
private String |
message
The message to display |
private int |
secondsToClose
The number of seconds after which this AutoCloseConfirmationDialog closes automatically.
|
| 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.TrayDialog |
|
| 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 | |
AutoCloseConfirmationDialog(Shell parentShell,
String dialogTitle,
String headerText,
String headerSubText,
String message,
Image dialogImage,
Image headerImage,
int secondsToClose)
Creates a new AutoCloseConfirmationDialog instance.
|
|
| Method Summary | |
protected void |
configureShell(Shell newShell)
Configures the given Shell in preparation for opening this
window in it.
|
private void |
createAutoCloseThread()
Creates a Thread that closes this
AutoCloseConfirmationDialog automatically after the time
span as specified by the secondsToClose parameter in the
constructor call. |
protected void |
createButtonsForButtonBar(Composite parent)
Adds ok Button to this
AutoCloseConfirmationDialog's button bar using the
createButton framework method. |
protected Control |
createDialogArea(Composite parent)
Creates the dialog area of this AutoCloseConfirmationDialog. |
int |
open()
Opens this AutoCloseConfirmationDialog, creating it first
if it has not yet been created. |
| Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
createContents, getInitialSize, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage |
| Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String dialogTitle
The title of this AutoCloseConfirmationDialog
private String message
The message to display
private int secondsToClose
The number of seconds after which this
AutoCloseConfirmationDialog closes automatically.
private Image dialogImage
The Image to display in this
AutoCloseConfirmationDialog
Shell title.
| Constructor Detail |
public AutoCloseConfirmationDialog(Shell parentShell,
String dialogTitle,
String headerText,
String headerSubText,
String message,
Image dialogImage,
Image headerImage,
int secondsToClose)
Creates a new AutoCloseConfirmationDialog instance.
parentShell - the parent Shell or null if
this AutoCloseConfirmationDialog should be created as top
level ShelldialogTitle - the dialog titleheaderText - the header textheaderSubText - the accompanying text of the headermessage - the messagedialogImage - the Image for the dialogheaderImage - the Image to display in the headersecondsToClose - the time in seconds after which this
AutoCloseConfirmationDialog closes automatically| Method Detail |
protected void configureShell(Shell newShell)
Configures the given Shell in preparation for opening this
window in it.
newShell - the Shell to configureprotected Control createDialogArea(Composite parent)
Creates the dialog area of this AutoCloseConfirmationDialog.
parent - the parent Composite to contain the dialog
area
Controlprotected void createButtonsForButtonBar(Composite parent)
Adds ok Button to this
AutoCloseConfirmationDialog's button bar using the
createButton framework method. This standard
Buttonn will be accessible from
getButton(IDialogConstants.OK_ID).
parent - the button bar Compositepublic int open()
Opens this AutoCloseConfirmationDialog, creating it first
if it has not yet been created. If this
AutoCloseConfirmationDialog has been configured to block
on open ( setBlockOnOpen), this method waits until this
AutoCloseConfirmationDialog is closed by the end user, and
then it returns this AutoCloseConfirmationDialog return
code; otherwise, this method returns immediately.
Dialog.create(),
IDialogConstantsprivate void createAutoCloseThread()
Creates a Thread that closes this
AutoCloseConfirmationDialog automatically after the time
span as specified by the secondsToClose parameter in the
constructor call. The remaining seconds before close are displayed in
the label of the OK Button.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||