public class GXHtmlTagFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static GXHtmlTagFactory |
instance()
Returns an instance of the HTML tag factory.
|
GXIButtonTag |
newButton()
Returns a new HTML button tag (<input type="button">)
|
GXICheckboxTag |
newCheckbox(java.lang.String tagId)
Returns a new HTML check box tag.
|
GXIComboboxTag |
newCombobox(java.lang.String tagId)
Returns a new HTML combo box tag (<select>)
The tag ID also sets the name of the tag.
|
GXHtmlGenericTag |
newGenericTag(java.lang.String tagName)
Returns a new HTML generic tag, which may be used for creating a tag.
|
GXHtmlHidden |
newHiddenTag(java.lang.String tagId)
Returns a new HTML hidden tag (<input type="hidden">)
The tag ID also sets the name of the tag.
|
GXHtmlString |
newHtmlString(java.lang.String text)
Used for creating a free text HTML tag.
|
GXImageTag |
newImage() |
GXILabelTag |
newLabel(java.lang.String text)
Returns a new HTML label tag (<span>)
|
GXILinkTag |
newLink(java.lang.String text)
Returns a new HTML link tag (<a ...>).
|
GXIRadioButtonTag |
newRadioButton(java.lang.String tagName,
java.lang.String tagCheckedValue)
Returns a new HTML radio button tag (<input type="radio">)
The tag name is used for associating single radio buttons by specifying the same name.
|
GXIRadioButtonGroupTag |
newRadioButtonGroup(java.lang.String tagId)
Returns a new HTML radio button group tag.
|
GXILabelTag |
newStaticLabel(java.lang.String text) |
GXITableTag |
newTable()
Returns a new HTML table tag (<table>)
|
GXITableCellTag |
newTableCell()
Returns a new HTML table cell tag (<td>)
|
GXITableCellTag |
newTableHeader() |
GXITableRowTag |
newTableRow()
Returns a new HTML table row tag (<tr>)
|
GXITextFieldTag |
newTextField(java.lang.String tagId)
Returns a new HTML text field tag (<input type="text">,<input type="password">).
|
void |
recycleButton(GXIButtonTag button)
Used for recycling the tag.
|
void |
recycleCheckbox(GXICheckboxTag checkbox)
Used for recycling the tag.
|
void |
recycleCombobox(GXIComboboxTag combobox)
Used for recycling the tag.
|
void |
recycleGenericTag(GXHtmlGenericTag tag)
Used for recycling the tag.
|
void |
recycleHidden(GXHtmlHidden hidden)
Used for recycling the tag.
|
void |
recycleHtmlString(GXHtmlString htmlStringTag)
Used for recycling the tag.
|
void |
recycleImage(GXImageTag image) |
void |
recycleLabel(GXILabelTag label)
Used for recycling the tag.
|
void |
recycleLink(GXILinkTag link)
Used for recycling the tag.
|
void |
recycleRadioButton(GXIRadioButtonTag radio)
Used for recycling the tag.
|
void |
recycleRadioButtonGroup(GXIRadioButtonGroupTag radioGroup)
Used for recycling the tag.
|
void |
recycleTable(GXITableTag table)
Used for recycling the tag.
|
void |
recycleTableCell(GXITableCellTag cell)
Used for recycling the tag.
|
void |
recycleTableRow(GXITableRowTag row)
Used for recycling the tag.
|
void |
recycleTextField(GXITextFieldTag textField)
Used for recycling the tag.
|
public static GXHtmlTagFactory instance()
GXHtmlTagFactory.instance().new<TAG NAME>...
public GXILabelTag newLabel(java.lang.String text)
text
- The inner text of the labelpublic GXILabelTag newStaticLabel(java.lang.String text)
public GXITextFieldTag newTextField(java.lang.String tagId)
The tag ID also sets the name of the tag. It is required for returning the content to the server when the page is submitted.
To set as a password text field, use the GXITextFieldTag.setPassword(true)
method.
tagId
- The text field ID.public GXITableTag newTable()
public GXITableRowTag newTableRow()
public GXITableCellTag newTableCell()
public GXIButtonTag newButton()
public GXILinkTag newLink(java.lang.String text)
text
- The inner text of the linkpublic GXIComboboxTag newCombobox(java.lang.String tagId)
tagId
- The tag IDpublic GXIRadioButtonGroupTag newRadioButtonGroup(java.lang.String tagId)
tagId
- The radio button group tag IDpublic GXIRadioButtonTag newRadioButton(java.lang.String tagName, java.lang.String tagCheckedValue)
tagName
- The tag nametagCheckedValue
- The value of the tag when it is selectedpublic GXHtmlGenericTag newGenericTag(java.lang.String tagName)
tagName
- The specified tag namepublic GXHtmlHidden newHiddenTag(java.lang.String tagId)
tagId
- The tag IDpublic GXICheckboxTag newCheckbox(java.lang.String tagId)
tagId
- The tag IDpublic GXImageTag newImage()
public GXHtmlString newHtmlString(java.lang.String text)
text
- the HTML textpublic void recycleLabel(GXILabelTag label)
label
- the tag to recyclepublic void recycleTextField(GXITextFieldTag textField)
textField
- the tag to recyclepublic void recycleTable(GXITableTag table)
table
- the tag to recyclepublic void recycleTableRow(GXITableRowTag row)
row
- the tag to recyclepublic void recycleTableCell(GXITableCellTag cell)
cell
- the tag to recyclepublic void recycleButton(GXIButtonTag button)
button
- the tag to recyclepublic void recycleLink(GXILinkTag link)
link
- the tag to recyclepublic void recycleCombobox(GXIComboboxTag combobox)
combobox
- the tag to recyclepublic void recycleRadioButtonGroup(GXIRadioButtonGroupTag radioGroup)
radioGroup
- the tag to recyclepublic void recycleRadioButton(GXIRadioButtonTag radio)
radio
- the tag to recyclepublic void recycleGenericTag(GXHtmlGenericTag tag)
tag
- the tag to recyclepublic void recycleHidden(GXHtmlHidden hidden)
hidden
- the tag to recyclepublic void recycleCheckbox(GXICheckboxTag checkbox)
checkbox
- the tag to recyclepublic void recycleImage(GXImageTag image)
public void recycleHtmlString(GXHtmlString htmlStringTag)
htmlStringTag
- the tag to recyclepublic GXITableCellTag newTableHeader()
Copyright 2014 Software AG. All rights reserved. Use is subject to license terms.