|
|||||||||||
| 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.CategoryInputDialog
Dialog to edit the properties of a Category.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.jface.window.Window |
Window.IExceptionHandler |
| Field Summary | |
private boolean |
adoptRecursive
Stores the adopt recursive setting |
private Button |
adoptRecursiveButton
Button to let the user decide if he wants to adopt the refresh interval setting recursively for all Favorites in the
Category or only for the Favorite that are
situated directly one level beneath the Category.
|
private String |
categoryTitle
The title of the new Category as entered by the end-user
|
private Text |
categoryTitleField
The text field that carries the title user input |
private LanguageResource |
defaultResource
Default language resource used in this dialog |
private String |
dialogTitle
The dialog title |
private Category |
editCategory
The Category to be edited, null if new
Category
|
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private Category |
parentCategory
The parent Category of the edited Category
|
private JobExecutionInterval |
refreshInterval
The refresh interval of the Category
|
private ComboViewer |
refreshIntervalSelectionViewer
ComboViewer to select the update interval of the Category
|
| 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 | |
CategoryInputDialog(MainApplicationWindow mainWindow,
Category parentCategory,
Category editCategory,
String dialogTitle)
Creates a new CategoryInputDialog using the specified
dialog settings.
|
|
| Method Summary | |
boolean |
adoptRefreshIntervalRecursive()
Returns true if refresh interval setting should be adopted
recursively to all Favorites in the Category.
|
protected void |
buttonPressed(int buttonId)
Called whenever a button is pressed in this CategoryInputDialog.
|
protected void |
configureShell(Shell shell)
Configures the Shell representing this dialog.
|
protected void |
createButtonsForButtonBar(Composite parent)
Creates the buttons used in this CategoryInputDialog and
sets up their default enabled state.
|
protected Control |
createDialogArea(Composite parent)
Creates the dialog area of this CategoryInputDialog.
|
private void |
createRefreshIntervalContainer(Composite parent)
Creates a container which holds all ui items to select the update interval of a Category.
|
String |
getCategoryTitle()
Gets the category title as entered by the user. |
Category |
getParentCategory()
Gets the parent Category of the edited
Category.
|
JobExecutionInterval |
getRefreshInterval()
Gets the Category's refresh interval as selected by the
end user.
|
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 Category parentCategory
The parent Category of the edited Category
private Category editCategory
The Category to be edited, null if new
Category
private String categoryTitle
The title of the new Category as entered by the end-user
private Text categoryTitleField
The text field that carries the title user input
private ComboViewer refreshIntervalSelectionViewer
ComboViewer to select the update interval of the Category
private Button adoptRecursiveButton
Button to let the user decide if he wants to adopt the refresh interval
setting recursively for all Favorites in the
Category or only for the Favorite that are
situated directly one level beneath the Category.
private JobExecutionInterval refreshInterval
The refresh interval of the Category
private boolean adoptRecursive
Stores the adopt recursive setting
private LanguageResource defaultResource
Default language resource used in this dialog
| Constructor Detail |
public CategoryInputDialog(MainApplicationWindow mainWindow,
Category parentCategory,
Category editCategory,
String dialogTitle)
Creates a new CategoryInputDialog using the specified
dialog settings.
mainWindow - the Feed'n Read main windowparentCategory - the parent category for which to create a new
category; editCategory - the Category to edit; null
if new CategorydialogTitle - the title of this dialog| Method Detail |
public String getCategoryTitle()
Gets the category title as entered by the user.
public Category getParentCategory()
Gets the parent Category of the edited
Category.
Category of the edited
Categorypublic JobExecutionInterval getRefreshInterval()
Gets the Category's refresh interval as selected by the
end user.
Category's refresh interval as selected by the
end user; null if this CategoryInputDialog has
been canceledpublic boolean adoptRefreshIntervalRecursive()
Returns true if refresh interval setting should be adopted
recursively to all Favorites in the Category.
true if refresh interval setting should be adopted
recursively to all Favorites in the Category;
false otherwise which means that the setting should only
be adopted to all Favorites situated directly one level
beneath the Category (non recursive).public 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 CategoryInputDialog.
parent - the parent component to embed the dialog area into
protected void createButtonsForButtonBar(Composite parent)
Creates the buttons used in this CategoryInputDialog 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
CategoryInputDialog.
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 Category.
parent - the parent Composite to embed the
refresh interval container into
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||