public class StaleEvent extends ObservableEvent
IObservable
object is
about to change. Note that this event is only fired when an observable
becomes stale, not when it becomes unstale; an observable that becomes
unstale should always fire a change event. Staleness can be used (for
example) to notify listeners when an observable has started a background
thread for updating its state. Clients can safely ignore staleness.IObservable.isStale()
,
Serialized Formsource
Constructor and Description |
---|
StaleEvent(IObservable source)
Creates a new stale event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(IObservablesListener listener)
Dispatch this event to the given listener.
|
protected Object |
getListenerType()
Returns a unique object used for distinguishing this event type from
others.
|
getObservable
getSource, toString
public StaleEvent(IObservable source)
source
- the source observableprotected void dispatch(IObservablesListener listener)
ObservableEvent
dispatch
in class ObservableEvent
listener
- the listener that should handle the eventprotected Object getListenerType()
ObservableEvent
getListenerType
in class ObservableEvent
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.