Class TLcdAWTEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TLcdTouchEvent, TLspNextCreateStepEvent

public class TLcdAWTEvent extends AWTEvent

The base class for all non-standard hardware input events.

In order for a Component to handle this TLcdAWTEvent, it should override the java.awt.Component#processEvent(java.awt.AWTEvent) method to accept the new events, e.g.:

Component component = new Component(){
@Override
protected void processEvent( AWTEvent aEvent ) {
if ( aEvent instanceof TLcdAWTEvent ){
handleAWTEvent( ( TLcdAWTEvent ) aEvent );
} else {
super.processEvent( aEvent );
}
}
private void handleAWTEvent( TLcdAWTEvent aEvent ){
//handle the event
}
};
A typical component might implement ILcdAWTEventSource and dispatch all received TLcdAWTEvents to the registered listeners.
Since:
10.0
See Also:
  • Constructor Details Link icon

    • TLcdAWTEvent Link icon

      public TLcdAWTEvent(Object aSource, int aEventType)
      Create a new TLcdAWTEvent.
      Parameters:
      aSource - the object where the event originated
      aEventType - the event type
      Since:
      2020.0