public class DefaultAppContext extends Object implements AppContext
AppContext class
is only for testing.| Constructor and Description |
|---|
DefaultAppContext(String applicationName) |
DefaultAppContext(String applicationName,
Window applicationWindow,
ProductManager productManager,
PropertyMap preferences) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
Window |
getApplicationWindow() |
PropertyMap |
getPreferences() |
ProductManager |
getProductManager() |
Product |
getSelectedProduct() |
ProductSceneView |
getSelectedProductSceneView() |
void |
handleError(String message,
Throwable t) |
void |
setApplicationName(String applicationName) |
void |
setApplicationWindow(Window applicationWindow) |
void |
setPreferences(PropertyMap preferences) |
void |
setProductManager(ProductManager productManager) |
void |
setSelectedProduct(Product selectedProduct) |
void |
setSelectedSceneView(ProductSceneView selectedView) |
public DefaultAppContext(String applicationName)
public DefaultAppContext(String applicationName, Window applicationWindow, ProductManager productManager, PropertyMap preferences)
public String getApplicationName()
getApplicationName in interface AppContextpublic void setApplicationName(String applicationName)
public Window getApplicationWindow()
getApplicationWindow in interface AppContextpublic void setApplicationWindow(Window applicationWindow)
public PropertyMap getPreferences()
getPreferences in interface AppContextpublic void setPreferences(PropertyMap preferences)
public ProductManager getProductManager()
getProductManager in interface AppContextpublic void setProductManager(ProductManager productManager)
public Product getSelectedProduct()
getSelectedProduct in interface AppContextpublic void setSelectedProduct(Product selectedProduct)
public void handleError(String message, Throwable t)
handleError in interface AppContextpublic ProductSceneView getSelectedProductSceneView()
getSelectedProductSceneView in interface AppContextpublic void setSelectedSceneView(ProductSceneView selectedView)
Copyright © 2014–2019 European Space Agency (ESA). All rights reserved.