|
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.types.ChoiceField
public final class ChoiceField
Drop-down choice field component.
Constructor Summary | |
---|---|
ChoiceField()
Creates new instance with empty String options. |
|
ChoiceField(boolean optional)
Creates new instance with empty String options. |
|
ChoiceField(java.lang.String[] variants)
Creates new instance of String options. |
|
ChoiceField(java.lang.String[] variants,
boolean optional)
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[] |
getVariants()
Gets all String options. |
boolean |
isOptional()
Checks if field is optional. |
void |
setVariants(java.lang.String[] variants)
Sets all String options |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChoiceField(java.lang.String[] variants, boolean optional)
variants
- the string variantsoptional
- if field is optionalpublic ChoiceField(java.lang.String[] variants)
variants
- the string variantspublic ChoiceField(boolean optional)
optional
- if field is optionalpublic ChoiceField()
Method 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[] getVariants()
public void setVariants(java.lang.String[] variants)
variants
- the optionspublic boolean isOptional()
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |