net.sourceforge.rssowl.controller.properties
Class EditFavoriteProperties

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.properties.FavoritePropertyPage
      extended bynet.sourceforge.rssowl.controller.properties.EditFavoriteProperties

public class EditFavoriteProperties
extends FavoritePropertyPage

This property page allows to modify settings of the edited favorite

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
private  org.eclipse.swt.widgets.ToolItem grabTitleButton
           
(package private)  org.eclipse.swt.widgets.Text inputCategory
           
(package private)  org.eclipse.swt.widgets.Text inputTitle
           
(package private)  org.eclipse.swt.widgets.Text inputUrl
           
private  boolean isEdit
           
 
Fields inherited from class net.sourceforge.rssowl.controller.properties.FavoritePropertyPage
composite, dialogFont, errorMessageLabel, parent, rssOwlFavorite
 
Constructor Summary
EditFavoriteProperties(org.eclipse.swt.widgets.Composite parent, Favorite rssOwlFavorite)
          Instatiate a new EditFavoriteProperties PropertyPage
 
Method Summary
 Favorite getUpdatedFavorite()
          Return an updated favorite from the given favorite and the settings the user has made
protected  void initComponents()
          Init all components
 void setErrorMessage(String error)
          Set / unset the warning message on the dialog
protected  void validateInput()
          Validates the input.
 
Methods inherited from class net.sourceforge.rssowl.controller.properties.FavoritePropertyPage
createComposite, setWarningMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grabTitleButton

private org.eclipse.swt.widgets.ToolItem grabTitleButton

isEdit

private boolean isEdit

inputCategory

org.eclipse.swt.widgets.Text inputCategory

inputTitle

org.eclipse.swt.widgets.Text inputTitle

inputUrl

org.eclipse.swt.widgets.Text inputUrl
Constructor Detail

EditFavoriteProperties

public EditFavoriteProperties(org.eclipse.swt.widgets.Composite parent,
                              Favorite rssOwlFavorite)
Instatiate a new EditFavoriteProperties PropertyPage

Parameters:
parent - Composite's parent
rssOwlFavorite - The favorite that is currently edited
Method Detail

getUpdatedFavorite

public Favorite getUpdatedFavorite()
Return an updated favorite from the given favorite and the settings the user has made

Returns:
Favorite The updated favorite containing all settings

setErrorMessage

public void setErrorMessage(String error)
Description copied from class: FavoritePropertyPage
Set / unset the warning message on the dialog

Overrides:
setErrorMessage in class FavoritePropertyPage
Parameters:
error - The warning message or NULL for no warning
See Also:
FavoritePropertyPage.setErrorMessage(java.lang.String)

initComponents

protected void initComponents()
Description copied from class: FavoritePropertyPage
Init all components

Specified by:
initComponents in class FavoritePropertyPage
See Also:
PropertyPage.initComponents()

validateInput

protected void validateInput()
Validates the input.

The default implementation of this framework method delegates the request to the supplied input validator object; if it finds the input invalid, the warning dialogMessage is displayed in the dialog's dialogMessage line. This hook method is called whenever the text changes in the input field.



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo