|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.binding.metadata.MetaData
org.jdesktop.binding.metadata.StringMetaData
public class StringMetaData
Class for representing meta-data for data fields which contain string
values.
Example usage:
StringMetaData metaData = new StringMetaData("streetaddress",
"Street Address");
metaData.setRequired(true);
metaData.setMaxLength(32);
Field Summary | |
---|---|
protected int |
maxLength
|
protected int |
minLength
|
Fields inherited from class org.jdesktop.binding.metadata.MetaData |
---|
converter, customProps, decodeFormat, displayWidth, encodeFormat, klass, label, maxValueCount, minValueCount, name, pcs, readOnly, validators |
Constructor Summary | |
---|---|
StringMetaData()
|
|
StringMetaData(java.lang.String name)
|
|
StringMetaData(java.lang.String name,
java.lang.String label)
|
Method Summary | |
---|---|
int |
getMaxLength()
Gets the meta-data's "maxLength" property, which indicates the maximum number of characters permitted for the data field. |
int |
getMinLength()
Gets the meta-data's "minLength" property, which indicates the minimum number of characters permitted for the data field. |
boolean |
isMultiLine()
|
void |
setMaxLength(int maxLength)
Sets the meta-data's "maxLength" property. |
void |
setMinLength(int minLength)
Sets the meta-data's "minLength" property. |
void |
setMultiLine(boolean multiLine)
Sets the meta-data's "multLine" property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int minLength
protected int maxLength
Constructor Detail |
---|
public StringMetaData()
public StringMetaData(java.lang.String name)
public StringMetaData(java.lang.String name, java.lang.String label)
Method Detail |
---|
public int getMinLength()
setMinLength(int)
public void setMinLength(int minLength)
minLength
- integer indicating the minimum number of characters permitted for
the data fieldpublic int getMaxLength()
Integer.MAX_VALUE
, which means there is no maximum.
setMaxLength(int)
public void setMaxLength(int maxLength)
maxLength
- integer indicating the maximum number of characters
permitted for the data fieldpublic boolean isMultiLine()
public void setMultiLine(boolean multiLine)
multiLine
- boolean indicating whether or not the value can be a
multi-line string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |