Package org.jdesktop.application
Class ResourceMap.PropertyInjectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jdesktop.application.ResourceMap.PropertyInjectionException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ResourceMap
public static class ResourceMap.PropertyInjectionException extends java.lang.RuntimeException
Unchecked exception thrown byResourceMap.injectComponent(java.awt.Component)
andResourceMap.injectComponents(java.awt.Component)
when a property value specified by a resource can not be set.
-
-
Constructor Summary
Constructors Constructor Description PropertyInjectionException(java.lang.String msg, java.lang.String key, java.awt.Component component, java.lang.String propertyName)
Constructs an instance of this class with some useful information about the failure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Component
getComponent()
Returns the component whose property could not be setjava.lang.String
getKey()
Returns the the name of resource whose value was to be used to set the propertyjava.lang.String
getPropertyName()
Returns the the name of property that could not be set
-
-
-
Constructor Detail
-
PropertyInjectionException
public PropertyInjectionException(java.lang.String msg, java.lang.String key, java.awt.Component component, java.lang.String propertyName)
Constructs an instance of this class with some useful information about the failure.- Parameters:
msg
- the detail messagekey
- the name of the resourcecomponent
- the component whose property couldn't be setpropertyName
- the name of the component property
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Returns the the name of resource whose value was to be used to set the property- Returns:
- the resource name
-
getComponent
public java.awt.Component getComponent()
Returns the component whose property could not be set- Returns:
- the component
-
getPropertyName
public java.lang.String getPropertyName()
Returns the the name of property that could not be set- Returns:
- the property name
-
-