Package com.iizigo.panel
Class ViewTransactionCommListener
java.lang.Object
com.iizigo.panel.ViewTransactionCommListener
- All Implemented Interfaces:
ITransactionProcessor
Communication instance for any panel using web socket transaction to a panel view.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionViewTransactionCommListener(PanelEditor editor, UIPanelBase panel) Constructor for a Panel View.ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, String lang, String theme) Constructor for a Design Viewer.ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, String lang, String theme, boolean isDeviceCast) Constructor for a Design Viewer.Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose!voidonConnection(SessionTransMgr manager) Called when a connection is established.voidonDisposed(SessionTransMgr manager) Called when a connection is disposed of.voidonPause(SessionTransMgr manager) Called when a connection is paused.voidonReconnected(SessionTransMgr manager) Called when a connection is reconnected.voidprocessTransaction(SessionTransMgr manager, ReadTransaction trans) Process incoming transaction that itself can consist of several sub-transactions.
Constructor Details
ViewTransactionCommListener
Constructor for a Panel View.- Parameters:
editor- Potential panel editor instance, may be null.panel- The panel to view.
ViewTransactionCommListener
public ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, String lang, String theme) Constructor for a Design Viewer.- Parameters:
editor- Potential panel editor instance, may be null.panel- The panel to view.worker- The worker for the session, null if Panel View.lang- The language to use, null for default.theme- Requested theme, null for default.
ViewTransactionCommListener
public ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, String lang, String theme, boolean isDeviceCast) Constructor for a Design Viewer.- Parameters:
editor- Potential panel editor instance, may be null.panel- The panel to view.worker- The worker for the session, null if Panel View.lang- The language, null for none.theme- The theme, null for none.isDeviceCast- Flag for "device cast mode".
Method Details
onConnection
Called when a connection is established.- Specified by:
onConnectionin interfaceITransactionProcessor
processTransaction
Process incoming transaction that itself can consist of several sub-transactions.Management transaction are not present here, but GConstants.TRANS_NEXT_SERIAL that should call
manager.onNextSerialTransaction();.- Specified by:
processTransactionin interfaceITransactionProcessor- Parameters:
trans- The transaction to process.
onPause
Called when a connection is paused.- Specified by:
onPausein interfaceITransactionProcessor
onReconnected
Called when a connection is reconnected.- Specified by:
onReconnectedin interfaceITransactionProcessor
onDisposed
Called when a connection is disposed of.- Specified by:
onDisposedin interfaceITransactionProcessor
dispose
public void dispose()Dispose!