C# Class Habanero.Faces.Base.HabaneroMenu

A class for managing a menu including its list of sub menus (other Habanero Menus). This class is used by a menu builder to build a specific Menu e.g. A main menu e.g. MainMenuWin or an outlook style menu e.g. CollapsibleMenuWin.
With this class you can either AddSubMenu or AddMenuItem. Where adding a sub menu will create another HabaneroMenu and adding a MenuItem will add a leaf item to the menu. Selecting a SubMenu will cause the sub Menu to expand. Selecting the MenuItem(Item) will cause the relevant controller to be executed the order in which this occurs is as follows.
  • Any CustomMenuHandler (set via the Item.CustomHandler will take precidence) i.e. you can make the menu item do anything you want via a custom handler.
  • The FormControl Creator takes precedence next this is typically used by the Form Controller to manage the form (usually in an MDI type environment)
  • The ControlManagerCreator takes Precedence next this is typeically used in an SDI type interface where the menu item swaps out the control. (e.g. in a outlook style menu)
  • Show file Open project: Chillisoft/habanero.faces Class Usage Examples

    Public Methods

    Method Description
    AddMenuItem ( string menuItemName ) : System.Item

    Adds a MenuItem. Creates a Menu Item with the name menuItemName

    AddSubMenu ( string menuName ) : HabaneroMenu

    Adds a sub menu to this menu. This method creates a new HabaneroMenu with the name menuName and adds it as a sub menu.

    HabaneroMenu ( string menuName ) : System

    Constrcutor for HabaneroMenu

    HabaneroMenu ( string menuName, IControlHabanero form, IControlFactory controlFactory ) : System

    Constrcutor for HabaneroMenu

    Private Methods

    Method Description
    AddSubmenu ( string menuName ) : HabaneroMenu

    Method Details

    AddMenuItem() public method

    Adds a MenuItem. Creates a Menu Item with the name menuItemName
    public AddMenuItem ( string menuItemName ) : System.Item
    menuItemName string
    return System.Item

    AddSubMenu() public method

    Adds a sub menu to this menu. This method creates a new HabaneroMenu with the name menuName and adds it as a sub menu.
    public AddSubMenu ( string menuName ) : HabaneroMenu
    menuName string
    return HabaneroMenu

    HabaneroMenu() public method

    Constrcutor for HabaneroMenu
    public HabaneroMenu ( string menuName ) : System
    menuName string
    return System

    HabaneroMenu() public method

    Constrcutor for HabaneroMenu
    public HabaneroMenu ( string menuName, IControlHabanero form, IControlFactory controlFactory ) : System
    menuName string
    form IControlHabanero
    controlFactory IControlFactory
    return System