dip.gui.dialog
Interface TextViewer.AcceptListener

Enclosing interface:
TextViewer

public static interface TextViewer.AcceptListener

AcceptListener: This class is called when the "Accept" button in clicked.


Method Summary
 boolean getCloseDialogAfterUnacceptable()
          If true, the dialog closes after unacceptable input is given (but a warning message could be displayed).
 boolean isAcceptable(TextViewer t)
          Determines if the text is acceptable.
 

Method Detail

isAcceptable

public boolean isAcceptable(TextViewer t)
Determines if the text is acceptable.

If it is acceptable (true) the dialog will close. If it is unacceptable (false), the dialog may close or stay open, depending upon the value returned by getCloseDialogAfterUnacceptable()


getCloseDialogAfterUnacceptable

public boolean getCloseDialogAfterUnacceptable()
If true, the dialog closes after unacceptable input is given (but a warning message could be displayed). If false, the dialog is not closed.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.