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 SummaryConstructorsConstructorDescription- ViewTransactionCommListener- (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 SummaryModifier and TypeMethodDescription- 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 Details- ViewTransactionCommListenerConstructor for a Panel View.- Parameters:
- editor- Potential panel editor instance, may be null.
- panel- The panel to view.
 
- ViewTransactionCommListenerpublic 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.
 
- ViewTransactionCommListenerpublic 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- onConnectionCalled when a connection is established.- Specified by:
- onConnectionin interface- ITransactionProcessor
 
- processTransactionProcess 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.
 
- onPauseCalled when a connection is paused.- Specified by:
- onPausein interface- ITransactionProcessor
 
- onReconnectedCalled when a connection is reconnected.- Specified by:
- onReconnectedin interface- ITransactionProcessor
 
- onDisposedCalled when a connection is disposed of.- Specified by:
- onDisposedin interface- ITransactionProcessor
 
- disposepublic void dispose()Dispose!