|
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.LyToolBarBase
public abstract class LyToolBarBase
The LyToolBarBase class is a generated Java implementation that corresponds to the element TOOLBAR of the descriptive grammar of the views (views.dtd). <TOOLBAR> : Tool bar A tool bar allows displaying a set of action buttons. A tool bar can itself contain tool bars, which allows grouping together the action buttons into logical groups and sub-groups.
LyComponent
,
See also tag TOOLBAR of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyToolBarBase.Fill
Possible values for attribute 'fill'. |
static class |
LyToolBarBase.HAlign
Possible values for attribute 'hAlign'. |
static class |
LyToolBarBase.Style
Possible values for attribute 'style'. |
static class |
LyToolBarBase.VAlign
Possible values for attribute 'vAlign'. |
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 | |
---|---|
LyToolBarBase()
Default constructor. |
Method Summary | |
---|---|
void |
addFormField(LyFormField formField)
Adds a sub-component formField. |
void |
addLabel(LyLabel label)
Adds a sub-component label. |
void |
addSep()
Adds a separator. |
void |
addTool(LyTool tool)
Adds a sub-component tool. |
void |
addToolBar(LyToolBar toolBar)
Adds a sub-component toolBar. |
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. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getController()
Gets value of controller. |
LyToolBarBase.Fill |
getFill()
Gets value of fill. |
static LyToolBarBase.Fill |
getFill(java.lang.String token)
Utility method to get fill value from a string. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
LyToolBarBase.HAlign |
getHAlign()
Gets value of hAlign. |
static LyToolBarBase.HAlign |
getHAlign(java.lang.String token)
Utility method to get hAlign value from a string. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
LyToolBarBase.Style |
getStyle()
Gets value of style. |
static LyToolBarBase.Style |
getStyle(java.lang.String token)
Utility method to get style value from a string. |
LyToolBar |
getTemplate()
Gets value of template. |
LyToolBarBase.VAlign |
getVAlign()
Gets value of vAlign. |
static LyToolBarBase.VAlign |
getVAlign(java.lang.String token)
Utility method to get vAlign value from a string. |
void |
insertFormField(LyFormField formField,
int pos)
Inserts a sub-component formField at given position. |
void |
insertLabel(LyLabel label,
int pos)
Inserts a sub-component label at given position. |
void |
insertSep(int pos)
Inserts a separator at the given position. |
void |
insertTool(LyTool tool,
int pos)
Inserts a sub-component tool at given position. |
void |
insertToolBar(LyToolBar toolBar,
int pos)
Inserts a sub-component toolBar at 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 |
isDefaultImage()
Checks whether the image attribute is valuated to the default value. |
boolean |
isOpen()
Checks if value of attribute open is set. |
void |
removeFormField(LyFormField formField)
Removes a sub-component formField. |
void |
removeLabel(LyLabel label)
Removes a sub-component label. |
void |
removeSep(int pos)
Removes a separator at the given position. |
void |
removeTool(LyTool tool)
Removes a sub-component tool. |
void |
removeToolBar(LyToolBar toolBar)
Removes a sub-component toolBar. |
void |
setColor(java.lang.String color)
Sets attribute color to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setController(java.lang.String controller)
Initializes attribute controller to the given value. |
void |
setFill(LyToolBarBase.Fill fill)
Initializes attribute fill 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 |
setHAlign(LyToolBarBase.HAlign hAlign)
Initializes attribute hAlign to the given value. |
void |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setImage(java.lang.String image)
Sets attribute image to the given value. |
void |
setLabel(java.lang.String label)
Initializes attribute label to the given value. |
void |
setOpen(boolean open)
Sets attribute open to the given value. |
void |
setStyle(LyToolBarBase.Style style)
Initializes attribute style to the given value. |
void |
setTemplate(LyToolBar template)
Initializes attribute template to the given value. |
void |
setVAlign(LyToolBarBase.VAlign vAlign)
Initializes attribute vAlign 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 LyToolBarBase()
Method Detail |
---|
public static final LyToolBarBase.Fill getFill(java.lang.String token)
token
- Token string
public static final LyToolBarBase.Style getStyle(java.lang.String token)
token
- Token string
public static final LyToolBarBase.HAlign getHAlign(java.lang.String token)
token
- Token string
public static final LyToolBarBase.VAlign getVAlign(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 LyToolBar getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public java.lang.String getImage()
public boolean isDefaultImage()
public LyToolBarBase.Fill getFill()
public LyToolBarBase.Style getStyle()
public LyToolBarBase.HAlign getHAlign()
public LyToolBarBase.VAlign getVAlign()
public boolean isOpen()
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 LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyToolBar template)
template
- New value of template.public void setLabel(java.lang.String label)
label
- New value of label.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setImage(java.lang.String image)
setImage
in interface LySetImageInterface
image
- New value of image.public void setFill(LyToolBarBase.Fill fill)
fill
- New value of fill.
java.lang.IllegalArgumentException
- if fill parameter is null.public void setStyle(LyToolBarBase.Style style)
style
- New value of style.
java.lang.IllegalArgumentException
- if style parameter is null.public void setHAlign(LyToolBarBase.HAlign hAlign)
hAlign
- New value of hAlign.
java.lang.IllegalArgumentException
- if hAlign parameter is null.public void setVAlign(LyToolBarBase.VAlign vAlign)
vAlign
- New value of vAlign.
java.lang.IllegalArgumentException
- if vAlign parameter is null.public void setOpen(boolean open)
open
- Boolean indicating if attribute open is set or unset.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
setColor
in interface LySetColorInterface
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void addTool(LyTool tool)
tool
- The tool to add to components list.public void insertTool(LyTool tool, int pos)
tool
- The tool to add to components list.pos
- Position where the sub-component is inserted.public void removeTool(LyTool tool)
tool
- The tool to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain tool.public void addToolBar(LyToolBar toolBar)
toolBar
- The toolBar to add to components list.public void insertToolBar(LyToolBar toolBar, int pos)
toolBar
- The toolBar to add to components list.pos
- Position where the sub-component is inserted.public void removeToolBar(LyToolBar toolBar)
toolBar
- The toolBar to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain toolBar.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 addLabel(LyLabel label)
label
- The label to add to components list.public void insertLabel(LyLabel label, int pos)
label
- The label to add to components list.pos
- Position where the sub-component is inserted.public void removeLabel(LyLabel label)
label
- The label to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain label.public void addFormField(LyFormField formField)
formField
- The formField to add to components list.public void insertFormField(LyFormField formField, int pos)
formField
- The formField to add to components list.pos
- Position where the sub-component is inserted.public void removeFormField(LyFormField formField)
formField
- The formField to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain formField.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 |