Package com.iizigo.panel
Class ViewTransactionCommListener
- java.lang.Object
- com.iizigo.panel.ViewTransactionCommListener
 
- All Implemented Interfaces:
- ITransactionProcessor
 - public class ViewTransactionCommListener extends java.lang.Object implements ITransactionProcessor Communication instance for any panel using web socket transaction to a panel view.- Author:
- Christopher Mindus
 
- Constructor Summary- Constructors - Constructor - Description - ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel)Constructor for a Panel View.- ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, java.lang.String lang, java.lang.String theme)Constructor for a Design Viewer.- ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel, Worker worker, java.lang.String lang, java.lang.String theme, boolean isDeviceCast)Constructor for a Design Viewer.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- 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 Detail- ViewTransactionCommListener- public ViewTransactionCommListener(PanelEditor editor, UIPanelBase panel) 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, java.lang.String lang, java.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, java.lang.String lang, java.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 Detail- onConnection- public void onConnection(SessionTransMgr manager) Called when a connection is established.- Specified by:
- onConnectionin interface- ITransactionProcessor
 
 - processTransaction- public void processTransaction(SessionTransMgr manager, ReadTransaction trans) 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 interface- ITransactionProcessor
- Parameters:
- trans- The transaction to process.
 
 - onPause- public void onPause(SessionTransMgr manager) Called when a connection is paused.- Specified by:
- onPausein interface- ITransactionProcessor
 
 - onReconnected- public void onReconnected(SessionTransMgr manager) Called when a connection is reconnected.- Specified by:
- onReconnectedin interface- ITransactionProcessor
 
 - onDisposed- public void onDisposed(SessionTransMgr manager) Called when a connection is disposed of.- Specified by:
- onDisposedin interface- ITransactionProcessor
 
 - dispose- public void dispose() Dispose!