Interface ConditionalTag
-
- All Superinterfaces:
org.apache.commons.jelly.Tag
- All Known Implementing Classes:
AbstractActionDataTag
,ActionControlTag
,ActionDataTag
,ActionListenerTag
,ActionTag
,ActionTaskTag
,AndEventFilterTag
,BorderConstraintsTag
,BorderLayoutTag
,ButtonLayoutTag
,ButtonTag
,ChainedEventFilterTag
,ChangeListenerTag
,CheckboxTag
,ColumnComponentTag
,ColumnEditorTag
,ColumnRendererTag
,ComboBoxTag
,ComponentBaseTag
,ComponentGroupTag
,ComponentHandlerTag
,ConstraintsTag
,ContainerTag
,ConverterTag
,DesktopPanelTag
,DialogTag
,EventFilterTag
,EventListenerTag
,EventListenerTypeTag
,EventRegistrationTag
,FieldTag
,FocusListenerTag
,FontTag
,FormBaseTag
,FormControllerListenerTag
,FormControllerTag
,FormEventListenerTag
,FrameTag
,IconTag
,InputComponentTag
,InternalFrameTag
,LabelTag
,LayoutTag
,ListBoxTag
,ListModelItemTag
,LocalizedTag
,MenuBarTag
,MenuItemTag
,MenuTag
,MouseListenerTag
,OrEventFilterTag
,PanelTag
,PasswordFieldTag
,PercentCellConstraintsTag
,PercentCellGroupTag
,PercentColConstraintsTag
,PercentColGroupTag
,PercentConstraintsTag
,PercentLayoutTag
,PercentRowConstraintsTag
,PercentRowGroupTag
,PopupHandlerTag
,ProgressBarTag
,PropertiesTag
,PropertyTag
,PushButtonTag
,RadioButtonTag
,RadioGroupTag
,ReferenceTag
,SeparatorTag
,SimpleComponentTag
,SliderTag
,SplitterTag
,StaticTextTag
,TabbedPaneTag
,TableColumnTag
,TableEditorValidationHandlerTag
,TableSelectionHandlerTag
,TableTag
,TabTag
,TextAreaTag
,TextFieldTag
,TextIconTag
,TextListModelTag
,ToggleButtonTag
,ToolbarTag
,ToolButtonTag
,TransformerBaseTag
,TransformerTag
,TreeIconTag
,TreeTag
,UseBeanBaseTag
,ValidatorBaseTag
,ValidatorsTag
,ValidatorTag
,WindowBaseTag
,WindowControllerTag
,WindowListenerTag
public interface ConditionalTag extends org.apache.commons.jelly.Tag
Definition of an interface for tags that are only executed for certain builders.
In theory the XML GUI definition should be portable, i.e. compatible with different builders. In practice there may be cases where this is not possible. Then it comes in handy if there is an easy possibility to specify that certain tags are only executed under certain conditions. This is exactly the purpose of this interface. Note that with standard Jelly means it is quite easy to achieve such a conditional execution of tags; the form builder library however tries to provide an even more convenient mechanism by simply specifying an attribute with the name of a builder. The tag is then executed if the current builder either matches or does not match this name.
So the major part of tags in this Jelly tag library will support the following attributes for conditional execution:
- ifName: This attribute can be assigned a comma separated list of builder names. The tag gets executed only if the name of the current builder matches one of the specified names.
- unlessName: This attribute is very similar to the one explained before. The difference is that the tag gets executed only if the current builder's name does not match a name specified in the attribute.
- Version:
- $Id: ConditionalTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getIfName()
Returns the value of theifName
attribute.String
getUnlessName()
Returns the value of theunlessName
attribute.
-
-
-
Method Detail
-
getIfName
String getIfName()
Returns the value of theifName
attribute. Here a list of builder names can be returned, for which the tag should be executed.- Returns:
- a list of supported builders
-
getUnlessName
String getUnlessName()
Returns the value of theunlessName
attribute. Here a list of builder names can be returned, for which the tag should bot be executed.- Returns:
- a list of not supported builders
-
-