net.sourceforge.rssowl.controller.properties
Class EditFavoriteProperties

java.lang.Object
  extended by net.sourceforge.rssowl.controller.properties.FavoritePropertyPage
      extended by net.sourceforge.rssowl.controller.properties.EditFavoriteProperties

public class EditFavoriteProperties
extends FavoritePropertyPage

This property page allows to modify settings of the edited favorite

Version:
1.2.4
Author:
Benjamin Pasero

Field Summary
private  Composite errorContainer
           
private  Label errorIconLabel
           
private  Label errorMessageLabel
           
private  Group generalGroup
           
private  ToolItem grabTitleButton
           
(package private)  Text inputCategory
           
(package private)  Text inputTitle
           
(package private)  Text inputUrl
           
private  boolean isEdit
           
 
Fields inherited from class net.sourceforge.rssowl.controller.properties.FavoritePropertyPage
composite, dialogFont, parent, rssOwlFavorite
 
Constructor Summary
EditFavoriteProperties(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 setMessage(java.lang.String message, boolean isError)
          Set / unset the message on the Dialog.
protected  void validateInput()
          Validates the input.
 
Methods inherited from class net.sourceforge.rssowl.controller.properties.FavoritePropertyPage
createComposite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorContainer

private Composite errorContainer

errorIconLabel

private Label errorIconLabel

errorMessageLabel

private Label errorMessageLabel

generalGroup

private Group generalGroup

grabTitleButton

private ToolItem grabTitleButton

isEdit

private boolean isEdit

inputCategory

Text inputCategory

inputTitle

Text inputTitle

inputUrl

Text inputUrl
Constructor Detail

EditFavoriteProperties

public EditFavoriteProperties(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

setMessage

public void setMessage(java.lang.String message,
                       boolean isError)
Set / unset the message on the Dialog.

Parameters:
message - The Message to display.
isError - If TRUE, show as error. Show warning otherwise.

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