borland Packages  Class Hierarchy  jbcl.control Package  Index 

StringInputDialog class

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Window
                           +----java.awt.Dialog
                                   +----borland.jbcl.control.ButtonDialog
                                           +----borland.jbcl.control.StringInputDialog

About the StringInputDialog class

Variables  Constructors  Properties  Methods  Event Listeners

Implements ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener

The StringInputDialog component displays a dialog box with a single input box, or text field, in which the user can type text. The dialog box also contains two buttons: OK and Cancel.

To display the dialog box at runtime, call the show() method or set the visible property to true. When the user types in text in the input box and closes the dialog box, the text string is stored in the value property.

The dialog box has two buttons, OK and Cancel. Which button the user chooses to put away the dialog box is stored as the value of the result property. The title property contains the text that appears on the title bar of the dialog box's frame.

Usually you should StringInput instead of StringInputDialog. StringInput calls the constructor of StringInputDialog, but you can work with StringInput within the UI Designer and even display it at design time. You can set the properties of StringInputDialog only at runtime.


StringInputDialog variables

Variables implemented in borland.jbcl.control.ButtonDialog

Variables implemented in java.awt.Component

StringInputDialog constructors

StringInputDialog properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.control.ButtonDialog

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.awt.Dialog

Properties implemented in java.awt.Window

Properties implemented in java.lang.Object

StringInputDialog methods

Methods implemented in borland.jbcl.control.ButtonDialog

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Dialog

Methods implemented in java.awt.Window

Methods implemented in java.lang.Object

StringInputDialog event listeners


StringInputDialog constructors

StringInputDialog(java.awt.Frame)

  public StringInputDialog(java.awt.Frame frame)
Constructs a StringInputDialog dialog with the given frame.

Parameters:

frame
The parent frame of StringInputDialog.

StringInputDialog(java.awt.Frame, java.lang.String)

  public StringInputDialog(java.awt.Frame frame, java.lang.String title)

Constructs a StringInputDialog dialog with the given frame and title.

Parameters:

frame
The parent frame of StringInputDialog.
title
The text you want to appear on the title bar.

StringInputDialog(java.awt.Frame, java.lang.String, java.lang.String)

  public StringInputDialog(java.awt.Frame frame, java.lang.String title, java.lang.String value)

Constructs a StringInputDialog dialog with the given frame, title, and initial value.

Parameters:

frame
The parent frame of StringInputDialog.
title
The text you want to appear on the title bar.
value
The String that is in the input box..

StringInputDialog properties

value

 public String getValue()
 public void setValue(java.lang.String value)

Determines the string that appears in the input box of the StringInputDialog component.


StringInputDialog event listeners

This class is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

window

 public synchronized void addWindowListener(java.awt.event.WindowListener )
 public synchronized void removeWindowListener(java.awt.event.WindowListener )