hades.gui
Class StringDialog
java.lang.Object
hades.gui.StringDialog
- Direct Known Subclasses:
- AWTStringDialog, JStringDialog
- public abstract class StringDialog
- extends java.lang.Object
StringDialog provides a generic dialog popup window to get a text
string from the user.
It contains a textfield, an "OK", and a "Cancel" button.
The user should enter a valid string (e.g. an URL name) into the textfield
and press either "OK" to confirm the string or "Cancel" to quit.
StringDialog also implements the WindowListener interface, in order to
return "Cancel" on window-close events.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringDialog
public StringDialog()
createStringDialog
public static StringDialog createStringDialog(java.awt.Frame parent,
java.lang.String title,
java.lang.String prompt)
- a factory method to create a StringDialog
addActionListener
public abstract void addActionListener(java.awt.event.ActionListener AL)
setPrompt
public abstract void setPrompt(java.lang.String prompt)
setText
public abstract void setText(java.lang.String s)
getText
public abstract java.lang.String getText()
selectText
public abstract void selectText(boolean b)
getDialog
public abstract java.awt.Dialog getDialog()
getFrame
public abstract java.awt.Frame getFrame()
getTextComponent
public abstract java.awt.Component getTextComponent()