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 |
recycle(GXITag tag) |
public static GXHtmlTagFactory instance()
GXHtmlTagFactory.instance().new<TAG NAME>...
public void recycle(GXITag tag)
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 GXHtmlGenericTag newGenericTag(java.lang.String tagName)
tagName
- The specified tag namepublic 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 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 GXITableCellTag newTableHeader()
Copyright 2019 Software AG. All rights reserved. Use is subject to license terms.