public static class ResourceMap.PropertyInjectionException extends RuntimeException
ResourceMap.injectComponent(java.awt.Component)
and
ResourceMap.injectComponents(java.awt.Component)
when a property value specified by
a resource can not be set.Constructor and Description |
---|
PropertyInjectionException(String msg,
String key,
Component component,
String propertyName)
Constructs an instance of this class with some useful information
about the failure.
|
Modifier and Type | Method and Description |
---|---|
Component |
getComponent()
Returns the component whose property could not be set
|
String |
getKey()
Returns the the name of resource whose value was to be used to set the property
|
String |
getPropertyName()
Returns the the name of property that could not be set
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PropertyInjectionException(String msg, String key, Component component, String propertyName)
msg
- the detail messagekey
- the name of the resourcecomponent
- the component whose property couldn't be setpropertyName
- the name of the component propertypublic String getKey()
public Component getComponent()
public String getPropertyName()
Copyright © 2009–2019. All rights reserved.