JSPortal
Last updated
Last updated
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.
Sample
The background color of the component.
Sample
The type, color and style of border of the component.
Sample
The enable state of the component, default true.
Sample
The font type of the component.
Sample
The foreground color of the component.
Sample
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.
Sample
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.
Sample
The height in pixels of the component.
Sample
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)
Sample
The name of the style class that should be applied to this component.
When defining style classes for specific component types, their names must be prefixed according to the type of the component. For example in order to define a class names 'fancy' for fields, in the style definition the class must be named 'field.fancy'. If it would be intended for labels, then it would be named 'label.fancy'. When specifying the class name for a component, the prefix is dropped however. Thus the field or the label will have its styleClass property set to 'fancy' only.
Sample
Flag that tells if the component is transparent or not.
The default value is "false", that is the components are not transparent.
Sample
The visible property of the component, default true.
Sample
The width in pixels of the component.
Sample
The x coordinate of the component on the form.
Sample
The y coordinate of the component on the form.
Sample
Get the value of an attribute of the element.
Sample
Returns the attribute names of an element.
Sample
Returns the comment of this component.
Sample
Get a design-time property of an element.
Sample
Get the design-time properties of an element.
Sample
Returns the name of the form. (may be empty string as well)
Sample
Returns the UUID of this component.
Sample
Set a design-time property of an element. Value should be primitive data (string, boolean or number). Complex values should be stringified before call.
Sample
Remove the attribute of an element.
Sample
Clear a design-time property of an element.
Sample
Set the attribute value of an element.
Returns void
Sample
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Returns
Parameters name the name of the attribute
Returns
Returns
Returns
Parameters key the name of the property
Returns
Returns
Returns The name of the form.
Returns
Parameters key the name of the property value the value to store
Returns
Parameters name the name of the attribute
Returns the deleted attribute value
Parameters key the name of the property
Returns
Parameters name the name of the attribute value the value of the attribute
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..
Enables a component to stick to a specific side of form and/or to grow or shrink when a window is resized..
The background color of the component..
The type, color and style of border of the component..
The enable state of the component, default true..
The font type of the component..
The foreground color of the component..
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 name of the style class that should be applied to this component..
Flag that tells if the component is transparent or not..
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..