public class SurveillanceViewProvider extends Object
SurveillanceViewConfiguration definitions.| Modifier and Type | Method and Description |
|---|---|
void |
addView(View view)
This method adds a
View to this provider. |
boolean |
containsView(String name)
Checks whether this object contains
View data concerning the given title. |
boolean |
containsView(View view)
Checks whether this object contains a given
View instance. |
View |
getDefaultView()
Returns the default
View. |
static SurveillanceViewProvider |
getInstance()
Method to return the instance of this singleton.
|
SurveillanceViewConfiguration |
getSurveillanceViewConfiguration()
Returns the loaded
SurveillanceViewConfiguration instance |
View |
getView(String name)
Returns the
View for the given title. |
void |
load()
This method loads the configuration data from disk.
|
void |
removeView(View view)
This method removes a
View from this provider. |
void |
replaceView(View oldView,
View newView)
Replaces a
View with a new one. |
void |
save()
This method saves the data represented by this object to disk.
|
public static SurveillanceViewProvider getInstance()
public void save()
public void load()
public boolean containsView(String name)
View data concerning the given title.name - the title to search forView with the given name exists, false otherwisepublic View getView(String name)
View for the given title.name - the title to search forView instance if found, null otherwisepublic void replaceView(View oldView, View newView)
View with a new one.oldView - the old view to be replacednewView - the new viewpublic View getDefaultView()
View.View instance if found, null otherwisepublic SurveillanceViewConfiguration getSurveillanceViewConfiguration()
SurveillanceViewConfiguration instancepublic boolean containsView(View view)
View instance.public void addView(View view)
View to this provider.view - the View instance to be addedCopyright © 2020. All rights reserved.