edu.wisc.ssec.mcidasv.ui
Class UIManager.FormEntry

java.lang.Object
  extended by ucar.unidata.ui.HttpFormEntry
      extended by edu.wisc.ssec.mcidasv.ui.UIManager.FormEntry
Enclosing class:
UIManager

private static class UIManager.FormEntry
extends HttpFormEntry

A type of HttpFormEntry that supports line wrapping for text area entries.

See Also:
HttpFormEntry

Field Summary
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.
 
Fields inherited from class ucar.unidata.ui.HttpFormEntry
TYPE_AREA, TYPE_FILE, TYPE_HIDDEN, TYPE_INPUT, TYPE_LABEL
 
Constructor Summary
UIManager.FormEntry()
          Required to keep Java happy.
UIManager.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.
 
Method Summary
 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.
 
Methods inherited from class ucar.unidata.ui.HttpFormEntry
browse, checkEntries, doPost, getLabel, getName, hidden, makeUI, ok, okToPost, showUI, showUI, showUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private String value
Initial contents of this entry.


wrap

private boolean wrap
Whether or not the JTextArea should wrap lines.


type

private int type
Entry type. Used to remain compatible with the IDV.


rows

private int rows
Number of rows in the JTextArea.


cols

private int cols
Number of columns in the JTextArea.


component

private JTextArea component
GUI representation of this entry.

Constructor Detail

UIManager.FormEntry

public UIManager.FormEntry()
Required to keep Java happy.


UIManager.FormEntry

public UIManager.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.

See Also:
HttpFormEntry.HttpFormEntry(int, String, String, String, int, int, boolean)
Method Detail

addToGui

public void addToGui(List guiComps)

Overrides the IDV method so that the McIDAS-V support request form will wrap lines in the "Description" field.

Overrides:
addToGui in class HttpFormEntry
See Also:
HttpFormEntry.addToGui(List)

getValue

public String getValue()

Since the IDV doesn't provide a getComponent for 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.

Overrides:
getValue in class HttpFormEntry
See Also:
HttpFormEntry.getValue()

setValue

public void setValue(String newValue)

Hijacks any requests to set the component field's text.

Overrides:
setValue in class HttpFormEntry
See Also:
HttpFormEntry.setValue(String)