Class EventGate
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.base.EventGate
-
- All Implemented Interfaces:
IEventGate
public abstract class EventGate extends Object implements IEventGate
Standard event gate.
-
-
Constructor Summary
Constructors Constructor Description EventGate()
Constructs an event gate in open state.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
activate()
Activates the gate.void
addEventListener(IGateManagedListener eventListener)
Adds a managed event listener to the manager.protected abstract void
close()
Handles the transition into CLOSED state.void
deactivate()
Deactivates the gate.void
dispose()
Disposes the gate.void
onIncomingEvent()
Notifies the gate that one of its managed listeners has received an incoming event.void
removeEventListener(IGateManagedListener eventGate)
Removes a managed event listener from the manager.protected abstract void
reopen()
Handles the transition from CLOSED into OPENED state.
-
-
-
Method Detail
-
onIncomingEvent
public void onIncomingEvent()
Description copied from interface:IEventGate
Notifies the gate that one of its managed listeners has received an incoming event.- Specified by:
onIncomingEvent
in interfaceIEventGate
-
addEventListener
public void addEventListener(IGateManagedListener eventListener)
Description copied from interface:IEventGate
Adds a managed event listener to the manager.- Specified by:
addEventListener
in interfaceIEventGate
- Parameters:
eventListener
- the managed event listener to add
-
removeEventListener
public void removeEventListener(IGateManagedListener eventGate)
Description copied from interface:IEventGate
Removes a managed event listener from the manager.- Specified by:
removeEventListener
in interfaceIEventGate
- Parameters:
eventGate
- the managed event listener to remove
-
activate
public void activate()
Description copied from interface:IEventGate
Activates the gate.- Specified by:
activate
in interfaceIEventGate
-
deactivate
public void deactivate()
Description copied from interface:IEventGate
Deactivates the gate.- Specified by:
deactivate
in interfaceIEventGate
-
dispose
public void dispose()
Description copied from interface:IEventGate
Disposes the gate.- Specified by:
dispose
in interfaceIEventGate
-
reopen
protected abstract void reopen()
Handles the transition from CLOSED into OPENED state.
-
close
protected abstract void close()
Handles the transition into CLOSED state.
-
-