JSBean
Extends
Property Summary
Enables a component to stick to a specific side of form and/or to grow or shrink when a window is resized..
The bean class name..
The enable state of the component, default true..
The Z index of this component..
A String representing a group ID for this component..
The height in pixels of the component..
The name of the component..
The visible property of the component, default true..
The width in pixels of the component..
The x coordinate of the component on the form..
The y coordinate of the component on the form..
Methods Summary
Get the value of an attribute of the element..
Returns the attribute names of an element..
Returns the comment of this component..
Get a design-time property of an element..
Get the design-time properties of an element..
Returns the name of the form..
Returns the UUID of this component..
Set a design-time property of an element..
Remove the attribute of an element..
Clear a design-time property of an element..
void
Set the attribute value of an element..
Properties Details
anchors
Enables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.
If opposite anchors are activated then the component with grow or shrink with the window. For example if Top and Bottom are activated, then the component will grow/shrink when the window is vertically resized. If Left and Right are activated then the component will grow/shrink when the window is horizontally resized.
If opposite anchors are not activated, then the component will keep a constant distance from the sides of the window which correspond to the activated anchors.
Returns Number
Sample
className
The bean class name.
Returns String
Sample
enabled
The enable state of the component, default true.
Returns Boolean
Sample
formIndex
The Z index of this component. If two components overlap, then the component with higher Z index is displayed above the component with lower Z index.
Returns Number
Sample
groupID
A String representing a group ID for this component. If several components have the same group ID then they belong to the same group of components. Using the group itself, all components can be disabled/enabled or made invisible/visible. The group id should be a javascript compatible identifier to allow access of the group in scripting.
Returns String
Sample
height
The height in pixels of the component.
Returns Number
Sample
name
The name of the component. Through this name it can also accessed in methods. Must be a valid javascript name. (no - in the name or start with number)
Returns String
Sample
visible
The visible property of the component, default true.
Returns Boolean
Sample
width
The width in pixels of the component.
Returns Number
Sample
x
The x coordinate of the component on the form.
Returns Number
Sample
y
The y coordinate of the component on the form.
Returns Number
Sample
Methods Details
getAttribute(name)
Get the value of an attribute of the element.
Parameters String name the name of the attribute
Returns Object
Sample
getAttributes()
Returns the attribute names of an element.
Returns Array
Sample
getComment()
Returns the comment of this component.
Returns String
Sample
getDesignTimeProperty(key)
Get a design-time property of an element.
Parameters String key the name of the property
Returns Object
Sample
getDesignTimePropertyNames()
Get the design-time properties of an element.
Returns Array
Sample
getFormName()
Returns the name of the form. (may be empty string as well)
Returns String The name of the form.
Sample
getUUID()
Returns the UUID of this component.
Returns UUID
Sample
putDesignTimeProperty(key, value)
Set a design-time property of an element. Value should be primitive data (string, boolean or number). Complex values should be stringified before call.
Parameters String key the name of the property Object value the value to store
Returns Object
Sample
removeAttribute(name)
Remove the attribute of an element.
Parameters String name the name of the attribute
Returns String the deleted attribute value
Sample
removeDesignTimeProperty(key)
Clear a design-time property of an element.
Parameters String key the name of the property
Returns Object
Sample
setAttribute(name, value)
Set the attribute value of an element.
Parameters String name the name of the attribute String value the value of the attribute
Returns void
Sample
Last updated
Was this helpful?