[tag libraries]
[tags]
Creates a Swing Action which on invocation will execute the body of this tag.The Action is then output as a variable for reuse if the 'var' attribute is specifiedotherwise the action is added to the parent JellySwing widget.
Attribute Name | Type | Description |
escapeText | boolean |
|
ignoreUnknownProperties | boolean |
|
trim | boolean |
|
Represents a layout of a child component within its parent <borderLayout>layout.
Attribute Name | Type | Description |
align | java.lang.String | Sets the alignment of the child component which is a case insensitive valueof {NORTH, SOUTH, EAST, WEST, CENTER} which defaults to CENTER |
escapeText | boolean |
|
trim | boolean |
|
A Layout tag which uses nested <borderAlign>tags to implement a BorderLayout
Attribute Name | Type | Description |
escapeText | boolean |
|
hgap | int | Sets the horizontal gap in pixels. |
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new LayoutManager object.If this attribute is not set then the parent widget tag will have itslayout property set. |
vgap | int | Sets the vertical gap in pixels |
Implements a ButtonGroup. This tag acts like a Swing componentexcept that adding a component other than an AbstractButton, will be passedthrough to the parent tag. This is meant to make thebuttonGroup easier to use like this:
<panel> <buttonGroup> <panel> <radioButton/> </panel> <panel> <radioButton/> </panel> </buttonGroup> </panel>
Note that the following construct will silently fail, and shame on s/he who even tried it:
<panel> <buttonGroup> <font .../> <panel> <radioButton/> </panel> <panel> <radioButton/> </panel> </buttonGroup> </panel>
Attribute Name | Type | Description |
action | javax.swing.Action | Sets the Action of this component |
border | javax.swing.border.Border | Sets the Border of this component |
escapeText | boolean |
|
font | java.awt.Font | Sets the Font of this component |
ignoreUnknownProperties | boolean |
|
layout | java.awt.LayoutManager | Sets the LayoutManager of this component |
tagName | java.lang.String | Puts this tag into the context under the given nameallowing later calls to org.apache.commons.jelly.tags.swing.ComponentTag.rerun().For example, it makes sense to use ${myTag.rerun()} as a childof an
action
element.
|
trim | boolean |
|
Implements CardLayout. Takes parameters hgap, vgap per the class. You canset the "var" attribute of this tag, this will store the layout managerin that context attribute, for later use.
Attribute Name | Type | Description |
escapeText | boolean |
|
hgap | int |
|
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new LayoutManager object.If this attribute is not set then the parent widget tag will have itslayout property set. |
vgap | int |
|
This tag creates a Swing component and adds it to its parent tag, optionally declaring thiscomponent as a variable if the
var
attribute is specified.
This tag clears the reference to it's bean after doTag runs.This means that child tags can access the component (bean) normallyduring execution but should not hold a reference to thistag after their doTag completes.
Attribute Name | Type | Description |
action | javax.swing.Action | Sets the Action of this component |
border | javax.swing.border.Border | Sets the Border of this component |
escapeText | boolean |
|
font | java.awt.Font | Sets the Font of this component |
ignoreUnknownProperties | boolean |
|
layout | java.awt.LayoutManager | Sets the LayoutManager of this component |
tagName | java.lang.String | Puts this tag into the context under the given nameallowing later calls to org.apache.commons.jelly.tags.swing.ComponentTag.rerun().For example, it makes sense to use ${myTag.rerun()} as a childof an
action
element.
|
trim | boolean |
|
This class represents a layout-manager constraints as passed inthe second argument of Container.add(Component,Object).
In essence, it looks really like nothing else than a bean-class...with
org.apache.commons.jelly.tags.swing.ConstraintTag.getConstraintObject.Probably a shorter java-source is do-able.
TODO: this class should probably be extended with special treatment for dimensiosusing the converter package.
Attribute Name | Type | Description |
dynaBean | org.apache.commons.beanutils.DynaBean |
|
escapeText | boolean |
|
trim | boolean |
|
Creates a Swing Dialog. A JDialog needs to have it's owner set in the constructor,which is why this class is needed instead of just using a BeanFactory.
Attribute Name | Type | Description |
escapeText | boolean |
|
ignoreUnknownProperties | boolean |
|
trim | boolean |
|
Creates an empty border.The border will either be exported as a variable defined by the 'var' attributeor will be set on the parent widget's border property
Attribute Name | Type | Description |
bottom | int | Sets the bottom inset
|
escapeText | boolean |
|
left | int | Sets the left inset
|
right | int | Sets the right inset
|
top | int | Sets the top inset
|
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new Border object.If this attribute is not set then the parent widget tag will have itsborder property set. |
Creates an etched border.The border will either be exported as a variable defined by the 'var' attributeor will be set on the parent widget's border property
Attribute Name | Type | Description |
escapeText | boolean |
|
etchType | int | Sets the etch type. Must be either EtchedBorder.LOWERED or EtchedBorder.RAISED
|
highlight | java.awt.Color | Sets the highlight color
|
top | java.awt.Color | Sets the shadow color
|
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new Border object.If this attribute is not set then the parent widget tag will have itsborder property set. |
Attribute Name | Type | Description |
escapeText | boolean |
|
gained | org.apache.commons.jelly.Script |
|
lost | org.apache.commons.jelly.Script |
|
trim | boolean |
|
var | java.lang.String |
|
Creates an Font and attaches it to the parent component or exports the font asa reusable variable that can be attached to multiple widgets.
Attribute Name | Type | Description |
escapeText | boolean |
|
trim | boolean |
|
This class represents a java.awt.GridBagConstraintsconstraints as passed inthe second argument of Container.add(Component,Object).It supports inheritence between such tags in the following fashion:
-
either using a
basedOn
attribute which issupposed to provide a reference to another
org.apache.commons.jelly.tags.swing.GbcTag.
either using a parent
org.apache.commons.jelly.tags.swing.GbcTag. The first version takes precedence.A Grid-bag-constraint inherits from another simply by setting other attributesas is done in org.apache.commons.jelly.tags.swing.impl.GridBagConstraintBean.setBasedOn.
In essence, it looks really like nothing else than a bean-class...with
org.apache.commons.jelly.tags.swing.GbcTag.getConstraints.Probably a shorter java-source is do-able.
TODO: this class should probably be extended with special treatment for dimensionsusing the converter package.
Attribute Name | Type | Description |
escapeText | boolean |
|
ignoreUnknownProperties | boolean |
|
trim | boolean |
|
A Layout tag which uses nested <gbc>tags to implement a GridBagLayout
Attribute Name | Type | Description |
escapeText | boolean |
|
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new LayoutManager object.If this attribute is not set then the parent widget tag will have itslayout property set. |
Attribute Name | Type | Description |
escapeText | boolean |
|
pressed | org.apache.commons.jelly.Script |
|
released | org.apache.commons.jelly.Script |
|
trim | boolean |
|
typed | org.apache.commons.jelly.Script |
|
var | java.lang.String |
|
A Layout tag which mimicks the table, tr and td tags of HTML.
Attribute Name | Type | Description |
escapeText | boolean |
|
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new LayoutManager object.If this attribute is not set then the parent widget tag will have itslayout property set. |
Creates a default TableModel using nested tableColumn tags.
Attribute Name | Type | Description |
escapeText | boolean |
|
ignoreUnknownProperties | boolean |
|
trim | boolean |
|
Creates a default TableColumnModel.
Attribute Name | Type | Description |
escapeText | boolean |
|
ignoreUnknownProperties | boolean |
|
trim | boolean |
|
Represents a tabular cell inside a <tl>tag inside a <tableLayout>tag which mimicks the <td>HTML tag.
Attribute Name | Type | Description |
align | java.lang.String | Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT} |
colfill | boolean | Sets whether or not this column should allow its component to stretch to fill the space available |
colspan | int | Sets the number of columns that this cell should span. The default value is 1 |
escapeText | boolean |
|
rowfill | boolean | Sets whether or not this row should allow its component to stretch to fill the space available |
rowspan | int | Sets the number of rows that this cell should span. The default value is 1 |
trim | boolean |
|
valign | java.lang.String | Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM} |
Creates a titled border.The border will either be exported as a variable defined by the 'var' attributeor will be set on the parent widget's border property
Attribute Name | Type | Description |
color | java.awt.Color | Sets the color of the title for this border. Can be set via a nested
tag.
|
escapeText | boolean |
|
font | java.awt.Font | Sets the Font to be used by the title. Can be set via a nested
tag.
|
title | java.lang.String | Sets the title text for this border. |
titleJustification | java.lang.String | Sets the justification of the title. The String is case insensitive.Possible values are {LEFT, CENTER, RIGHT, LEADING, TRAILING} |
titlePosition | java.lang.String | Sets the position of the title. The String is case insensitive.Possible values are {ABOVE_TOP, TOP, BELOW_TOP, ABOVE_BOTTOM, BOTTOM, BELOW_BOTTOM} |
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the new Border object.If this attribute is not set then the parent widget tag will have itsborder property set. |
Represents a tabular row inside a <tableLayout>tag which mimicks the <tr>HTML tag.
Attribute Name | Type | Description |
escapeText | boolean |
|
trim | boolean |
|
Creates a WindowListener which is attached to its parent window control which will invokenamed Jelly scripts as window events are fired, or will invoke its body if there is no scriptspecified for the named event type.
Attribute Name | Type | Description |
activated | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is activated. |
closed | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is closed. |
closing | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is closing. |
deactivated | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is deactivated. |
deiconified | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is deiconified. |
escapeText | boolean |
|
iconified | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is iconified. |
opened | org.apache.commons.jelly.Script | Sets the Script to be executed when the window is opened. |
trim | boolean |
|
var | java.lang.String | Sets the name of the variable to use to expose the Event object |