com.objectplanet.survey.plugin
Class PluginBusAdmin

java.lang.Object
  extended by com.objectplanet.survey.plugin.PluginBusAdmin
All Implemented Interfaces:
IEventListener

Deprecated.

public class PluginBusAdmin
extends java.lang.Object
implements IEventListener

This class is opinio's event notification mechanism for administation type events. This class is deprecated. Use the new event mechanism in the com.objectplanet.survey.event and com.objectplanet.survey.event.events package.

Author:
Torgeir Punnerud
Created:
26. august 2002

Constructor Summary
PluginBusAdmin()
          Deprecated.  
 
Method Summary
static void addToBus(IPBComponent comp)
          Deprecated. Adds a component to the bus.
static IPBComponent[] getComponents()
          Deprecated. Returns an array of all components connected to the bus.
 void handleEvent(Event event)
          Deprecated. Listens to internal events, and passes them on to listeners (plugins).
static void removeFromBus(IPBComponent comp)
          Deprecated. Removes a component from the bus.
static void send(PluginBusEvent event)
          Deprecated. Sends an event to all components on the bus.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginBusAdmin

public PluginBusAdmin()
Deprecated. 
Method Detail

getComponents

public static IPBComponent[] getComponents()
Deprecated. 
Returns an array of all components connected to the bus.

Returns:
The components value

addToBus

public static void addToBus(IPBComponent comp)
Deprecated. 
Adds a component to the bus. It will receive all events sent on the bus.

Parameters:
comp - The component to add

removeFromBus

public static void removeFromBus(IPBComponent comp)
Deprecated. 
Removes a component from the bus.

Parameters:
comp - The component to remove

send

public static void send(PluginBusEvent event)
Deprecated. 
Sends an event to all components on the bus. The event will be sent to all components in turn, with the original sender receiving it last.

Parameters:
event - The event

handleEvent

public void handleEvent(Event event)
Deprecated. 
Listens to internal events, and passes them on to listeners (plugins). Must NOT be called from a plugin.

Specified by:
handleEvent in interface IEventListener
Parameters:
event - The event
See Also:
IEventListener.handleEvent(com.objectplanet.survey.event.Event)

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016