public class TextField extends Field
Field.Type
Constructor and Description |
---|
TextField(String name)
Creates a new TextField with the given name.
|
TextField(String name,
Collection<String> options)
Creates a new TextField with the given name and possible values.
|
Modifier and Type | Method and Description |
---|---|
static String |
parse(String str)
Parses the given string, interpreting empty strings as equivalent to
null.
|
getName, getOptions, getType, setName, setOptions, setType
public TextField(String name)
name
- The unique name to associate with this field.public TextField(String name, Collection<String> options)
name
- The unique name to associate with this field.options
- A set of known legal options for this field.public static String parse(String str)
str
- The string to parse, which may be null.Copyright © 2018. All rights reserved.