|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
oracle.javatools.resourcebundle.ResourceBundleEvent
public final class ResourceBundleEvent
A ResourceBundleEvent is fired when the contents of a
ResourceBundleWrapper changes. A ResourceBundleEvent object is sent as an
argument to the ResourceBundleListner methods.
A null value may be used in for either or both text and metadata when the
values are not known, and always for REMOVED messages. key can
only be null if the event type is UNKNOWN.
| Nested Class Summary | |
|---|---|
static class |
ResourceBundleEvent.EventType
Type (ADDED, REMOVED, or MODIFIED) represented by this EventObject. |
| Field Summary | |
|---|---|
protected ResourceBundleEvent.EventType |
eventType
|
protected java.lang.String |
key
|
protected java.util.Map<java.lang.String,java.lang.String> |
metadata
|
protected java.lang.String |
text
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ResourceBundleEvent(ResourceBundleWrapper source)
Constructor for creating an UNKNOWN event |
|
ResourceBundleEvent(ResourceBundleWrapper source,
java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
ResourceBundleEvent.EventType eventType)
Constructs a new ResourceBundleEvent with the specified source, key, text, and metadata of the specified type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getKey()
The key identified by this event. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
The metdata identified by this event, or null |
ResourceBundleWrapper |
getSource()
The ResourceBundleWrapper on which the Event initially occurred. |
java.lang.String |
getText()
The new translatable text identified by this event, or null |
| Methods inherited from class java.util.EventObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String key
protected java.lang.String text
protected java.util.Map<java.lang.String,java.lang.String> metadata
protected ResourceBundleEvent.EventType eventType
| Constructor Detail |
|---|
public ResourceBundleEvent(ResourceBundleWrapper source,
java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
ResourceBundleEvent.EventType eventType)
This method throws an IllegalArgumentExceptionif source
or is null or keyis null and the event type is not UNKNOWN.
textand metadatamay both be null.
source - The source ResourceBundleWrapper for this event.key - The key represented by this event.text - The translable text identified by the key.metadata - Any metadata associated with the key.eventType - Type of event.ResourceBundleWrapper,
ResourceBundleEvent.EventTypepublic ResourceBundleEvent(ResourceBundleWrapper source)
UNKNOWN event
source - The source ResourceBundleWrapper for this event.| Method Detail |
|---|
public ResourceBundleWrapper getSource()
ResourceBundleWrapper on which the Event initially occurred.
getSource in class java.util.EventObjectpublic java.lang.String getKey()
public java.lang.String getText()
null
nullpublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
null
null
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||