net.sourceforge.rssowl.controller.popup
Class FavoritesTreePopup

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.popup.FavoritesTreePopup

public class FavoritesTreePopup
extends Object

The popupmenu appears after clicking in the favoritesTree and supports some feed management functions like add new favorit / category or remove them.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
static int BLOGROLL_CAT_MENU
          Constants for the different menuStructure types
static int BLOGROLL_FAV_MENU
          Constants for the different menuStructure types
static int CAT_MENU
          Constants for the different menuStructure types
private  int currentMenu
           
static int EMPTY_TREE_MENU
          Constants for the different menuStructure types
private  EventManager eventManager
           
static int FAV_MENU
          Constants for the different menuStructure types
private  Quickview quickview
           
private  boolean requiresUpdate
           
(package private)  FavoritesTree rssOwlFavoritesTree
           
(package private)  GUI rssOwlGui
           
private  RSSOwlMenu rssOwlMenu
           
(package private)  org.eclipse.swt.widgets.Shell shell
           
private  org.eclipse.swt.widgets.Menu treePopUpMenu
           
 
Constructor Summary
FavoritesTreePopup(org.eclipse.swt.widgets.Shell shell, FavoritesTree rssOwlFavoritesTree, GUI rssOwlGui, EventManager eventManager)
          Instantiate a new FavoritesTreePopup
 
Method Summary
 org.eclipse.swt.widgets.Menu getTreePopUpMenu()
          Get the Popup menu that is set on the favorites tree.
private  void initComponents()
          Init Popup menu
private  void resetPopup()
          Reset the menue
 void setMenu(int style, org.eclipse.swt.widgets.TreeItem selectedTreeItem)
          Set the menuStructure style
 void setRequiresUpdate()
          Marks the popup as required of an update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOGROLL_CAT_MENU

public static final int BLOGROLL_CAT_MENU
Constants for the different menuStructure types

See Also:
Constant Field Values

BLOGROLL_FAV_MENU

public static final int BLOGROLL_FAV_MENU
Constants for the different menuStructure types

See Also:
Constant Field Values

CAT_MENU

public static final int CAT_MENU
Constants for the different menuStructure types

See Also:
Constant Field Values

EMPTY_TREE_MENU

public static final int EMPTY_TREE_MENU
Constants for the different menuStructure types

See Also:
Constant Field Values

FAV_MENU

public static final int FAV_MENU
Constants for the different menuStructure types

See Also:
Constant Field Values

currentMenu

private int currentMenu

eventManager

private EventManager eventManager

quickview

private Quickview quickview

requiresUpdate

private boolean requiresUpdate

rssOwlMenu

private RSSOwlMenu rssOwlMenu

treePopUpMenu

private org.eclipse.swt.widgets.Menu treePopUpMenu

rssOwlFavoritesTree

FavoritesTree rssOwlFavoritesTree

rssOwlGui

GUI rssOwlGui

shell

org.eclipse.swt.widgets.Shell shell
Constructor Detail

FavoritesTreePopup

public FavoritesTreePopup(org.eclipse.swt.widgets.Shell shell,
                          FavoritesTree rssOwlFavoritesTree,
                          GUI rssOwlGui,
                          EventManager eventManager)
Instantiate a new FavoritesTreePopup

Parameters:
shell - The shell
rssOwlFavoritesTree - The RSSOwl URL tree
rssOwlGui - The maincontroller
eventManager - The event manager
Method Detail

getTreePopUpMenu

public org.eclipse.swt.widgets.Menu getTreePopUpMenu()
Get the Popup menu that is set on the favorites tree.

Returns:
Menu Return the tree popup menu

setMenu

public void setMenu(int style,
                    org.eclipse.swt.widgets.TreeItem selectedTreeItem)
Set the menuStructure style

Parameters:
style - One of the supported styles
selectedTreeItem - The treeitem that will get the popup

setRequiresUpdate

public void setRequiresUpdate()
Marks the popup as required of an update.


initComponents

private void initComponents()
Init Popup menu


resetPopup

private void resetPopup()
Reset the menue



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo