|
|||||||||||
| 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.FavoriteInputDialog
Dialog to edit the properties of a Favorite.
| 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 this dialog |
private String |
dialogTitle
The dialog title |
private Favorite |
editFavorite
The Favorite to be edited
|
private String |
favoriteTitle
The title of the Favorite as entered by the end-user
|
private Text |
favoriteTitleField
The text field that carries the Favorite title user input
|
private String |
favoriteUrl
The newsfeed url of of the Favorite as entered by the end-user |
private Text |
favoriteUrlField
The text field that carries the Favorite url user input
|
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private Category |
parentCategory
The parent Category of the edited Favorite
|
private JobExecutionInterval |
refreshInterval
The refresh interval of the Favorite
|
private ComboViewer |
refreshIntervalSelectionViewer
ComboViewer to select the update interval of the Favorite
|
| 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 | |
FavoriteInputDialog(MainApplicationWindow mainWindow,
Favorite editFavorite,
Category parentCategory,
String dialogTitle)
Creates a new FavoriteInputDialog using the specified
dialog settings.
|
|
| Method Summary | |
protected void |
buttonPressed(int buttonId)
Called whenever a button is pressed in this FavoriteInputDialog.
|
protected void |
configureShell(Shell shell)
Configures the Shell representing this dialog.
|
protected void |
createButtonsForButtonBar(Composite parent)
Creates the buttons used in this FavoriteInputDialog and
sets up their default enabled state.
|
protected Control |
createDialogArea(Composite parent)
Creates the dialog area of this FavoriteInputDialog.
|
private void |
createRefreshIntervalContainer(Composite parent)
Creates a container which holds all ui items to select the update interval of a Favorite.
|
private void |
createRefreshStatusContainer(Composite parent)
Creates a container which shows information on the current refresh status of a Favorite.
|
String |
getFavoriteTitle()
Gets the Favorite's title as entered by the user.
|
String |
getFavoriteUrl()
Gets the Favorite's newsfeed url as entered by the user.
|
Category |
getParentCategory()
Gets the parent Category of the edited
Favorite.
|
JobExecutionInterval |
getRefreshInterval()
Gets the Favorite's refresh interval as selected by the
user.
|
private String |
validateInput()
Verifies if the current dialog 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 Favorite editFavorite
The Favorite to be edited
private Category parentCategory
The parent Category of the edited Favorite
private String favoriteTitle
The title of the Favorite as entered by the end-user
private String favoriteUrl
The newsfeed url of of the Favorite as entered by the end-user
private Text favoriteTitleField
The text field that carries the Favorite title user input
private Text favoriteUrlField
The text field that carries the Favorite url user input
private ComboViewer refreshIntervalSelectionViewer
ComboViewer to select the update interval of the Favorite
private JobExecutionInterval refreshInterval
The refresh interval of the Favorite
private LanguageResource defaultResource
Default language resource used in this dialog
| Constructor Detail |
public FavoriteInputDialog(MainApplicationWindow mainWindow,
Favorite editFavorite,
Category parentCategory,
String dialogTitle)
Creates a new FavoriteInputDialog using the specified
dialog settings.
mainWindow - the Feed'n Read main windoweditFavorite - the favorite to edit; null if new
favoritedialogTitle - the title of this dialog| Method Detail |
public String getFavoriteTitle()
Gets the Favorite's title as entered by the user.
Favorite title; null if this
FavoriteInputDialog has been canceledpublic String getFavoriteUrl()
Gets the Favorite's newsfeed url as entered by the user.
Favorite's newsfeed url;null if
this FavoriteInputDialog has been canceledpublic Category getParentCategory()
Gets the parent Category of the edited
Favorite.
Category of the edited
Favoritepublic JobExecutionInterval getRefreshInterval()
Gets the Favorite's refresh interval as selected by the
user.
Favorite's refresh interval as selected by the
user; null if this FavoriteInputDialog has
been canceledprivate String validateInput()
Verifies if the current dialog input is valid. Currently only an empty input is being declined.
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 FavoriteInputDialog.
parent - the parent component to embed the dialog area into
protected void createButtonsForButtonBar(Composite parent)
Creates the buttons used in this FavoriteInputDialog 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
FavoriteInputDialog.
buttonId - the id of the button that was pressedfor the button ids
defined in the JFace frameworkprivate void createRefreshIntervalContainer(Composite parent)
Creates a container which holds all ui items to select the update
interval of a Favorite.
parent - the parent Composite to embed the
refresh interval container intoprivate void createRefreshStatusContainer(Composite parent)
Creates a container which shows information on the current refresh
status of a Favorite.
parent - the parent Composite to embed the
refresh status container into
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||