public class Span extends AbstractField
AbstractField.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
protected static java.lang.String |
SPAN
The pattern used to create the html for a span.
|
PARAMivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
Span()
Constructs a new instance of
Span using the supplied
parameters. |
Span(java.lang.String text)
Constructs a new instance of
Span using the supplied
parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the given object to this object and determines if the two are
equal.
|
java.lang.String |
getText()
Returns the span's text attribute.
|
void |
setText(java.lang.String text)
Sets the span's text attribute.
|
void |
setTextHS(java.lang.String text)
Sets the span's text attribute.
|
java.lang.String |
toHTML()
Returns a formatted html string for the span's current attribute values.
|
formatAttr, getDisabled, getId, getName, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseOut, getOnMouseOver, getStyleCls, getStyleStr, setDisabled, setId, setName, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseOut, setOnMouseOver, setStyleCls, setStyleStrcloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
protected static final java.lang.String SPAN
public Span()
Span using the supplied
parameters. Defaults the text value to an empty string.public Span(java.lang.String text)
Span using the supplied
parameters.text - (String) The text value to display. The supplied value
is auto-encoded for html safe characters. To construct a span
with text that is already html safe, set this value to an empty
string and then use the setTextHS() method to set the html safe
text value.public boolean equals(java.lang.Object obj)
equals in class MappedAttributesObjectobj - (Object) The object to compare with this object.true if the specified object is equal to
this object, otherwise false.public java.lang.String toHTML()
toHTML in AbstractField.toHTML in class AbstractFieldAbstractField.toHTML()public java.lang.String getText()
public void setText(java.lang.String text)
text - (String) The span's text. The supplied value is encoded
for html safe characters.public void setTextHS(java.lang.String text)
text - (String) The span's text. The supplied value is assumed
to contain html safe characters. No additional encoding is done.