|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.audit.extension.ExtensionBean
public abstract class ExtensionBean
An abstract base class for a bean defined from an extension manifest.
This class defines methods to get id and extensionId, and to set and get bean and property labels and descriptions. These methods do not follow JavaBeans conventions, to avoid interfering with a subclass that wishes to define a JavaBeans property named, for example, "label".
Subclass properties should be bound, which means in practice that the
setters should fire property change events. This class provides a complete
set of firePropertyChange
methods to make this convenient.
The id
"property" is used to identify the bean for purposes
of determining equality and for marshalling and unmarshalling instances.
Field Summary | |
---|---|
static java.lang.String |
DESCRIPTION_KEY
The key for the description of a bean or bean property. |
static java.lang.String |
LABEL_KEY
The key for the label of a bean or bean property. |
static java.lang.String |
SHORT_LABEL_KEY
The key for the short label of a bean. |
static java.lang.String |
TIP_KEY
The key for the tip of a bean or bean property. |
Constructor Summary | |
---|---|
protected |
ExtensionBean()
Creates a bean. |
protected |
ExtensionBean(java.lang.String id,
java.lang.String extensionId)
Creates a bean. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
protected void |
copyInternalState(ExtensionBean copy,
java.util.IdentityHashMap<java.lang.Object,java.lang.Object> context)
Copies internal subclass state as part of creating a copy of this bean. |
ExtensionBean |
createCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> context)
Creates a copy of this bean. |
java.lang.String |
description()
Gets the localized description of this bean. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
extensionId()
Gets the extension id that defines this bean. |
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object[] oldValue,
java.lang.Object[] newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
java.lang.String |
formattedString(java.lang.String key)
Gets a localized string for this bean. |
java.lang.String |
formattedString(java.lang.String key,
java.lang.Object context)
Gets a localized string for this bean. |
int |
hashCode()
|
java.lang.String |
id()
Gets the unique identifier of this bean. |
java.lang.String |
label()
Gets the localized label of this bean, or null if none. |
java.lang.String |
labelOrId()
Gets the localized label of this bean, or the id if none. |
void |
logError(java.lang.String message,
java.lang.Object... parameters)
Logs an error message related to this extension bean. |
void |
logWarning(java.lang.String message,
java.lang.Object... parameters)
Logs an error message related to this extension bean. |
java.lang.String |
propertyDescription(java.lang.String propertyName)
Gets the localized description of a property of this bean, or null if none. |
java.lang.String |
propertyLabel(java.lang.String propertyName)
Gets the localized label of a property of this bean, or null if none. |
java.lang.String |
propertyString(java.lang.String propertyName,
java.lang.String kind)
Gets a localized string for a property of this bean. |
java.lang.String |
propertyTip(java.lang.String propertyName)
Gets the localized tip text of a property of this bean, or null if none. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
protected void |
setCompatibilityBundle(java.util.ResourceBundle bundle,
java.lang.String prefix)
|
void |
setStrings(java.util.Map<java.lang.String,java.lang.String> strings)
Sets localized strings for this bean. |
java.util.Map<java.lang.String,DeferredSetter> |
setters()
Gets the deferred setters for this transform. |
java.lang.String |
shortLabel()
Gets the localized short label of this bean, or null if none. |
java.lang.String |
string(java.lang.String key)
Gets a localized string for this bean. |
java.util.Map<java.lang.String,java.lang.String> |
strings()
Gets the localized strings for this bean. |
java.lang.String |
tip()
Gets the localized tip text of this bean, or null if none. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LABEL_KEY
labelOrId()
,
propertyLabel(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String SHORT_LABEL_KEY
shortLabel()
,
Constant Field Valuespublic static final java.lang.String TIP_KEY
tip()
,
propertyTip(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String DESCRIPTION_KEY
description()
,
propertyDescription(java.lang.String)
,
Constant Field ValuesConstructor Detail |
---|
protected ExtensionBean()
id
and extensionId
fields.
protected ExtensionBean(java.lang.String id, java.lang.String extensionId)
id
- The unique identifier of this bean.extensionId
- The id of the extension which created this bean.Method Detail |
---|
public ExtensionBean createCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> context) throws java.lang.reflect.InvocationTargetException
ExtensionBean
state is copied.
copyInternalState(oracle.jdeveloper.audit.extension.ExtensionBean, java.util.IdentityHashMap)
is invoked to allow subclasses to copy
their internal state.
context
- A map which allows subclasses to preserve object identity
when copying a graph of extension beans.
java.lang.reflect.InvocationTargetException
protected void copyInternalState(ExtensionBean copy, java.util.IdentityHashMap<java.lang.Object,java.lang.Object> context) throws java.lang.reflect.InvocationTargetException
copy
- The partially initialized copy.context
- A map which allows subclasses to preserve object identity
when copying a graph of extension beans.
java.lang.reflect.InvocationTargetException
createCopy(java.util.IdentityHashMap)
public java.lang.String id()
public java.lang.String extensionId()
public java.util.Map<java.lang.String,DeferredSetter> setters()
public void logError(java.lang.String message, java.lang.Object... parameters)
public void logWarning(java.lang.String message, java.lang.Object... parameters)
public final java.lang.String labelOrId()
label()
public java.lang.String label()
LABEL_KEY
public java.lang.String shortLabel()
SHORT_LABEL_KEY
public java.lang.String tip()
TIP_KEY
public java.lang.String description()
DESCRIPTION_KEY
public java.lang.String propertyLabel(java.lang.String propertyName)
LABEL_KEY
public java.lang.String propertyTip(java.lang.String propertyName)
TIP_KEY
public java.lang.String propertyDescription(java.lang.String propertyName)
TIP_KEY
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void setCompatibilityBundle(java.util.ResourceBundle bundle, java.lang.String prefix)
public java.lang.String string(java.lang.String key)
key
- the bean-defined kind of the localized string to get.public java.lang.String formattedString(java.lang.String key)
key
- the bean-defined key of the localized string to get.public java.lang.String formattedString(java.lang.String key, java.lang.Object context)
key
- the bean-defined key of the localized string to get.context
- the contextpublic void setStrings(java.util.Map<java.lang.String,java.lang.String> strings)
public java.util.Map<java.lang.String,java.lang.String> strings()
public java.lang.String propertyString(java.lang.String propertyName, java.lang.String kind)
kind
- the bean-defined kind of localized string to get.propertyName
- the name of the property.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object[] oldValue, java.lang.Object[] newValue)
public void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
public void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
public void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
public void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
public void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |