|
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.LyFieldItem
leon.view.LyPanel
leon.view.LyCommand
public class LyCommand
The LyCommand class is a generated Java implementation that corresponds to the element COMMAND of the descriptive grammar of the views (views.dtd). <COMMAND> : Command Button A command button allows executing an action. There are predefined types of command giving information about the nature of the action to execute (closing, cancellation, help, etc.).
See also tag COMMAND of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyCommand.Action
Possible values for attribute 'action'. |
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 | |
---|---|
LyCommand(java.lang.String id,
java.lang.String label)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
LyCommand.Action |
getAction()
Gets value of action. |
static LyCommand.Action |
getAction(java.lang.String token)
Utility method to get action value from a string. |
java.lang.String |
getColor()
Gets value of color. |
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. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
LyCommand |
getTemplate()
Gets value of template. |
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 |
setAction(LyCommand.Action action)
Initializes attribute action 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 |
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 |
setImage(java.lang.String image)
Initializes attribute image to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
setTemplate(LyCommand 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.LyPanel |
---|
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting |
Methods inherited from class leon.view.LyFieldItem |
---|
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, updateViewContent, validateInput |
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 LyCommand(java.lang.String id, java.lang.String label)
id
- Identifier of the command button.label
- Text of the command button.Method Detail |
---|
public static final LyCommand.Action getAction(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 LyCommand getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getImage()
public boolean isEnabled()
public LyCommand.Action getAction()
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 LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setTemplate(LyCommand template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
setLabel
in class LyFieldItem
label
- New value of label.
java.lang.IllegalArgumentException
- if label is null.public void setImage(java.lang.String image)
image
- New value of image.public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setAction(LyCommand.Action action)
action
- New value of action.
java.lang.IllegalArgumentException
- if action 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 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 |