|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.DocumentFragment
info.informatica.html.tag.HTMLTag
info.informatica.ui.html.tag.FormData
public abstract class FormData
Base class for all form data fields.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class info.informatica.doc.DocumentFragment |
|---|
info.informatica.doc.DocumentFragment.FragmentComp, info.informatica.doc.DocumentFragment.NotFragmentComp |
| Method Summary | |
|---|---|
static info.informatica.html.tag.HTMLTag |
createField(info.informatica.html.tag.HTMLTag t)
Creates a FormData instance of a form HTMLTag. |
static FormData |
createField(String clase,
String id,
ControlName nameattr,
info.informatica.doc.FragmentPosition pos)
|
info.informatica.html.tag.Attributes |
getAttributes()
Returns the tag attributes. |
ControlName |
getControlName()
Gets the Control name (the name attribute of this tag). |
FieldName |
getFieldname()
Returns the name of the database field associated to this entity. |
Integer |
getFieldSize()
|
Object |
getFormat()
Gets the format that applies to this UI element. |
String[] |
getStringValues()
Devuelve lo introducido por el usuario. |
Object |
getValue()
Gets the Object value of the field. |
DataField |
guessDataField()
Try to guess the DataType from the default value, and return a temptative DataField representing this field. |
void |
init(DataField de)
Inicializa el valor del campo |
void |
mapDataToUI(DataField de,
Dataset ds,
Map<String,Object> m)
|
static String |
mapInputField(String fieldtype)
Maps input field types to FormField classes. |
void |
setFieldname(FieldName name)
Sets the name of the data field associated to this UI field. |
void |
setFormat(Object fmt)
Sets the formatting object for this UI element. |
void |
setValue(Object o)
Sets the value of the field. |
void |
setValue(String s)
|
void |
setValue(String[] sa)
|
String |
toString(info.informatica.html.CharData cdata)
|
String |
toString(String innerstring)
|
| Methods inherited from class info.informatica.html.tag.HTMLTag |
|---|
align, endTag, getAlignment, getBlockPosition, getId, getName, getParent, getStyle, getStyleClass, getTagData, isSelfClosing, length, onAttributeRemoved, onAttributes, onAttributeStringSet, onDummyAttributes, setAttributes, setId, setParent, setSelfClosing, setSelfClosing, setTagData, setTagData, startTag, toString, toString, toXml, vAlign |
| Methods inherited from class info.informatica.doc.DocumentFragment |
|---|
adjustWidth, compareTo, getCurrentPosition, getPosition, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public FieldName getFieldname()
DataControl
getFieldname in interface DataControlpublic void setFieldname(FieldName name)
DataControl
setFieldname in interface DataControlpublic info.informatica.html.tag.Attributes getAttributes()
getAttributes in class info.informatica.html.tag.HTMLTagpublic Object getValue()
DataValue
getValue in interface DataValuepublic String[] getStringValues()
public void setValue(String s)
throws DataFieldException
DataFieldException
public void setValue(String[] sa)
throws DataFieldException
DataFieldException
public void setValue(Object o)
throws DataFieldException
DataValueMust NOT perform any data validation (only UI-level validation).
setValue in interface DataValueo - the value to be given to field.
DataFieldException
public void init(DataField de)
throws DataFieldException
init in interface DataControlDataFieldException
public void mapDataToUI(DataField de,
Dataset ds,
Map<String,Object> m)
throws DatasetException
mapDataToUI in interface DataControlDatasetExceptionpublic String toString(info.informatica.html.CharData cdata)
public String toString(String innerstring)
toString in class info.informatica.html.tag.HTMLTagpublic ControlName getControlName()
getControlName in interface DataControlpublic void setFormat(Object fmt)
DataControlIt is allowed to thow an UnsupportedOperationException if the UI Control does not support formatting.
setFormat in interface DataControlfmt - the Formatting objectpublic Object getFormat()
DataControl
getFormat in interface DataControlpublic DataField guessDataField()
public Integer getFieldSize()
public static final info.informatica.html.tag.HTMLTag createField(info.informatica.html.tag.HTMLTag t)
throws DataViewException
t - the tag that may be of a form field type.
DataViewException
public static final FormData createField(String clase,
String id,
ControlName nameattr,
info.informatica.doc.FragmentPosition pos)
throws DataViewException
DataViewExceptionpublic static String mapInputField(String fieldtype)
fieldtype - type of field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||