|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.util.reflection.FieldType
com.jscape.util.reflection.types.ChoiceField
public class ChoiceField
Drop-down choice field component.
Field Summary | |
---|---|
boolean |
optional
|
java.lang.String[] |
variants
|
Constructor Summary | |
---|---|
ChoiceField(boolean optional)
Creates new instance with empty String options. |
|
ChoiceField(boolean optional,
java.lang.String... variants)
Creates new instance of String options. |
|
ChoiceField(java.lang.String... variants)
Creates new instance of String options. |
Method Summary | |
---|---|
static ChoiceField |
createRangeChoice(int lowerBound,
int upperBound)
Creates new instance using integer range. |
static ChoiceField |
createRangeChoice(int lowerBound,
int upperBound,
boolean optional)
Creates new instance using integer range. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String[] variants
public final boolean optional
Constructor Detail |
---|
public ChoiceField(boolean optional, java.lang.String... variants)
optional
- if field is optionalvariants
- the string variantspublic ChoiceField(java.lang.String... variants)
variants
- the string variantspublic ChoiceField(boolean optional)
optional
- if field is optionalMethod Detail |
---|
public static ChoiceField createRangeChoice(int lowerBound, int upperBound)
lowerBound
- the lower boundupperBound
- the upper bound
public static ChoiceField createRangeChoice(int lowerBound, int upperBound, boolean optional)
lowerBound
- the lower boundupperBound
- the upper boundoptional
- if field is optional
public java.lang.String toString()
toString
in class java.lang.Object
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |