|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEnginePropertyEvent
public class EnginePropertyEvent
Event issued when a value change request takes effect for
an EngineProperties
property.
Speech Engine
s have may knobs that may be adjusted through
EngineProperties
.
Changes to properties take place as follows:
get
and set
method Engine
may limit or reject value change requestsget
methods return the most recent value set
-
not a value waiting to take effect
set
methods may be asynchronous Engine
will apply a change as soon as possible EnginePropertyEvent
is issued when the change takes effect,
providing the old and new values at that time
EnginePropertyEvent
s are issued to EnginePropertyListener
s,
which are added with the addEnginePropertyListener
method.
Old and new values are represented by Object
s.
If the value is a primitive type, the corresponding Object
type
is used (e.g., Integer
for int
).
Engine
,
EngineProperties
,
EnginePropertyListener
Constructor Summary | |
---|---|
EnginePropertyEvent(EngineProperties source,
String propertyName,
Object oldValue,
Object newValue)
Constructs a new EnginePropertyEvent . |
Method Summary | |
---|---|
Object |
getNewValue()
Gets the new value for the property, expressed as an Object . |
Object |
getOldValue()
Gets the old value for the property, expressed as an Object . |
String |
getPropertyName()
Gets the name of the property that was changed. |
Object |
getSource()
Returns the Object on which the event initially occurred. |
String |
toString()
Returns a printable String . |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnginePropertyEvent(EngineProperties source, String propertyName, Object oldValue, Object newValue)
EnginePropertyEvent
.
source
- the EngineProperties
Object
for the propertypropertyName
- the name of the property that was changedoldValue
- the old value of the property.newValue
- the new value of the property.
IllegalArgumentException
- if source
is null
Method Detail |
---|
public String getPropertyName()
public Object getOldValue()
Object
.
Object
.public Object getNewValue()
Object
.
The new value may reflect a limit or rejection of the requested value.
Object
.public Object getSource()
Object
on which the event initially occurred.
Object
on which the event initially occurred.public String toString()
String
.
Useful for event-logging and debugging.
toString
in class Object
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.