net.sourceforge.rssowl.controller.properties
Class FontProperties

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.properties.PropertyPage
      extended bynet.sourceforge.rssowl.controller.properties.FontProperties

public class FontProperties
extends PropertyPage

Class displays a PropertyPage to set the Font and Encoding for RSSOwl

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
private  org.eclipse.swt.widgets.Label catDescription
           
private static int DIALOG_FONT
           
private  org.eclipse.swt.widgets.Combo encodingsCombo
           
private  org.eclipse.swt.widgets.Label fontHeightLabel
           
private  org.eclipse.swt.widgets.Label fontNameLabel
           
private  org.eclipse.swt.widgets.Label fontStyleLabel
           
private static int HEADER_FONT
           
(package private) static boolean possibleFontChange
          Flag to indicate a possible font change
private  org.eclipse.swt.widgets.List selectCatList
           
private  org.eclipse.swt.widgets.Group selectedFont
           
private  org.eclipse.swt.graphics.FontData[] selectedFontData
           
private static int TABLE_FONT
           
private static int TEXT_FONT
           
private static int TREE_FONT
           
 
Fields inherited from class net.sourceforge.rssowl.controller.properties.PropertyPage
apply, composite, dialogFont, errorMessageLabel, parent, propertyChangeManager, restore, rssOwlGui
 
Constructor Summary
FontProperties(org.eclipse.swt.widgets.Composite parent, GUI rssOwlGui)
          Instatiate a new FontProperties PropertyPage
 
Method Summary
 void applyButtonPressed()
          The apply button has been pressed
private  void creteSelectedFontGroup(org.eclipse.swt.graphics.Font font)
          Display informations about a selected font
private  void creteSelectedFontGroup(org.eclipse.swt.graphics.FontData fontData)
          Write informations about the given Font
(package private)  void handleListSelect()
          Perform action when the list is selected
protected  void initComponents()
          Init all components
protected  void restoreButtonPressed()
          The restore button has been pressed
private  void saveFontData()
          Save selected fontdata to property change manager
(package private)  void selectDefaultFont()
          Set the default font for the selected font area
(package private)  void selectFont()
          Select a font for RSSOwl
static void setPossibleFontChange(boolean possibleFontChange)
          Boolean flag to set if a font change has been made.
 void updatePropertiesChangeManager()
          Update the temporary settings holder PropertiesChangeManager
 
Methods inherited from class net.sourceforge.rssowl.controller.properties.PropertyPage
createButtons, createComposite, dispose, getPropertyChangeManager, initPropertyChangeManager, setApplyButtonState, setButtonLayoutData, setButtonLayoutData, setErrorMessage, setRestoreButtonState, setSuccessMessage, setWarningMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIALOG_FONT

private static final int DIALOG_FONT
See Also:
Constant Field Values

HEADER_FONT

private static final int HEADER_FONT
See Also:
Constant Field Values

TABLE_FONT

private static final int TABLE_FONT
See Also:
Constant Field Values

TEXT_FONT

private static final int TEXT_FONT
See Also:
Constant Field Values

TREE_FONT

private static final int TREE_FONT
See Also:
Constant Field Values

possibleFontChange

static boolean possibleFontChange
Flag to indicate a possible font change


catDescription

private org.eclipse.swt.widgets.Label catDescription

encodingsCombo

private org.eclipse.swt.widgets.Combo encodingsCombo

fontHeightLabel

private org.eclipse.swt.widgets.Label fontHeightLabel

fontNameLabel

private org.eclipse.swt.widgets.Label fontNameLabel

fontStyleLabel

private org.eclipse.swt.widgets.Label fontStyleLabel

selectCatList

private org.eclipse.swt.widgets.List selectCatList

selectedFont

private org.eclipse.swt.widgets.Group selectedFont

selectedFontData

private org.eclipse.swt.graphics.FontData[] selectedFontData
Constructor Detail

FontProperties

public FontProperties(org.eclipse.swt.widgets.Composite parent,
                      GUI rssOwlGui)
Instatiate a new FontProperties PropertyPage

Parameters:
parent - Composite's parent
rssOwlGui - The MainController
Method Detail

setPossibleFontChange

public static void setPossibleFontChange(boolean possibleFontChange)
Boolean flag to set if a font change has been made.

Parameters:
possibleFontChange - TRUE if a possible font change happend.

applyButtonPressed

public void applyButtonPressed()
Description copied from class: PropertyPage
The apply button has been pressed

Specified by:
applyButtonPressed in class PropertyPage
See Also:
PropertyPage.applyButtonPressed()

updatePropertiesChangeManager

public void updatePropertiesChangeManager()
Description copied from class: PropertyPage
Update the temporary settings holder PropertiesChangeManager

Specified by:
updatePropertiesChangeManager in class PropertyPage
See Also:
PropertyPage.updatePropertiesChangeManager()

creteSelectedFontGroup

private void creteSelectedFontGroup(org.eclipse.swt.graphics.Font font)
Display informations about a selected font

Parameters:
font - Selected font

creteSelectedFontGroup

private void creteSelectedFontGroup(org.eclipse.swt.graphics.FontData fontData)
Write informations about the given Font

Parameters:
fontData - Describes the selected font

saveFontData

private void saveFontData()
Save selected fontdata to property change manager


initComponents

protected void initComponents()
Init all components

Specified by:
initComponents in class PropertyPage

restoreButtonPressed

protected void restoreButtonPressed()
Description copied from class: PropertyPage
The restore button has been pressed

Specified by:
restoreButtonPressed in class PropertyPage
See Also:
PropertyPage.restoreButtonPressed()

handleListSelect

void handleListSelect()
Perform action when the list is selected


selectDefaultFont

void selectDefaultFont()
Set the default font for the selected font area


selectFont

void selectFont()
Select a font for RSSOwl



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo