net.sourceforge.java.feednread.frontend.wizard
Class WatchBasicDataWizardPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.wizard.WizardPage
          extended bynet.sourceforge.java.feednread.frontend.wizard.WatchBasicDataWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class WatchBasicDataWizardPage
extends WizardPage

WizardPage that lets the end-user enter the basic data of a WatchSettings object.

Author:
Sebastian Machhausen

Field Summary
private  String description
           The description of the edited Watch; null if in add mode.
private  Text descriptionField
           The Text field to carry the description input
private  MainApplicationWindow mainWindow
           The Feed'n Read main window
private  WatchFolder parentFolder
           The parent WatchFolder for which to create a new Watch
private  String title
           The title of the edited Watch; null if in add mode.
private  Text titleField
           The Text field to carry the title input
 
Fields inherited from class org.eclipse.jface.wizard.WizardPage
 
Fields inherited from class org.eclipse.jface.dialogs.DialogPage
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
WatchBasicDataWizardPage(MainApplicationWindow mainWindow, String title, String description, WatchFolder parentFolder)
           Creates a new WatchBasicDataWizardPage instance.
WatchBasicDataWizardPage(MainApplicationWindow mainWindow, WatchFolder parentFolder)
           Creates a new WatchBasicDataWizardPage instance.
 
Method Summary
 void createControl(Composite parent)
           Creates the Controls of this WatchBasicDataWizardPage.
 WatchFolder getParentFolder()
           Gets the parent WatchFolder of the edited Watch.
 String getWatchDescription()
           Gets the Watch description as entered by the end-user.
 String getWatchTitle()
           Gets the Watch title as entered by the end-user.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

mainWindow

private MainApplicationWindow mainWindow

The Feed'n Read main window


titleField

private Text titleField

The Text field to carry the title input


descriptionField

private Text descriptionField

The Text field to carry the description input


title

private String title

The title of the edited Watch; null if in add mode.


description

private String description

The description of the edited Watch; null if in add mode.


parentFolder

private WatchFolder parentFolder

The parent WatchFolder for which to create a new Watch

Constructor Detail

WatchBasicDataWizardPage

public WatchBasicDataWizardPage(MainApplicationWindow mainWindow,
                                WatchFolder parentFolder)

Creates a new WatchBasicDataWizardPage instance.

Parameters:
mainWindow - the Feed'n Read main window
parentFolder - the parent WatchFolder
See Also:
WatchBasicDataWizardPage(MainApplicationWindow, String, String, WatchFolder)

WatchBasicDataWizardPage

public WatchBasicDataWizardPage(MainApplicationWindow mainWindow,
                                String title,
                                String description,
                                WatchFolder parentFolder)

Creates a new WatchBasicDataWizardPage instance.

Parameters:
mainWindow - the Feed'n Read main window
title - the title of the edited Watch
description - the description of the edited Watch
parentFolder - the parent WatchFolder
See Also:
WatchBasicDataWizardPage(MainApplicationWindow, WatchFolder)
Method Detail

createControl

public void createControl(Composite parent)

Creates the Controls of this WatchBasicDataWizardPage.

Parameters:
parent - the parent Composite to embed the created controls into
See Also:
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)

getWatchTitle

public String getWatchTitle()

Gets the Watch title as entered by the end-user.

Returns:
the Watch title

getParentFolder

public WatchFolder getParentFolder()

Gets the parent WatchFolder of the edited Watch.

Returns:
the parent WatchFolder of the edited Watch

getWatchDescription

public String getWatchDescription()

Gets the Watch description as entered by the end-user.

Returns:
the Watch description