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
ConstructorDescriptionViewTransactionCommListener
(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 TypeMethodDescriptionvoid
dispose()
Dispose!void
onConnection
(SessionTransMgr manager) Called when a connection is established.void
onDisposed
(SessionTransMgr manager) Called when a connection is disposed of.void
onPause
(SessionTransMgr manager) Called when a connection is paused.void
onReconnected
(SessionTransMgr manager) Called when a connection is reconnected.void
processTransaction
(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:
onConnection
in 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:
processTransaction
in interfaceITransactionProcessor
- Parameters:
trans
- The transaction to process.
onPause
Called when a connection is paused.- Specified by:
onPause
in interfaceITransactionProcessor
onReconnected
Called when a connection is reconnected.- Specified by:
onReconnected
in interfaceITransactionProcessor
onDisposed
Called when a connection is disposed of.- Specified by:
onDisposed
in interfaceITransactionProcessor
dispose
public void dispose()Dispose!