net.sourceforge.rssowl.controller
Class Quickview

java.lang.Object
  extended by net.sourceforge.rssowl.controller.Quickview
All Implemented Interfaces:
IFontChangeable, ITranslatable

public class Quickview
extends java.lang.Object
implements ITranslatable, IFontChangeable

This is the RSS Quickview controll that is displayed directly under the menue. It includes the ToolBar as well.

Version:
1.2.4
Author:
Benjamin Pasero

Field Summary
private  MenuItem aggregateFavorites
           
private  Composite bottomContainer
           
private  Composite centerContainer
           
(package private)  ToolBar centerToolBar
           
private  ToolItem closeAllItem
           
(package private)  ToolItem closeItem
           
private  ToolItem closeOtherItem
           
(package private)  DropTarget comboDNDTarget
           
private  MenuItem customizeBar
           
private  MenuItem discoverFeedItem
           
(package private)  EventManager eventManager
           
(package private)  ToolItem exportItem
           
(package private)  Menu exportMenu
           
private  MenuItem exportOPML
           
(package private)  ToolItem favoritesItem
           
(package private)  Menu favoritesMenu
           
(package private)  ToolItem historyItem
           
(package private)  Menu historyMenu
           
private  MenuItem importBlogroll
           
(package private)  ToolItem importItem
           
(package private)  Menu importMenu
           
private  MenuItem importOPML
           
(package private)  ToolBar leftToolBar
           
(package private)  Text liveSearch
           
private  CLabel liveSearchLabel
           
(package private)  ToolItem mailNewsTip
           
private  MenuItem markAllRead
           
private  MenuItem markFeedRead
           
private  MenuItem markNewsUnread
           
(package private)  ToolItem markReadItem
           
private  MenuItem newCategory
           
private  MenuItem newFavorite
           
(package private)  ToolItem newItem
           
(package private)  Menu newMenu
           
private  MenuItem newSubCategory
           
private  MenuItem nextMessageItem
           
(package private)  ToolItem nextNewsItem
           
(package private)  ToolItem nextTab
           
private  MenuItem nextUnreadItem
           
private  MenuItem preferencesItem
           
(package private)  ToolItem previousTab
           
private  Menu quickviewMenu
           
(package private)  MenuItem quickviewState
           
private  MenuItem reloadFavorites
           
(package private)  ToolItem reloadItem
           
(package private)  GUI rssOwlGui
           
private static int SEARCH_DELAY
          Delay before the Search is beginning
(package private)  MenuItem searchAndItem
           
private  ExtendedThread searchDelayThread
           
private  MenuItem searchFavorites
           
private  MenuItem searchFeedItem
           
(package private)  ToolItem searchItem
           
(package private)  MenuItem searchNotItem
           
(package private)  MenuItem searchOrItem
           
private  Label sep
           
(package private)  Shell shell
           
(package private)  boolean stopLiveSearch
           
static int TOOLBAR_MODE_ICONS
          ToolBar Mode: Show only Icons
static int TOOLBAR_MODE_ICONS_TEXT
          ToolBar Mode: Show Icons and Text
static int TOOLBAR_MODE_TEXT
          ToolBar Mode: Show only Text
(package private)  MenuItem toolBarState
           
(package private)  ViewForm toolbarViewForm
           
(package private)  ToolItem toolsItem
           
private  Composite topContainer
           
private  Label urlLabelQuickView
           
(package private)  Combo urlTestCombo
           
private  MenuItem validateFeedItem
           
private  Menu wildCardMenu
           
 
Constructor Summary
Quickview(GUI rssOwlGui, Shell shell, EventManager eventManager)
          Instantiate a new Quickview
 
Method Summary
(package private)  void addUrlToCombo(java.lang.String url)
          Add the URL to the combo if its not yet in
 void clearLiveSearch()
          Clear the live search input field
 void createToolBar()
          Create the ToolBar.
private  void createWildCardMenu()
          Apply a wildcard popup menu to the text.
private  int getIndex(java.lang.String url)
          Get the index from the combo where the given URL is located or -1 if the URL is not part of the combo
private  int getPivot(java.lang.String[] items)
          Calculate the Pivot to be used as divider between the two ToolBars.
private  void initComponents()
          Init all components
private  void initContextMenu(Control parent)
          Initialize the Context Menu showing two items to hide/show ToolBar and Quickview control.
(package private)  void search()
          Perform the search in the displayed channel.
 void setShowQuickview(boolean show, boolean save)
          Show / Hide the quickview control
 void setShowToolBar(boolean show, boolean save)
          Show / Hide the ToolBar control
 void setShowViewForm(boolean show)
          Show / Hide the ViewForm containing ToolBar and Quickview
 void updateFonts()
          All implementing classes must provide a method to update the fonts of all GUI elements that provide a setFont() Method.
 void updateI18N()
          Update all controlls text with i18n
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLBAR_MODE_ICONS

public static final int TOOLBAR_MODE_ICONS
ToolBar Mode: Show only Icons

See Also:
Constant Field Values

TOOLBAR_MODE_ICONS_TEXT

public static final int TOOLBAR_MODE_ICONS_TEXT
ToolBar Mode: Show Icons and Text

See Also:
Constant Field Values

TOOLBAR_MODE_TEXT

public static final int TOOLBAR_MODE_TEXT
ToolBar Mode: Show only Text

See Also:
Constant Field Values

SEARCH_DELAY

private static final int SEARCH_DELAY
Delay before the Search is beginning

See Also:
Constant Field Values

aggregateFavorites

private MenuItem aggregateFavorites

bottomContainer

private Composite bottomContainer

centerContainer

private Composite centerContainer

closeAllItem

private ToolItem closeAllItem

closeOtherItem

private ToolItem closeOtherItem

customizeBar

private MenuItem customizeBar

discoverFeedItem

private MenuItem discoverFeedItem

exportOPML

private MenuItem exportOPML

importBlogroll

private MenuItem importBlogroll

importOPML

private MenuItem importOPML

liveSearchLabel

private CLabel liveSearchLabel

markAllRead

private MenuItem markAllRead

markFeedRead

private MenuItem markFeedRead

markNewsUnread

private MenuItem markNewsUnread

newCategory

private MenuItem newCategory

newFavorite

private MenuItem newFavorite

newSubCategory

private MenuItem newSubCategory

nextMessageItem

private MenuItem nextMessageItem

nextUnreadItem

private MenuItem nextUnreadItem

preferencesItem

private MenuItem preferencesItem

quickviewMenu

private Menu quickviewMenu

reloadFavorites

private MenuItem reloadFavorites

searchDelayThread

private ExtendedThread searchDelayThread

searchFavorites

private MenuItem searchFavorites

searchFeedItem

private MenuItem searchFeedItem

sep

private Label sep

topContainer

private Composite topContainer

urlLabelQuickView

private Label urlLabelQuickView

validateFeedItem

private MenuItem validateFeedItem

wildCardMenu

private Menu wildCardMenu

centerToolBar

ToolBar centerToolBar

closeItem

ToolItem closeItem

comboDNDTarget

DropTarget comboDNDTarget

eventManager

EventManager eventManager

exportItem

ToolItem exportItem

exportMenu

Menu exportMenu

favoritesItem

ToolItem favoritesItem

favoritesMenu

Menu favoritesMenu

historyItem

ToolItem historyItem

historyMenu

Menu historyMenu

importItem

ToolItem importItem

importMenu

Menu importMenu

leftToolBar

ToolBar leftToolBar

liveSearch

Text liveSearch

mailNewsTip

ToolItem mailNewsTip

markReadItem

ToolItem markReadItem

newItem

ToolItem newItem

newMenu

Menu newMenu

nextNewsItem

ToolItem nextNewsItem

nextTab

ToolItem nextTab

previousTab

ToolItem previousTab

quickviewState

MenuItem quickviewState

reloadItem

ToolItem reloadItem

rssOwlGui

GUI rssOwlGui

searchAndItem

MenuItem searchAndItem

searchItem

ToolItem searchItem

searchNotItem

MenuItem searchNotItem

searchOrItem

MenuItem searchOrItem

shell

Shell shell

stopLiveSearch

boolean stopLiveSearch

toolBarState

MenuItem toolBarState

toolbarViewForm

ViewForm toolbarViewForm

toolsItem

ToolItem toolsItem

urlTestCombo

Combo urlTestCombo
Constructor Detail

Quickview

public Quickview(GUI rssOwlGui,
                 Shell shell,
                 EventManager eventManager)
Instantiate a new Quickview

Parameters:
rssOwlGui - Access some methods of the main controller
shell - The shell
eventManager - The event manager
Method Detail

clearLiveSearch

public void clearLiveSearch()
Clear the live search input field


createToolBar

public void createToolBar()
Create the ToolBar. The ToolBar is created using the user-defined setting.


setShowQuickview

public void setShowQuickview(boolean show,
                             boolean save)
Show / Hide the quickview control

Parameters:
show - TRUE if visible
save - If TRUE save state to GlobalSettings

setShowToolBar

public void setShowToolBar(boolean show,
                           boolean save)
Show / Hide the ToolBar control

Parameters:
show - TRUE if visible
save - If TRUE save state to GlobalSettings

setShowViewForm

public void setShowViewForm(boolean show)
Show / Hide the ViewForm containing ToolBar and Quickview

Parameters:
show - TRUE if visible

updateFonts

public void updateFonts()
Description copied from interface: IFontChangeable
All implementing classes must provide a method to update the fonts of all GUI elements that provide a setFont() Method.

Specified by:
updateFonts in interface IFontChangeable
See Also:
IFontChangeable.updateFonts()

updateI18N

public void updateI18N()
Update all controlls text with i18n

Specified by:
updateI18N in interface ITranslatable

createWildCardMenu

private void createWildCardMenu()
Apply a wildcard popup menu to the text. These allow to specify the Search.


getIndex

private int getIndex(java.lang.String url)
Get the index from the combo where the given URL is located or -1 if the URL is not part of the combo

Parameters:
url - Any URL to search for
Returns:
int The index or -1

getPivot

private int getPivot(java.lang.String[] items)
Calculate the Pivot to be used as divider between the two ToolBars.

Parameters:
items - The ToolItems as I18N Keys.
Returns:
int The smart Pivot Element as divider between the two ToolBars.

initComponents

private void initComponents()
Init all components


initContextMenu

private void initContextMenu(Control parent)
Initialize the Context Menu showing two items to hide/show ToolBar and Quickview control.

Parameters:
parent - The parent to use for Initialization.

addUrlToCombo

void addUrlToCombo(java.lang.String url)
Add the URL to the combo if its not yet in

Parameters:
url - Any URL

search

void search()
Perform the search in the displayed channel. Delay the search using a Thread that first sleeps for a short amount of time. This allows the user to complete the typing of a word before the search is beginning.



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo