private static class UIManager.FormEntry extends HttpFormEntry
HttpFormEntry
that supports line wrapping for
text area entries.HttpFormEntry
Modifier and Type | Field and Description |
---|---|
private int |
cols
Number of columns in the JTextArea.
|
private JTextArea |
component
GUI representation of this entry.
|
private int |
rows
Number of rows in the JTextArea.
|
private int |
type
Entry type.
|
private String |
value
Initial contents of this entry.
|
private boolean |
wrap
Whether or not the JTextArea should wrap lines.
|
TYPE_AREA, TYPE_FILE, TYPE_HIDDEN, TYPE_INPUT, TYPE_LABEL
Constructor and Description |
---|
FormEntry()
Required to keep Java happy.
|
FormEntry(boolean wrap,
int type,
String name,
String label,
String value,
int rows,
int cols,
boolean required)
Using this constructor allows McIDAS-V to control whether or not a
HttpFormEntry performs line wrapping for JTextArea components.
|
Modifier and Type | Method and Description |
---|---|
void |
addToGui(List guiComps)
Overrides the IDV method so that the McIDAS-V support request form
will wrap lines in the "Description" field.
|
String |
getValue()
Since the IDV doesn't provide a getComponent for
addToGui , we must make our component field
local to this class. |
void |
setValue(String newValue)
Hijacks any requests to set the
component field's text. |
private boolean wrap
private int type
private int rows
private int cols
public FormEntry()
public FormEntry(boolean wrap, int type, String name, String label, String value, int rows, int cols, boolean required)
wrap
- Whether or not line wrapping should be enabled.type
- Type of this entryname
- Namelabel
- Labelvalue
- Initial valuerows
- Number of rows.cols
- Number of columns.required
- Whether or not the entry will be required.public void addToGui(List guiComps)
addToGui
in class HttpFormEntry
guiComps
- List to which this instance should be added.public String getValue()
addToGui
, we must make our component
field
local to this class.
Hijacks any value requests so that the local component
field is queried, not the IDV's.getValue
in class HttpFormEntry
public void setValue(String newValue)
component
field's text.setValue
in class HttpFormEntry