Show / Hide Table of Contents

Interface ILiveViewModel<TStatistics>

The ILiveViewModel interface, that view models wanting to support live views have to implement. The session listener that is docked onto has this interface as its dependancy to the viewmodel.

Namespace:
Assembly: .dll
Syntax
public interface ILiveViewModel<TStatistics>
Type Parameters
Name Description
TStatistics

Methods

initialize(ILiveViewable<? extends IStatistics> listener)

Initalizes the viewmodel with the listener by docking on to it.

Declaration
public abstract void initialize(ILiveViewable<? extends IStatistics> listener)
Parameters
Type Name Description
ILiveViewable<? extends org.visab.globalmodel.IStatistics> listener

The lister to dock on to

onSessionClosed()

Called by the docked listener upon closing the session.

Declaration
public abstract void onSessionClosed()

onStatisticsAdded(TStatistics newStatistics)

Called by the docked listener upon reciving new statistics.

Declaration
public abstract void onStatisticsAdded(TStatistics newStatistics)
Parameters
Type Name Description
TStatistics newStatistics

The newely received statistics.

In This Article
Back to top Generated by DocFX