|
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.LyCommands
public class LyCommands
The LyCommands class is a generated Java implementation that corresponds to the element COMMANDS of the descriptive grammar of the views (views.dtd). <COMMANDS> : Command Bar A command bar allows displaying a set of command buttons (Validate, Cancel, Close, etc.). This bar is generally located at the bottom of a page or window.
See also tag COMMANDS of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyCommands.Align
Possible values for attribute 'align'. |
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 | |
---|---|
LyCommands()
Default constructor. |
Method Summary | |
---|---|
void |
addCommand(LyCommand command)
Adds a sub-component command. |
void |
addSep()
Adds a separator. |
LyComponent |
cloneComponent()
Method for cloning a component. |
LyCommands.Align |
getAlign()
Gets value of align. |
static LyCommands.Align |
getAlign(java.lang.String token)
Utility method to get align value from a string. |
LyAreaBase.Border |
getBorder()
Gets value of border. |
java.lang.String |
getColor()
Gets value of color. |
LyCommand |
getCommand(int i)
Get sub-component Command of index i. |
int |
getCommandCount()
Get sub-component Command count. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
java.lang.String |
getId()
Gets value of id. |
LyCommands |
getTemplate()
Gets value of template. |
void |
insertCommand(LyCommand command,
int pos)
Inserts a sub-component command 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. |
void |
setAlign(LyCommands.Align align)
Initializes attribute align to the given value. |
void |
setBorder(LyAreaBase.Border border)
Initializes attribute border to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
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 |
setTemplate(LyCommands 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 LyCommands()
Method Detail |
---|
public static final LyCommands.Align getAlign(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 LyCommands getTemplate()
public LyAreaBase.Border getBorder()
public LyCommands.Align getAlign()
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 LyCommand getCommand(int i)
i
- the index of the Command to get.
public int getCommandCount()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyCommands template)
template
- New value of template.public void setBorder(LyAreaBase.Border border)
border
- New value of border.
java.lang.IllegalArgumentException
- if border parameter is null.public void setAlign(LyCommands.Align align)
align
- New value of align.
java.lang.IllegalArgumentException
- if align parameter is null.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 addCommand(LyCommand command)
command
- The command to add to commands list.public void insertCommand(LyCommand command, int pos)
command
- The command to add to commands list.pos
- Position where the sub-component is inserted.public void addSep()
public void insertSep(int pos)
pos
- Position where the separator is inserted.public void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic 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 |