|
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.LyPopupMenuBase
public abstract class LyPopupMenuBase
The LyPopupMenuBase class is a generated Java implementation that corresponds to the element POPUP_MENU of the descriptive grammar of the views (views.dtd). <POPUP_MENU> : Popup Menu A popup menu is a menu which positioning and content depends on the context that made possible to display it. This context depends, most of the time, of an element belonging to a high-level graphical object (tree node, element of a map, line of a list,...). If need be, this context is used as context for the launched action. The context-sensitive menus are available only with the Swing and SWT viewers.
LyComponent
,
See also tag POPUP_MENU of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyPopupMenuBase.Style
Possible values for attribute 'style'. |
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 | |
---|---|
LyPopupMenuBase()
Default constructor. |
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. |
LyPopupMenuBase.Style |
getStyle()
Gets value of style. |
static LyPopupMenuBase.Style |
getStyle(java.lang.String token)
Utility method to get style value from a string. |
LyPopupMenu |
getTemplate()
Gets value of template. |
int |
getX()
Gets value of x. |
int |
getY()
Gets value of y. |
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 |
setStyle(LyPopupMenuBase.Style style)
Initializes attribute style to the given value. |
void |
setTemplate(LyPopupMenu template)
Initializes attribute template to the given value. |
void |
setX(int x)
Initializes attribute x to the given value. |
void |
setY(int y)
Initializes attribute y 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 LyPopupMenuBase()
Method Detail |
---|
public static final LyPopupMenuBase.Style getStyle(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyPopupMenu getTemplate()
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public boolean isEnabled()
public LyPopupMenuBase.Style getStyle()
public int getX()
public int getY()
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(LyPopupMenu template)
template
- New value of template.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 setStyle(LyPopupMenuBase.Style style)
style
- New value of style.
java.lang.IllegalArgumentException
- if style parameter is null.public void setX(int x)
x
- New value of x.public void setY(int y)
y
- New value of y.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 |