|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyMenuBase
public abstract class LyMenuBase
The LyMenuBase class is a generated Java implementation that corresponds to the element MENU of the descriptive grammar of the views (views.dtd). <MENU> : Menu A menu contains a set of menu, sub-menus entries and separators.
LyComponent
,
See also tag MENU 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 | |
---|---|
LyMenuBase(java.lang.String label)
Constructor with all required attributes. |
Method Summary | |
---|---|
void |
addItem(LyItem item)
Adds a sub-component item. |
void |
addMenu(LyMenu menu)
Adds a sub-component menu. |
void |
addSep()
Adds a separator. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getColor()
Gets value of color. |
LyComponent |
getComponent(int i)
Get sub-component Component of index i. |
int |
getComponentCount()
Get sub-component Component count. |
java.lang.String |
getController()
Gets value of controller. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getLabel()
Gets value of label. |
LyMenu |
getTemplate()
Gets value of template. |
void |
insertItem(LyItem item,
int pos)
Inserts a sub-component item at given position. |
void |
insertMenu(LyMenu menu,
int pos)
Inserts a sub-component menu at given position. |
void |
insertSep(int pos)
Inserts a separator at the 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. |
boolean |
isEnabled()
Checks if value of attribute enabled is set. |
void |
removeItem(LyItem item)
Removes a sub-component item. |
void |
removeMenu(LyMenu menu)
Removes a sub-component menu. |
void |
removeSep(int pos)
Removes a separator at the given position. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setController(java.lang.String controller)
Initializes attribute controller to the given value. |
void |
setEnabled(boolean enabled)
Sets attribute enabled 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 |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setLabel(java.lang.String label)
Initializes attribute label to the given value. |
void |
setTemplate(LyMenu 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMenuBase(java.lang.String label)
label
- Text of the menu.Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyMenu getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public boolean isEnabled()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public LyComponent getComponent(int i)
i
- the index of the Component to get.
public int getComponentCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyMenu template)
template
- New value of template.public void setLabel(java.lang.String label)
label
- New value of label.
java.lang.IllegalArgumentException
- if label is null.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void addItem(LyItem item)
item
- The item to add to components list.public void insertItem(LyItem item, int pos)
item
- The item to add to components list.pos
- Position where the sub-component is inserted.public void removeItem(LyItem item)
item
- The item to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain item.public void addSep()
public void insertSep(int pos)
pos
- Position where the separator is inserted.public void removeSep(int pos)
pos
- Position where the separator is removed.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain a separator at the given position.public void addMenu(LyMenu menu)
menu
- The menu to add to components list.public void insertMenu(LyMenu menu, int pos)
menu
- The menu to add to components list.pos
- Position where the sub-component is inserted.public void removeMenu(LyMenu menu)
menu
- The menu to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain menu.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |