Venice 0.7beta

org.mov.ui
Class ExpressionQuery

java.lang.Object
  extended by org.mov.ui.ExpressionQuery

public class ExpressionQuery
extends java.lang.Object

A dialog used for querying the user for an expression string.

Author:
Andrew Leppard

Method Summary
static java.lang.String getExpression(javax.swing.JDesktopPane parent, java.lang.String title, java.lang.String prompt)
          Open a new ExpressionQuery dialog.
static java.lang.String getExpression(javax.swing.JDesktopPane parent, java.lang.String title, java.lang.String prompt, java.lang.String defaultExpression)
          Open a new ExpressionQuery dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExpression

public static java.lang.String getExpression(javax.swing.JDesktopPane parent,
                                             java.lang.String title,
                                             java.lang.String prompt)
Open a new ExpressionQuery dialog. Ask the user to enter an expression string. Parse this string and check for validity, if the string is not valid the user will be asked to enter a valid string.

Parameters:
parent - the parent desktop
title - the title of the dialog
Returns:
the expression the user entered or null if the user cancelled the dialog

getExpression

public static java.lang.String getExpression(javax.swing.JDesktopPane parent,
                                             java.lang.String title,
                                             java.lang.String prompt,
                                             java.lang.String defaultExpression)
Open a new ExpressionQuery dialog. Ask the user to enter an expression string. Parse this string and check for validity, if the string is not valid the user will be asked to enter a valid string.

Parameters:
parent - the parent desktop
title - the title of the dialog
prompt - the prompt
defaultExpression - default expression string
Returns:
the expression the user entered or null if the user cancelled the dialog

Venice 0.7beta