corelib.services.web.components
Class MenuBar

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.MenuBar

public class MenuBar
extends VisualComponent

This class is used to inject the menu bars in your Ellipse web pages. A component of this type is constituted of Menu component. A Menu component is itself composed of Menu subcomponents or MenuItem components.

Ellipse menu bars can be displayed horizontally or vertically. Here are examples of the two diplay modes that menu bars supports.

Since:
0.2.0
Author:
Infini Software : Alexia Ramaļoli & Dominique Liard

Nested Class Summary
static class MenuBar.MenuBarActivationMode
          This enumerated type defines the different activation modes supported by your MenuBars.
static class MenuBar.MenuBarOrientation
          This enumerated type defines the different display orientations supported by your MenuBars.
 
Field Summary
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Constructor Summary
MenuBar()
           
 
Method Summary
 void component_renderBegin(WebPageEvent webPageEvent)
           
 void component_renderChildren(WebPageEvent webPageEvent)
           
 void component_renderEnd(WebPageEvent webPageEvent)
           
 MenuBar.MenuBarActivationMode getActicationMode()
          Returns the activation mode used by this menu bar.
 MenuBar.MenuBarOrientation getOrientation()
          Returns the menu bar orientation.
 void setActicationMode(MenuBar.MenuBarActivationMode acticationMode)
          Changes the menu bar activation mode.
 void setOrientation(MenuBar.MenuBarOrientation orientation)
          Changes the menu bar orientation.
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getSharedAttributesHtmlEncoding, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuBar

public MenuBar()
Method Detail

getActicationMode

public MenuBar.MenuBarActivationMode getActicationMode()
Returns the activation mode used by this menu bar. Actually, only MOUSE_OVER_ACTIVATION_MODE mode is supported.

Returns:
The menu bar activation mode.

setActicationMode

public void setActicationMode(MenuBar.MenuBarActivationMode acticationMode)
Changes the menu bar activation mode. Actually, only MOUSE_OVER_ACTIVATION_MODE mode is supported.

Parameters:
acticationMode - The new menu bar activation mode.

getOrientation

public MenuBar.MenuBarOrientation getOrientation()
Returns the menu bar orientation. Menu bar can be displayed horizontally or vertically.

Returns:
The current menu bar orientation.

setOrientation

public void setOrientation(MenuBar.MenuBarOrientation orientation)
Changes the menu bar orientation. Menu bars can be displayed horizontally or vertically.

Parameters:
orientation - The new menu bar orientation.

component_renderBegin

public void component_renderBegin(WebPageEvent webPageEvent)
Overrides:
component_renderBegin in class VisualComponent

component_renderChildren

public void component_renderChildren(WebPageEvent webPageEvent)
Overrides:
component_renderChildren in class VisualComponent

component_renderEnd

public void component_renderEnd(WebPageEvent webPageEvent)
Overrides:
component_renderEnd in class VisualComponent


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.