public abstract class AbstractField extends MappedAttributesObject
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FORMFIELD
The pattern used to create the html for a form field.
|
protected static java.lang.String |
PARAM
The pattern used to create the html for a form field parameter.
|
private static long |
serialVersionUID
The class' serialization version id.
|
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
AbstractField() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatAttr(java.lang.String attr)
Returns a formatted html string for the requested attribute value.
|
boolean |
getDisabled()
Returns the form field's disabled state attribute.
|
java.lang.String |
getId()
Returns the form field's id attribute.
|
java.lang.String |
getName()
Returns the form field's name attribute.
|
java.lang.String |
getOnBlur()
Returns the form field's onblur event handler attribute.
|
java.lang.String |
getOnClick()
Returns the form field's onclick event handler attribute.
|
java.lang.String |
getOnDblClick()
Returns the form field's ondblclick event handler attribute.
|
java.lang.String |
getOnFocus()
Returns the form field's onfocus event handler attribute.
|
java.lang.String |
getOnKeyDown()
Returns the form field's onkeydown event handler attribute.
|
java.lang.String |
getOnKeyPress()
Returns the form field's onkeypress event handler attribute.
|
java.lang.String |
getOnKeyUp()
Returns the form field's onkeyup event handler attribute.
|
java.lang.String |
getOnMouseOut()
Returns the form field's onmouseout event handler attribute.
|
java.lang.String |
getOnMouseOver()
Returns the form field's onmouseover event handler attribute.
|
java.lang.String |
getStyleCls()
Returns the form field's style class attribute.
|
java.lang.String |
getStyleStr()
Returns the form field's style string attribute.
|
void |
setDisabled(boolean disabled)
Sets the form field's disabled state attribute.
|
void |
setId(java.lang.String id)
Sets the form field's id attribute.
|
void |
setName(java.lang.String name)
Sets the form field's name attribute.
|
void |
setOnBlur(java.lang.String onblur)
Sets the form field's onblur event handler attribute.
|
void |
setOnClick(java.lang.String onclick)
Sets the form field's onclick event handler attribute.
|
void |
setOnDblClick(java.lang.String ondblclick)
Sets the form field's ondblclick event handler attribute.
|
void |
setOnFocus(java.lang.String onfocus)
Sets the form field's onfocus event handler attribute.
|
void |
setOnKeyDown(java.lang.String onkeydown)
Sets the form field's onkeydown event handler attribute.
|
void |
setOnKeyPress(java.lang.String onkeypress)
Sets the form field's onkeypress event handler attribute.
|
void |
setOnKeyUp(java.lang.String onkeyup)
Sets the form field's onkeyup event handler attribute.
|
void |
setOnMouseOut(java.lang.String onmouseout)
Sets the form field's onmouseout event handler attribute.
|
void |
setOnMouseOver(java.lang.String onmouseover)
Sets the form field's onmouseover event handler attribute.
|
void |
setStyleCls(java.lang.String stylecls)
Sets the form field's style class attribute.
|
void |
setStyleStr(java.lang.String stylestr)
Sets the form field's style string attribute.
|
protected java.lang.String |
toHTML()
Returns a formatted html string for the form field's current attribute
values.
|
cloneMapAttributes, equals, 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, toStringArray
private static final long serialVersionUID
private static final java.lang.String FORMFIELD
protected static final java.lang.String PARAM
public boolean getDisabled()
public void setDisabled(boolean disabled)
disabled
- (boolean) The form field's disabled state.public java.lang.String getId()
public void setId(java.lang.String id)
id
- (String) The form field's id.public java.lang.String getName()
public void setName(java.lang.String name)
name
- (String) The form field's name.public java.lang.String getOnBlur()
public void setOnBlur(java.lang.String onblur)
onblur
- (String) The form field's onblur event handler.public java.lang.String getOnClick()
public void setOnClick(java.lang.String onclick)
onclick
- (String) The form field's onclick event handler.public java.lang.String getOnDblClick()
public void setOnDblClick(java.lang.String ondblclick)
ondblclick
- (String) The form field's ondblclick event handler.public java.lang.String getOnFocus()
public void setOnFocus(java.lang.String onfocus)
onfocus
- (String) The form field's onfocus event handler.public java.lang.String getOnKeyDown()
public void setOnKeyDown(java.lang.String onkeydown)
onkeydown
- (String) The form field's onkeydown event handler.public java.lang.String getOnKeyPress()
public void setOnKeyPress(java.lang.String onkeypress)
onkeypress
- (String) The form field's onkeypress event handler.public java.lang.String getOnKeyUp()
public void setOnKeyUp(java.lang.String onkeyup)
onkeyup
- (String) The form field's onkeyup event handler.public java.lang.String getOnMouseOut()
public void setOnMouseOut(java.lang.String onmouseout)
onmouseout
- (String) The form field's onmouseout event handler.public java.lang.String getOnMouseOver()
public void setOnMouseOver(java.lang.String onmouseover)
onmouseover
- (String) The form field's onmouseover event handler.public java.lang.String getStyleCls()
public void setStyleCls(java.lang.String stylecls)
stylecls
- (String) The form field's style class.public java.lang.String getStyleStr()
public void setStyleStr(java.lang.String stylestr)
stylestr
- (String) The form field's style string.protected java.lang.String formatAttr(java.lang.String attr)
protected java.lang.String toHTML()