public class TestManagedListener extends java.lang.Object implements IManagedUpdateableListener
Type | Property and Description |
---|---|
boolean |
got
Checks if the listener has received an PROPERTY type notification and
resets its state for the PROPERTY type to the original, unnotified state.
|
Constructor and Description |
---|
TestManagedListener(java.util.ArrayList<SubscriptionType> types)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<SubscriptionType> |
getSubscriptions(IManagedUpdateable source)
Polls the listener for a list of the types of events it wants to receive
from the given source.
|
boolean |
gotAll()
Checks if the listener has received an ALL type notification and resets
its state for the ALL type to the original, unnotified state.
|
boolean |
gotChild()
Checks if the listener has received a CHILD type notification and resets
its state for the CHILD type to the original, unnotified state.
|
boolean |
gotProperty()
Checks if the listener has received an PROPERTY type notification and
resets its state for the PROPERTY type to the original, unnotified state.
|
boolean |
gotSelection()
Checks if the listener has received an SELECTION type notification and
resets its state for the SELECTION type to the original, unnotified
state.
|
boolean |
gotTransformation()
Checks if the listener has received an TRANSFORMATION type notification
and resets its state for the TRANSFORMATION type to the original,
unnotified state.
|
boolean |
gotWireframe()
Checks if the listener has received an WIREFRAME type notification and
resets its state for the WIREFRAME type to the original, unnotified
state.
|
void |
update(IManagedUpdateable component,
SubscriptionType[] types)
Receive an update, including the source component and type of event that
triggered the update.
|
public boolean gotProperty
public TestManagedListener(java.util.ArrayList<SubscriptionType> types)
types
- The list of types of events this listener will receive.public java.util.ArrayList<SubscriptionType> getSubscriptions(IManagedUpdateable source)
IManagedUpdateableListener
getSubscriptions
in interface IManagedUpdateableListener
source
- The object which this listener will listen topublic void update(IManagedUpdateable component, SubscriptionType[] types)
IManagedUpdateableListener
update
in interface IManagedUpdateableListener
component
- The updateable component the update is coming fromtypes
- The event type that of the updatepublic boolean gotAll()
public boolean gotChild()
public boolean gotProperty()
public boolean gotSelection()
public boolean gotTransformation()
public boolean gotWireframe()