sky.engine.field
Class CharListField
java.lang.Object
sky.engine.field.BaseField
sky.engine.field.CharField
sky.engine.field.CharListField
- All Implemented Interfaces:
- Field
- public class CharListField
- extends CharField
- implements Field
|
Field Summary |
protected java.lang.String |
_delm
string delimeter that seperates two string within a list of strings from each other. |
|
Constructor Summary |
CharListField(java.lang.String name,
boolean required,
int minlen,
int maxlen,
java.lang.String delm)
Constructor |
CharListField(java.lang.String name,
boolean required,
java.lang.String dflt,
int minlen,
int maxlen,
java.lang.String delm,
int vislen)
Constructor |
|
Method Summary |
void |
addValue(java.lang.String value)
Add specified string as values of this field. |
void |
destory()
Destory this field. |
| Methods inherited from class sky.engine.field.BaseField |
addAlias, clear, getAliases, getData, getDataSize, getHTMLData, getName, getRequired, getSQLData, getStringData, hasAliases, hasValue, removeAliases, removeValues, toHTML, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface sky.engine.field.Field |
addAlias, checkValue, clear, getAliases, getDataSize, getHTMLData, getName, getRequired, getSQLData, getStringData, hasAliases, removeAliases, removeValues, toHTML, toString |
_delm
protected java.lang.String _delm
- string delimeter that seperates two string within a list of strings from each other.
CharListField
public CharListField(java.lang.String name,
boolean required,
int minlen,
int maxlen,
java.lang.String delm)
- Constructor
- Parameters:
name - field namerequired - true if field must have a value, else false.minlen - minimum length of each string in the list of string values.maxlen - maximum length of each string in the list of string values.delm - delimiter that sperates two string in the list of string values.
CharListField
public CharListField(java.lang.String name,
boolean required,
java.lang.String dflt,
int minlen,
int maxlen,
java.lang.String delm,
int vislen)
- Constructor
- Parameters:
name - field namerequired - true if field must have a value, else false.dflt - default value if user does not specify an input value.minlen - minimum length of each string in the list of strings.maxlen - maximum length of each string in the list of string values.delm - delimiter that sperates two string in the list of string values.vislen - visible length of field's gui component.
addValue
public void addValue(java.lang.String value)
throws ErrorMessage
- Add specified string as values of this field. The input strings may contain a list of
values separated by some delimiter.
- Specified by:
addValue in interface Field- Overrides:
addValue in class CharField
- Parameters:
value - strings seperated by a some delimiter.
- Throws:
ErrorMessage - if there is a problem in adding values.
destory
public void destory()
- Destory this field.
- Specified by:
destory in interface Field- Overrides:
destory in class BaseField