Class VisualizeScope
Visualize scope that can be injected into viewmodels whose views are loaded by the DynamicViewLoader. If the view was loaded as a live view, the session listener should be used as a data source. If the view was loaded from a file, the file should be used as a data source. The VisualizeScope is also a GeneralScope and therefore exposes the stage that the view of the viewmodel is living in.
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class VisualizeScope extends GeneralScope
Constructors
VisualizeScope()
Declaration
public VisualizeScope()
Methods
getFile()
The VISAB file.
Declaration
public IVISABFile getFile()
Returns
Type | Description |
---|---|
IVISABFile |
getSessionListener()
The session listener of the session. Returns null if the view was not loaded as a live view, else the session listener.
Declaration
public ILiveViewable<?> getSessionListener()
Returns
Type | Description |
---|---|
ILive |
isLive()
True if the view was loaded as a live view.
Declaration
public boolean isLive()
Returns
Type | Description |
---|---|
boolean |
setFile(IVISABFile file)
Sets the file. This should only be called by the DynamicViewLoader.
Declaration
public void setFile(IVISABFile file)
Parameters
Type | Name | Description |
---|---|---|
IVISABFile | file | The file |
setLive(boolean isLive)
Sets whether the view was loaded a live view or not. Should only be called by the DynamicViewLoader.
Declaration
public void setLive(boolean isLive)
Parameters
Type | Name | Description |
---|---|---|
boolean | isLive | True if the view was loaded as a live view |
setSessionListener(ILiveViewable<?> sessionListener)
Sets the session listener. Should only be called by the DynamicViewLoader.
Declaration
public void setSessionListener(ILiveViewable<?> sessionListener)
Parameters
Type | Name | Description |
---|---|---|
ILive |
sessionListener | The session listener |