    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class ncsa.horizon.awt.LabeledField

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----ncsa.horizon.awt.LabeledField

public class LabeledField
extends Panel

A labeled text field.

##

label
value

##

LabeledField(String)
  Create a new labeled text field.

##

getLabel()
  Get the label.
getValue()
  Get the text field value.
mouseEnter(Event, int, int)
mouseExit(Event, int, int)
setLabel(String)
  Set the label.
setValue(int)
  Set the text field value.
setValue(String)
  Set the text field value.
toString()
  Return a String version of the conmponent.

##

label

      protected Label label

value

      protected TextField value

##

LabeledField

      public LabeledField(String l)

  Create a new labeled text field.
  Parameters:
    l - The label for the text field.

##

setLabel

      public void setLabel(String l)

  Set the label.
  Parameters:
    l - The label for the text field.

getLabel

      public String getLabel()

  Get the label.
  Returns:
    The label for the text field.

getValue

      public String getValue()

  Get the text field value.
  Returns:
    The value of the text field.

mouseEnter

      public boolean mouseEnter(Event event,
                                int x,
                                int y)

Overrides:
  mouseEnter in class Component

mouseExit

      public boolean mouseExit(Event event,
                               int x,
                               int y)

Overrides:
  mouseExit in class Component

setValue

      public void setValue(String l)

  Set the text field value.
  Parameters:
    l - The value of the text field.

setValue

      public void setValue(int n)

  Set the text field value.
  Parameters:
    n - The value of the text field.

toString

      public String toString()

  Return a String version of the conmponent.
  Returns:
    The value of the label and text fields.
  Overrides:
    toString in class Component

    All Packages  Class Hierarchy  This Package  Previous  Next  Index