Venice 0.751beta

nz.org.venice.ui
Class TradingDateDialog

java.lang.Object
  extended bynz.org.venice.ui.TradingDateDialog

public class TradingDateDialog
extends java.lang.Object

Dialog for querying the user for a date.

Author:
Andrew Leppard
See Also:
TradingDate

Method Summary
static TradingDate getDate(javax.swing.JDesktopPane parent, java.lang.String title, java.lang.String prompt)
          Opens a new dialog asking the user to enter a date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDate

public static TradingDate getDate(javax.swing.JDesktopPane parent,
                                  java.lang.String title,
                                  java.lang.String prompt)
Opens a new dialog asking the user to enter a date. If the user enters an illegal date, a date that falls on a weekend or any date that we don't have data for, then the date will be rejected and the user will be asked to re-enter the date. The date will be returned or null if the user cancelled the dialog.

Parameters:
parent - the parent desktop
title - the title of the dialog
prompt - the prompt string
Returns:
the date

Venice 0.751beta