|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xngr.context.ServiceContext
public abstract class ServiceContext
The context for an object, containing all the associated services and actions.
| Method Summary | |
|---|---|
void |
addServiceContextListener(ServiceContextListener listener)
Adds a service context listener, duplicate listeners will only be added once. |
void |
dispose()
Removes all listeners and the reference to the manager. |
protected void |
fireActionsChanged(Action action,
ServiceContextEvent.Type type)
Fire an event when an action has been changed, added or removed. |
protected void |
fireMarkersChanged(Marker marker,
ServiceContextEvent.Type type)
Fire an event when a marker has been changed, added or removed. |
protected void |
fireServicesChanged(Service service,
ServiceContextEvent.Type type)
Fire an event when a service has been changed, added or removed. |
java.util.List<Action> |
getActions()
|
abstract java.util.List<Marker> |
getMarkers()
|
abstract java.util.List<Service> |
getServices()
|
void |
removeServiceContextListener(ServiceContextListener listener)
Remove the service context listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.List<Action> getActions()
public abstract java.util.List<Service> getServices()
public abstract java.util.List<Marker> getMarkers()
public void addServiceContextListener(ServiceContextListener listener)
listener - the listener to add to the listener list.public void removeServiceContextListener(ServiceContextListener listener)
listener - the listener to be removed from the listener list.
protected void fireMarkersChanged(Marker marker,
ServiceContextEvent.Type type)
marker - the changed, added or removed marker.type - the event-type.
protected void fireServicesChanged(Service service,
ServiceContextEvent.Type type)
service - the changed, added or removed service.type - the event-type.
protected void fireActionsChanged(Action action,
ServiceContextEvent.Type type)
action - the changed, added or removed action.type - the event-type.public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||