Class ncsa.horizon.awt.LabeledField
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.

Variable Index

 o label
 o value

Constructor Index

 o LabeledField(String)
Create a new labeled text field.

Method Index

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

Variables

 o label
  protected Label label
 o value
  protected TextField value

Constructors

 o LabeledField
  public LabeledField(String l)
Create a new labeled text field.
Parameters:
l - The label for the text field.

Methods

 o setLabel
  public void setLabel(String l)
Set the label.
Parameters:
l - The label for the text field.
 o getLabel
  public String getLabel()
Get the label.
Returns:
The label for the text field.
 o getValue
  public String getValue()
Get the text field value.
Returns:
The value of the text field.
 o mouseEnter
  public boolean mouseEnter(Event event,
                            int x,
                            int y)
Overrides:
mouseEnter in class Component
 o mouseExit
  public boolean mouseExit(Event event,
                           int x,
                           int y)
Overrides:
mouseExit in class Component
 o setValue
  public void setValue(String l)
Set the text field value.
Parameters:
l - The value of the text field.
 o setValue
  public void setValue(int n)
Set the text field value.
Parameters:
n - The value of the text field.
 o 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