|
|||||||||||
| 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.WatchFolderInputDialog
Dialog to edit the properties of a WatchFolder.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.jface.window.Window |
Window.IExceptionHandler |
| Field Summary | |
private LanguageResource |
defaultResource
Default language resource used in the dialog |
private String |
dialogTitle
The dialog title |
private WatchFolder |
editFolder
The WatchFolder to be edited, null if
creating a new WatchFolder
|
private String |
folderDescription
The description of the WatchFolder as entered by the
end-user
|
private Text |
folderDescriptionField
The Text filed that carries the description input |
private String |
folderTitle
The title of the WatchFolder as entered by the end-user
|
private Text |
folderTitleField
The Text field that carries the title input |
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private WatchFolder |
parentFolder
The parent WatchFolder for which to create a new
WatchFolder
|
| 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 | |
WatchFolderInputDialog(MainApplicationWindow mainWindow,
WatchFolder parentFolder,
WatchFolder editFolder,
String dialogTitle)
Creates a new WatchFolderInputDialog using the specified
dialog settings.
|
|
| Method Summary | |
protected void |
buttonPressed(int buttonId)
Called whenever a button is pressed in this WatchFolderInputDialog.
|
protected void |
configureShell(Shell shell)
Configures the Shell representing this dialog.
|
protected void |
createButtonsForButtonBar(Composite parent)
Creates the buttons used in this WatchFolderInputDialog and
sets up their default enabled state.
|
protected Control |
createDialogArea(Composite parent)
Creates the dialog area of this WatchFolderInputDialog.
|
String |
getFolderDescription()
Gets the WatchFolder description as entered by the end-user.
|
String |
getFolderTitle()
Gets the WatchFolder title as entered by the end-user.
|
WatchFolder |
getParentFolder()
Gets the parent WatchFolder of the edited
WatchFolder.
|
String |
isValid(String newText)
Verifies if the given input is valid. |
| 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 MainApplicationWindow mainWindow
The Feed'n Read main window
private String dialogTitle
The dialog title
private WatchFolder parentFolder
The parent WatchFolder for which to create a new
WatchFolder
private WatchFolder editFolder
The WatchFolder to be edited, null if
creating a new WatchFolder
private String folderTitle
The title of the WatchFolder as entered by the end-user
private String folderDescription
The description of the WatchFolder as entered by the
end-user
private Text folderTitleField
The Text field that carries the title input
private Text folderDescriptionField
The Text filed that carries the description input
private LanguageResource defaultResource
Default language resource used in the dialog
| Constructor Detail |
public WatchFolderInputDialog(MainApplicationWindow mainWindow,
WatchFolder parentFolder,
WatchFolder editFolder,
String dialogTitle)
Creates a new WatchFolderInputDialog using the specified
dialog settings.
mainWindow - the Feed'n Read main windowparentFolder - the parent WatchFolder for which to
create a new WatchFolder; WatchFolder has no parent WatchFoldereditFolder - the WatchFolder to edit; null
if new WatchFolderdialogTitle - the title of this dialog| Method Detail |
public String getFolderTitle()
Gets the WatchFolder title as entered by the end-user.
WatchFolder titlepublic String getFolderDescription()
Gets the WatchFolder description as entered by the end-user.
WatchFolder descriptionpublic WatchFolder getParentFolder()
Gets the parent WatchFolder of the edited
WatchFolder.
WatchFolder of the edited
WatchFolderpublic String isValid(String newText)
Verifies if the given input is valid. Currently only an empty input is being declined.
isValid in interface IInputValidatornewText - the text to verify
null
otherwiseprotected void configureShell(Shell shell)
Configures the Shell representing this dialog.
shell - the Shell to configureprotected Control createDialogArea(Composite parent)
Creates the dialog area of this WatchFolderInputDialog.
parent - the parent component to embed the dialog area into
protected void createButtonsForButtonBar(Composite parent)
Creates the buttons used in this WatchFolderInputDialog and
sets up their default enabled state.
parent - the parent component to embed the buttons intoprotected void buttonPressed(int buttonId)
Called whenever a button is pressed in this
WatchFolderInputDialog.
buttonId - the id of the button that was pressedfor the button ids
defined in the JFace framework
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||