|
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.LyToolBase
public abstract class LyToolBase
The LyToolBase class is a generated Java implementation that corresponds to the element TOOL of the descriptive grammar of the views (views.dtd). <TOOL> : Action button An action button allows executing an action. In the case where the button contains an area (AREA), this area is displayed in a new window when launching the action.
LyPanel
,
See also tag TOOL of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyToolBase.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 | |
---|---|
LyToolBase(java.lang.String id,
java.lang.String label)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getClickColor()
Gets value of clickColor. |
java.lang.String |
getColor()
Gets value of color. |
LyComponent |
getComponent()
Get sub-component Component. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
int |
getHeight()
Gets value of height. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
java.lang.String |
getOverview()
Gets value of overview. |
LyToolBase.Style |
getStyle()
Gets value of style. |
static LyToolBase.Style |
getStyle(java.lang.String token)
Utility method to get style value from a string. |
LyTool |
getTemplate()
Gets value of template. |
java.lang.String |
getTooltip()
Gets value of tooltip. |
int |
getWidth()
Gets value of width. |
boolean |
isDefaultClickColor()
Checks whether the clickColor attribute is valuated to the default value. |
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 |
isDefaultImage()
Checks whether the image attribute is valuated to the default value. |
boolean |
isDialog()
Checks if value of attribute dialog is set. |
boolean |
isEnabled()
Checks if value of attribute enabled is set. |
boolean |
isPressed()
Checks if value of attribute pressed is set. |
void |
setClickColor(java.lang.String clickColor)
Initializes attribute clickColor to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setComponent(LyComponent component)
Sets sub-component component. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setDialog(boolean dialog)
Initializes attribute dialog 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 |
setHeight(int height)
Initializes attribute height to the given value. |
void |
setImage(java.lang.String image)
Sets attribute image to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
setOverview(java.lang.String overview)
Initializes attribute overview to the given value. |
void |
setPressed(boolean pressed)
Sets attribute pressed to the given value. |
void |
setStyle(LyToolBase.Style style)
Initializes attribute style to the given value. |
void |
setTemplate(LyTool template)
Initializes attribute template to the given value. |
void |
setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value. |
void |
setWidth(int width)
Initializes attribute width 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 LyToolBase(java.lang.String id, java.lang.String label)
id
- Identifier of the action button.label
- Text of the action button.Method Detail |
---|
public static final LyToolBase.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 LyTool getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getTooltip()
public java.lang.String getOverview()
public java.lang.String getImage()
public boolean isDefaultImage()
public LyToolBase.Style getStyle()
public boolean isPressed()
public boolean isEnabled()
public boolean isDialog()
public int getWidth()
public int getHeight()
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 java.lang.String getClickColor()
public boolean isDefaultClickColor()
public LyComponent getComponent()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setTemplate(LyTool 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 setTooltip(java.lang.String tooltip)
tooltip
- New value of tooltip.public void setOverview(java.lang.String overview)
overview
- New value of overview.public void setImage(java.lang.String image)
setImage
in interface LySetImageInterface
image
- New value of image.public void setStyle(LyToolBase.Style style)
style
- New value of style.
java.lang.IllegalArgumentException
- if style parameter is null.public void setPressed(boolean pressed)
pressed
- Boolean indicating if attribute pressed is set or unset.public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setDialog(boolean dialog)
dialog
- Boolean indicating if attribute dialog is set or unset.public void setWidth(int width)
width
- New value of width.public void setHeight(int height)
height
- New value of height.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 setClickColor(java.lang.String clickColor)
clickColor
- New value of clickColor.public void setComponent(LyComponent component)
component
- New value of componentpublic 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 |