org.loom.tags
Interface LoomTag

All Known Subinterfaces:
Button, Form, FormInputTag, HtmlTag, Link
All Known Implementing Classes:
AbstractDecoratedTag, AbstractFormatTag, AbstractFormFieldTag, AbstractFormInputTag, AbstractHtmlTag, AbstractOptionsTag, AbstractOutTag, AbstractPagedContainerTag, AbstractTag, AbstractTextFieldTag, AbstractWebResourceTag, ButtonTag, CacheTag, ColumnTag, CssTag, ErrorsTag, ErrorTag, FooterTag, FormatDateTag, FormatDurationTag, FormatFileSizeTag, FormTag, ImgTag, InputCheckboxTag, InputFileTag, InputHiddenTag, InputImageTag, InputPasswordTag, InputRadioTag, InputSelectTag, InputTextAreaTag, InputTextTag, LabelTag, LinkTag, LocaleMenuTag, MenuItemTag, MenuTag, MessagesTag, OptionTag, OutPropertyTag, OutTag, PagedListTag, PagedTableTag, ParamTag, RedirectTag, ScriptTag, TabContainerTag, TabTag, UrlTag

public interface LoomTag


Method Summary
 TagAttributes getExtendedAttributes()
           
 LoomServletRequest getRequest()
           
 java.lang.Object getScopedAttribute(java.lang.String name, Scope scope)
          Get a scoped var
 void setExtendedAttribute(java.lang.String name, java.lang.Object value)
          Add an attribute not suported by the HTML 5 spec
 void setScopedAttribute(java.lang.String name, java.lang.Object value, Scope scope)
          Create a scoped attribute
 

Method Detail

setScopedAttribute

void setScopedAttribute(java.lang.String name,
                        java.lang.Object value,
                        Scope scope)
Create a scoped attribute

Parameters:
name - the attribute name
value - the value
scope - the scope of the attribute. Cannot be null.

getScopedAttribute

java.lang.Object getScopedAttribute(java.lang.String name,
                                    Scope scope)
Get a scoped var

Parameters:
name - the var name
scope - the scope of the var. If null checks them all

getRequest

LoomServletRequest getRequest()
Returns:
the current request object

getExtendedAttributes

TagAttributes getExtendedAttributes()
Returns:
the TagAttributes instance with the extended (not included in the HTML 5 spec) attributes of this link

setExtendedAttribute

void setExtendedAttribute(java.lang.String name,
                          java.lang.Object value)
Add an attribute not suported by the HTML 5 spec

Parameters:
name - the name of the attribute
value - the value of the attribute