Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.gui.flowin
Class InputPopup  view InputPopup download InputPopup.java

java.lang.Object
  extended bycom.imagero.gui.flowin.InputPopup

public class InputPopup
extends java.lang.Object

With InputPopup it is possible to show popup with JTextField. When popup is closed ActionEvent is fired with content of JTextField as action command. If isCanceled() returns true then contents of action command should be ignored. Popup is closed if JTextField lose focus or user has pressed escape key - in both cases isCanceled() returns true, or if user pressed return key - in this case isCanceled() returns false.


Field Summary
(package private)  java.awt.event.ActionListener actionListener
           
(package private)  boolean canceled
           
(package private)  javax.swing.JTextField input
           
(package private)  javax.swing.JLabel label
           
(package private)  java.awt.Component owner
           
(package private)  javax.swing.JWindow window
           
 
Constructor Summary
InputPopup(java.awt.Component owner, javax.swing.Icon icon, java.lang.String s)
           
InputPopup(java.awt.Component owner, java.lang.String s)
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
           
protected  javax.swing.JWindow getWindow()
           
 boolean isCanceled()
           
 void removeActionListener(java.awt.event.ActionListener l)
           
 void showPopup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

javax.swing.JTextField input

window

javax.swing.JWindow window

owner

java.awt.Component owner

label

javax.swing.JLabel label

actionListener

java.awt.event.ActionListener actionListener

canceled

boolean canceled
Constructor Detail

InputPopup

public InputPopup(java.awt.Component owner,
                  java.lang.String s)

InputPopup

public InputPopup(java.awt.Component owner,
                  javax.swing.Icon icon,
                  java.lang.String s)
Method Detail

getWindow

protected javax.swing.JWindow getWindow()

showPopup

public void showPopup()

addActionListener

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

removeActionListener

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

isCanceled

public boolean isCanceled()