ikg.tools.simpleInput
Class SimpleInput

java.lang.Object
  extended by ikg.tools.simpleInput.SimpleInput

public class SimpleInput
extends java.lang.Object

Class SimpleInput - input class for input of simple input types via simple dialog box. eg. int, char, String,float or boolean.


Constructor Summary
SimpleInput()
           
 
Method Summary
 boolean getBoolean(java.lang.String prompt)
          boolean selection from the user via a simple dialog.
 boolean getBoolean(java.lang.String prompt, java.lang.String trueText, java.lang.String falseText)
          boolean selection from the user via a simple dialog.
 char getChar(java.lang.String prompt)
          char input from the user via a simple dialog.
 float getFloat(java.lang.String prompt)
          returns a float input from the user via a simple dialog.
 int getInt(java.lang.String prompt)
          returns integer input from the user via a simple dialog.
 java.lang.String getString(java.lang.String prompt)
          String input from the user via a simple dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInput

public SimpleInput()
Method Detail

getString

public java.lang.String getString(java.lang.String prompt)
String input from the user via a simple dialog.

Parameters:
prompt - the message string to be displayed inside dialog
Returns:
String input from the user.

getChar

public char getChar(java.lang.String prompt)
char input from the user via a simple dialog.

Parameters:
prompt - the message string to be displayed inside dialog
Returns:
char input from the user.

getBoolean

public boolean getBoolean(java.lang.String prompt,
                          java.lang.String trueText,
                          java.lang.String falseText)
boolean selection from the user via a simple dialog.

Parameters:
prompt - message to appear in dialog
trueText - message to appear on true "button"
falseText - message to appear on "false" button
Returns:
boolean selection from the user

getBoolean

public boolean getBoolean(java.lang.String prompt)
boolean selection from the user via a simple dialog.

Parameters:
prompt - message to appear in dialog
Returns:
boolean selection from the user

getInt

public int getInt(java.lang.String prompt)
returns integer input from the user via a simple dialog.

Parameters:
prompt - the message string to be displayed inside dialog
Returns:
the input integer

getFloat

public float getFloat(java.lang.String prompt)
returns a float input from the user via a simple dialog.

Parameters:
prompt - the message string to be displayed inside dialog
Returns:
the input float