net.sourceforge.rssowl.controller.popup
Class FavoritesTreePopup

java.lang.Object
  extended by net.sourceforge.rssowl.controller.popup.FavoritesTreePopup

public class FavoritesTreePopup
extends java.lang.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.2.4
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  boolean requiresUpdate
           
(package private)  FavoritesTree rssOwlFavoritesTree
           
(package private)  GUI rssOwlGui
           
(package private)  Shell shell
           
private  Menu treePopUpMenu
           
 
Constructor Summary
FavoritesTreePopup(Shell shell, FavoritesTree rssOwlFavoritesTree, GUI rssOwlGui, EventManager eventManager)
          Instantiate a new FavoritesTreePopup
 
Method Summary
 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 setRequiresUpdate()
          Marks the popup as required of an update.
 boolean updateMenu(int style, TreeItem selectedTreeItem)
          Update the context Menu on the Favorites Tree.
 
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

requiresUpdate

private boolean requiresUpdate

treePopUpMenu

private Menu treePopUpMenu

rssOwlFavoritesTree

FavoritesTree rssOwlFavoritesTree

rssOwlGui

GUI rssOwlGui

shell

Shell shell
Constructor Detail

FavoritesTreePopup

public FavoritesTreePopup(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 Menu getTreePopUpMenu()
Get the Popup menu that is set on the favorites tree.

Returns:
Menu Return the tree popup menu

setRequiresUpdate

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


updateMenu

public boolean updateMenu(int style,
                          TreeItem selectedTreeItem)
Update the context Menu on the Favorites Tree.

Parameters:
style - One of the supported styles
selectedTreeItem - The treeitem that will get the popup
Returns:
boolean TRUE if the Menu was updated, FALSE otherwise.

initComponents

private void initComponents()
Init Popup menu


resetPopup

private void resetPopup()
Reset the menue



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo