public class SecsEventHandler extends java.lang.Object implements SecsEventListener
Modifier and Type | Field and Description |
---|---|
static SecsEventHandler |
defaultHandler
This is the default handler used on this machine.
|
cvsRev
Constructor and Description |
---|
SecsEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(SecsEventListener newListener)
This will register the listener for ALL events.
|
void |
addListenerForId(SecsEventListener newListener,
int theEventId)
This will register a SecsEventListeners to receive a specific event by id.
|
static void |
defaultAddListenerForId(SecsEventListener newListener,
int theEventId)
This will register a SecsEventListeners to receive a specific event by id.
|
static void |
defaultRemoveListenerForId(SecsEventListener newListener)
This will unregister a SecsEventListeners from all events.
|
static void |
defaultRemoveListenerForId(SecsEventListener newListener,
int theEventId)
This will unregister a SecsEventListeners to receive a specific event by id.
|
static SecsEventHandler |
getDefaultHandler()
This will return the default handler for this machine.
|
void |
post(SecsEvent theEvent)
This will take a new event, and notify all listeners before returning.
|
void |
removeListener(SecsEventListener newListener)
This will remove all range of events that this listener was receiving.
|
void |
removeListenerForId(SecsEventListener newListener,
int theEventId)
This will remove a eventID that this listener was receiving.
|
void |
secsEvent(SecsEvent theEvent)
This is usually called by another SecsEventHandler.
|
java.lang.String |
toString()
Try to make the SecsEventHandlers display be a little more human readable.
|
public static SecsEventHandler defaultHandler
public void addListener(SecsEventListener newListener)
public void addListenerForId(SecsEventListener newListener, int theEventId)
public static void defaultAddListenerForId(SecsEventListener newListener, int theEventId)
public static void defaultRemoveListenerForId(SecsEventListener newListener)
public static void defaultRemoveListenerForId(SecsEventListener newListener, int theEventId)
public static SecsEventHandler getDefaultHandler()
public void post(SecsEvent theEvent)
public void removeListener(SecsEventListener newListener)
public void removeListenerForId(SecsEventListener newListener, int theEventId)
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.