bb.gui
Class DialogInputSecure.DialogTask

java.lang.Object
  extended by bb.gui.DialogInputSecure.DialogTask
All Implemented Interfaces:
Runnable
Enclosing class:
DialogInputSecure

private static class DialogInputSecure.DialogTask
extends Object
implements Runnable

Bridges the requirement of getInputSecure that any thread can call that method with the requirement of the constructor that only EventQueue's dispatch thread can call it.


Field Summary
private  String header
           
private  boolean modal
           
private  int numberCharsMax
           
private  Frame parent
           
private  String prompt
           
private  String title
           
private  char[] userInput
           
 
Constructor Summary
private DialogInputSecure.DialogTask(Frame parent, String title, boolean modal, String header, String prompt, int numberCharsMax)
           
 
Method Summary
 char[] getUserInput()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private final Frame parent

title

private final String title

modal

private final boolean modal

header

private final String header

prompt

private final String prompt

numberCharsMax

private final int numberCharsMax

userInput

private char[] userInput
Constructor Detail

DialogInputSecure.DialogTask

private DialogInputSecure.DialogTask(Frame parent,
                                     String title,
                                     boolean modal,
                                     String header,
                                     String prompt,
                                     int numberCharsMax)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getUserInput

public char[] getUserInput()
                    throws IllegalStateException
Throws:
IllegalStateException