Package edu.wisc.ssec.mcidasv.ui
Class UIManager.FormEntry
java.lang.Object
ucar.unidata.ui.HttpFormEntry
edu.wisc.ssec.mcidasv.ui.UIManager.FormEntry
- Enclosing class:
UIManager
A type of
HttpFormEntry that supports line wrapping for
text area entries.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intNumber of columns in the JTextArea.private JTextAreaGUI representation of this entry.private intNumber of rows in the JTextArea.private intEntry type.private StringInitial contents of this entry.private booleanWhether or not the JTextArea should wrap lines.Fields inherited from class ucar.unidata.ui.HttpFormEntry
TYPE_AREA, TYPE_FILE, TYPE_HIDDEN, TYPE_INPUT, TYPE_LABEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOverrides the IDV method so that the McIDAS-V support request form will wrap lines in the "Description" field.getValue()Since the IDV doesn't provide a getComponent foraddToGui, we must make ourcomponentfield local to this class.voidHijacks any requests to set thecomponentfield's text.
-
Field Details
-
value
Initial contents of this entry. -
wrap
Whether or not the JTextArea should wrap lines. -
type
Entry type. Used to remain compatible with the IDV. -
rows
Number of rows in the JTextArea. -
cols
Number of columns in the JTextArea. -
component
GUI representation of this entry.
-
-
Constructor Details
-
FormEntry
public FormEntry()Required to keep Java happy. -
FormEntry
public 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.- Parameters:
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.
-
-
Method Details
-
addToGui
Overrides the IDV method so that the McIDAS-V support request form will wrap lines in the "Description" field.- Overrides:
addToGuiin classHttpFormEntry- Parameters:
guiComps- List to which this instance should be added.
-
getValue
Since the IDV doesn't provide a getComponent foraddToGui, we must make ourcomponentfield local to this class. Hijacks any value requests so that the localcomponentfield is queried, not the IDV's.- Overrides:
getValuein classHttpFormEntry- Returns:
- Contents of form.
-
setValue
Hijacks any requests to set thecomponentfield's text.- Overrides:
setValuein classHttpFormEntry
-