C# 클래스 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)
  • 파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

    공개 메소드들

    메소드 설명
    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

    비공개 메소드들

    메소드 설명
    AddSubmenu ( string menuName ) : HabaneroMenu

    메소드 상세

    AddMenuItem() 공개 메소드

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

    AddSubMenu() 공개 메소드

    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
    리턴 HabaneroMenu

    HabaneroMenu() 공개 메소드

    Constrcutor for HabaneroMenu
    public HabaneroMenu ( string menuName ) : System
    menuName string
    리턴 System

    HabaneroMenu() 공개 메소드

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