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 AppContext
public void setApplicationName(String applicationName)
public Window getApplicationWindow()
getApplicationWindow
in interface AppContext
public void setApplicationWindow(Window applicationWindow)
public PropertyMap getPreferences()
getPreferences
in interface AppContext
public void setPreferences(PropertyMap preferences)
public ProductManager getProductManager()
getProductManager
in interface AppContext
public void setProductManager(ProductManager productManager)
public Product getSelectedProduct()
getSelectedProduct
in interface AppContext
public void setSelectedProduct(Product selectedProduct)
public void handleError(String message, Throwable t)
handleError
in interface AppContext
public ProductSceneView getSelectedProductSceneView()
getSelectedProductSceneView
in interface AppContext
public void setSelectedSceneView(ProductSceneView selectedView)
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.