站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.1

WizardValidationException (NetBeans Dialogs API) - NetBeans API Javadoc 5.5.1

org.openide.dialogs 6.5.31

org.openide
Class WizardValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openide.WizardValidationException
All Implemented Interfaces:
Serializable

public final class WizardValidationException
extends Exception

The exception informs about fail in wizard panel validation and provides a localized description what's wrong. Also can return JComponent which should be focused to correct wrong values.

Since:
4.28
See Also:
Serialized Form

Constructor Summary
WizardValidationException(JComponent source, String message, String localizedMessage)
          Creates a new exception instance.
 
Method Summary
 String getLocalizedMessage()
           
 JComponent getSource()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WizardValidationException

public WizardValidationException(JComponent source,
                                 String message,
                                 String localizedMessage)
Creates a new exception instance.

Parameters:
source - component which should have focus to correct wrong values
message - the detail message
localizedMessage - description notifies an user what value must be corrected
Method Detail

getSource

public JComponent getSource()
Returns:
JComponent for request focus to correct wrong values or null if there is no useful component to focus it

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable
Returns:
description will notifies an user what value must be corrected

org.openide.dialogs 6.5.31

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.