Class AbstractGateManagedListener
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.base.AbstractGateManagedListener
-
- All Implemented Interfaces:
IGateManagedListener
public abstract class AbstractGateManagedListener extends Object implements IGateManagedListener
Abstract implementation of the gate managed event listener.Clients must dispose instances after use.
On receiving an incoming event, implementors must call
notifyGateOnIncomingEvent()
method.
-
-
Constructor Summary
Constructors Constructor Description AbstractGateManagedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes the listener.protected void
notifyGateOnIncomingEvent()
Notifies the gate managing this listener that it has received an incoming event.void
setEventGate(IEventGate eventGate)
Sets the event gate which will manage this listener.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.md.ui.editor.base.IGateManagedListener
startListening, stopListening
-
-
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IGateManagedListener
Disposes the listener.- Specified by:
dispose
in interfaceIGateManagedListener
-
setEventGate
public void setEventGate(IEventGate eventGate)
Description copied from interface:IGateManagedListener
Sets the event gate which will manage this listener.- Specified by:
setEventGate
in interfaceIGateManagedListener
- Parameters:
eventGate
- the event gate
-
notifyGateOnIncomingEvent
protected void notifyGateOnIncomingEvent()
Notifies the gate managing this listener that it has received an incoming event.
-
-