ccs.utils
Class SenseStringDialog

java.lang.Object
  extended by ccs.utils.SenseStringDialog

public class SenseStringDialog
extends java.lang.Object

As StringDialog, except that an extra checkbox is provided for the user to dictate case-sensitivity. Clearly this is more specialised than StringDialog.


Constructor Summary
SenseStringDialog(java.awt.Frame frame, java.lang.String title)
          Constructs a new dialog which is initially invisible.
 
Method Summary
 java.lang.String getResult()
          Returns the result; the string entered if the user selects OK, null for cancel.
 boolean getSense()
           
 void show()
          Displays the dialog, modally: the app will block until the user clears the dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenseStringDialog

public SenseStringDialog(java.awt.Frame frame,
                         java.lang.String title)
Constructs a new dialog which is initially invisible.

Parameters:
frame - The parent frame; may be null.
title - The title of the dialog.
Method Detail

show

public void show()
Displays the dialog, modally: the app will block until the user clears the dialog.


getResult

public java.lang.String getResult()
Returns the result; the string entered if the user selects OK, null for cancel. If the user typed nothing, an empty string is returned (and not null).


getSense

public boolean getSense()