LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyMenuBarBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyMenuBarBase
All Implemented Interfaces:
LyGetIdInterface
Direct Known Subclasses:
LyMenuBar

public abstract class LyMenuBarBase
extends LyComponent
implements LyGetIdInterface

The LyMenuBarBase class is a generated Java implementation that corresponds to the element MENUBAR of the descriptive grammar of the views (views.dtd). <MENUBAR> : Menu bar A menu bar allows displaying a set of menus. It can be displayed in a main window of a Application Engine application

See Also:
LyComponent, See also tag MENUBAR of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyMenuBarBase()
          Default constructor.
 
Method Summary
 void addMenu(LyMenu menu)
          Adds a sub-component menu.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 LyIcon getIcon()
          Get sub-component Icon.
 java.lang.String getId()
          Gets value of id.
 LyMenu getMenu(int i)
          Get sub-component Menu of index i.
 int getMenuCount()
          Get sub-component Menu count.
 LyMenuBar getTemplate()
          Gets value of template.
 void insertMenu(LyMenu menu, int pos)
          Inserts a sub-component menu at given position.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 void removeMenu(LyMenu menu)
          Removes a sub-component menu.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setFont(java.lang.String font)
          Initializes attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setIcon(LyIcon icon)
          Sets sub-component icon.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setTemplate(LyMenuBar template)
          Initializes attribute template to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyMenuBarBase

public LyMenuBarBase()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyMenuBar getTemplate()
Gets value of template.

Returns:
value of template.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getIcon

public LyIcon getIcon()
Get sub-component Icon.

Returns:
sub-component Icon.

getMenu

public LyMenu getMenu(int i)
Get sub-component Menu of index i.

Parameters:
i - the index of the Menu to get.
Returns:
sub-component Menu of index i.

getMenuCount

public int getMenuCount()
Get sub-component Menu count.

Returns:
sub-component Menu count.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyMenuBar template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setColor

public void setColor(java.lang.String color)
Initializes attribute color to the given value.

Parameters:
color - New value of color.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setIcon

public void setIcon(LyIcon icon)
Sets sub-component icon.

Parameters:
icon - New value of icon

addMenu

public void addMenu(LyMenu menu)
Adds a sub-component menu.

Parameters:
menu - The menu to add to menus list.

insertMenu

public void insertMenu(LyMenu menu,
                       int pos)
Inserts a sub-component menu at given position.

Parameters:
menu - The menu to add to menus list.
pos - Position where the sub-component is inserted.

removeMenu

public void removeMenu(LyMenu menu)
Removes a sub-component menu.

Parameters:
menu - The menu to remove to menus list.
Throws:
java.lang.IllegalStateException - if menus list is empty.
java.lang.IllegalArgumentException - if menus list doesn't contain menu.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com