All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.EditField

java.lang.Object
   |
   +----netscape.application.View
           |
           +----netscape.application.ContainerView
                   |
                   +----semper.tinguin2.EditField

public class EditField
extends ContainerView
implements Target, Result
Creates an EditField within a View for use with a FreeDialog.

Version:
0.1
Author:
Christian Haag
See Also:
FreeDialog

Constructor Index

 o EditField(String, String)
Creates an EditField.
 o EditField(String, String, boolean)
Creates an EditField.
 o EditField(String, String, boolean, boolean)
Creates an EditField.

Method Index

 o getEditValue()
 o getResult()
Implementation of the Result Interface.
 o getTextField()
 o inputIsEmpty()
 o isMustInput()
 o performCommand(String, Object)
Implementation of the Target Interface.

Constructors

 o EditField
 public EditField(String text,
                  String edit)
Creates an EditField.

Parameters:
text - The text at the left side of the editable field.
edit - The text displayed by the editable field.
 o EditField
 public EditField(String text,
                  String edit,
                  boolean isPassword)
Creates an EditField.

Parameters:
text - The text at the left side of the editable field.
edit - The text displayed by the editable field.
mustInput - The dialog only ends if the user enters something
 o EditField
 public EditField(String text,
                  String edit,
                  boolean isPassword,
                  boolean mustInput)
Creates an EditField.

Parameters:
text - The text at the left side of the editable field.
edit - The text displayed by the editable field.
mustInput - The dialog only ends if the user enters something
isPassword - The input is hidden. Only * are shown instead.

Methods

 o isMustInput
 public boolean isMustInput()
Returns:
true if the EditField is a must input field
 o inputIsEmpty
 public boolean inputIsEmpty()
Returns:
true if the nothing is input
 o getTextField
 public String getTextField()
Returns:
The value of the text before the edit field
 o getEditValue
 public String getEditValue()
Returns:
The value of the editable text
 o getResult
 public Hashtable getResult()
Implementation of the Result Interface.

 o performCommand
 public void performCommand(String command,
                            Object data)
Implementation of the Target Interface. You should never call this method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index