public class AdmBackendControlEdit.EditableControl extends BackendControl
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DATATYPE
The properties key prefix for obtaining data type string.
|
private static long |
serialVersionUID
The class' serialization version id.
|
ALPHA_NUMERIC, NUMERIC
ivHashCode, ivHashFlds, ivObjAttrs
Modifier | Constructor and Description |
---|---|
protected |
EditableControl(BackendControl bc)
Constructs a new editable control object using all values from
the given backend control object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataTypeStr()
Returns a concatenation of the control's maximum length and data type.
|
java.util.ArrayList<java.lang.String> |
getErrorList()
Returns the list of errors for this control.
|
AbstractField |
getFormField()
Returns an html form field for this control.
|
java.lang.String[] |
getRangeValidValue()
Returns this control's range valid value.
|
java.lang.String |
getSingleValidValue()
Returns this control's single valid value.
|
boolean |
hasMultiValidValues()
Answers if this control has multiple valid values.
|
boolean |
hasRangeValidValue()
Answers if this control has a range of valid values.
|
boolean |
hasSingleValidValue()
Answers if this control has a single valid value.
|
boolean |
isNumeric()
Answers if this control has a numeric data type.
|
void |
setErrorList(java.util.ArrayList<java.lang.String> value)
Sets the list of errors for this control.
|
getComments, getDataType, getDescription, getGroupCode, getIsValueRequired, getLength, getName, getValidValues, getValidValuesStr, getValue, setComments, setDataType, setDescription, setGroupCode, setIsValueRequired, setLength, setName, setValidValues, setValidValuesStr, setValue
cloneMapAttributes, 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 DATATYPE
protected EditableControl(BackendControl bc)
bc
- (BackendControl) The backend control on which this
object is based.public java.lang.String getDataTypeStr()
public AbstractField getFormField()
public java.util.ArrayList<java.lang.String> getErrorList()
public void setErrorList(java.util.ArrayList<java.lang.String> value)
value
- (ArrayList) The list of errors.public boolean hasMultiValidValues()
true
if multiple valid values,
otherwise false
.public boolean hasSingleValidValue()
true
if single valid value,
otherwise false
.public java.lang.String getSingleValidValue()
hasSingleValidValue
method should first be invoked to deterimine if this control has a single
valid value.public boolean hasRangeValidValue()
true
if range of valid values,
otherwise false
.public java.lang.String[] getRangeValidValue()
hasRangeValidValue
method should first be invoked to deterimine if this control has a range
valid value.public boolean isNumeric()
true
if data type is numeric,
otherwise false
.