websphinx.util
Class PopupDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--websphinx.util.PopupDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
ConcatOptions, WorkbenchControlPanel

public class PopupDialog
extends java.awt.Dialog

See Also:
Serialized Form

Inner classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  int answer
           
static int CANCEL
           
(package private)  java.awt.Button cancelButton
           
(package private)  java.util.Vector listeners
           
static int NO
           
(package private)  java.awt.Button noButton
           
static int OK
           
(package private)  java.awt.Button okButton
           
(package private)  java.awt.Frame parent
           
(package private)  java.lang.String text
           
(package private)  java.awt.TextField textfield
           
static int YES
           
 
Fields inherited from class java.awt.Dialog
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title
 
Fields inherited from class java.awt.Window
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, showWithParent, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PopupDialog(java.awt.Frame parent, java.lang.String title, boolean modal)
           
PopupDialog(java.awt.Frame parent, java.lang.String title, boolean modal, java.lang.String question, java.lang.String initialEntry, java.lang.String okOrYes, java.lang.String no, java.lang.String cancel)
           
 
Method Summary
 void addPopupListener(PopupListener listener)
           
static java.lang.String ask(java.awt.Component comp, java.lang.String topic, java.lang.String question)
           
static java.lang.String ask(java.awt.Component comp, java.lang.String topic, java.lang.String question, java.lang.String defaultAnswer)
           
static java.lang.String askFilename(java.awt.Component comp, java.lang.String topic, java.lang.String defaultFilename, boolean loading)
           
 void close()
           
 int getAnswer()
           
static java.awt.Frame getFrame(java.awt.Component comp)
           
 java.lang.String getText()
           
 boolean handleEvent(java.awt.Event event)
           
static void main(java.lang.String[] args)
           
static boolean okcancel(java.awt.Component comp, java.lang.String topic, java.lang.String question)
           
 void removePopupListener(PopupListener listener)
           
 void show()
           
static void warn(java.awt.Component comp, java.lang.String topic, java.lang.String message)
           
static int yesnocancel(java.awt.Component comp, java.lang.String topic, java.lang.String question)
           
 
Methods inherited from class java.awt.Dialog
, addNotify, conditionalShow, constructComponentName, dispose, disposeImpl, getAccessibleContext, getTitle, hide, hideAndDisposeHandler, initIDs, interruptBlocking, isModal, isResizable, paramString, setModal, setResizable, setTitle
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, readObject, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

YES

public static final int YES

OK

public static final int OK

NO

public static final int NO

CANCEL

public static final int CANCEL

parent

java.awt.Frame parent

answer

int answer

text

java.lang.String text

textfield

java.awt.TextField textfield

okButton

java.awt.Button okButton

noButton

java.awt.Button noButton

cancelButton

java.awt.Button cancelButton

listeners

java.util.Vector listeners
Constructor Detail

PopupDialog

public PopupDialog(java.awt.Frame parent,
                   java.lang.String title,
                   boolean modal)

PopupDialog

public PopupDialog(java.awt.Frame parent,
                   java.lang.String title,
                   boolean modal,
                   java.lang.String question,
                   java.lang.String initialEntry,
                   java.lang.String okOrYes,
                   java.lang.String no,
                   java.lang.String cancel)
Method Detail

ask

public static java.lang.String ask(java.awt.Component comp,
                                   java.lang.String topic,
                                   java.lang.String question,
                                   java.lang.String defaultAnswer)

ask

public static java.lang.String ask(java.awt.Component comp,
                                   java.lang.String topic,
                                   java.lang.String question)

okcancel

public static boolean okcancel(java.awt.Component comp,
                               java.lang.String topic,
                               java.lang.String question)

yesnocancel

public static int yesnocancel(java.awt.Component comp,
                              java.lang.String topic,
                              java.lang.String question)

warn

public static void warn(java.awt.Component comp,
                        java.lang.String topic,
                        java.lang.String message)

askFilename

public static java.lang.String askFilename(java.awt.Component comp,
                                           java.lang.String topic,
                                           java.lang.String defaultFilename,
                                           boolean loading)

getFrame

public static java.awt.Frame getFrame(java.awt.Component comp)

show

public void show()
Overrides:
show in class java.awt.Dialog

handleEvent

public boolean handleEvent(java.awt.Event event)
Overrides:
handleEvent in class java.awt.Component

getAnswer

public int getAnswer()

getText

public java.lang.String getText()

addPopupListener

public void addPopupListener(PopupListener listener)

removePopupListener

public void removePopupListener(PopupListener listener)

close

public void close()

main

public static void main(java.lang.String[] args)