Package org.esa.snap.ui
Class DefaultAppContext
- java.lang.Object
-
- org.esa.snap.ui.DefaultAppContext
-
- All Implemented Interfaces:
AppContext
public class DefaultAppContext extends Object implements AppContext
This trivial implementation of theAppContext
class is only for testing.
-
-
Constructor Summary
Constructors Constructor Description DefaultAppContext(String applicationName)
DefaultAppContext(String applicationName, Window applicationWindow, ProductManager productManager, PropertyMap preferences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DefaultAppContext
public DefaultAppContext(String applicationName)
-
DefaultAppContext
public DefaultAppContext(String applicationName, Window applicationWindow, ProductManager productManager, PropertyMap preferences)
-
-
Method Detail
-
getApplicationName
public String getApplicationName()
- Specified by:
getApplicationName
in interfaceAppContext
-
setApplicationName
public void setApplicationName(String applicationName)
-
getApplicationWindow
public Window getApplicationWindow()
- Specified by:
getApplicationWindow
in interfaceAppContext
-
setApplicationWindow
public void setApplicationWindow(Window applicationWindow)
-
getPreferences
public PropertyMap getPreferences()
- Specified by:
getPreferences
in interfaceAppContext
-
setPreferences
public void setPreferences(PropertyMap preferences)
-
getProductManager
public ProductManager getProductManager()
- Specified by:
getProductManager
in interfaceAppContext
-
setProductManager
public void setProductManager(ProductManager productManager)
-
getSelectedProduct
public Product getSelectedProduct()
- Specified by:
getSelectedProduct
in interfaceAppContext
-
setSelectedProduct
public void setSelectedProduct(Product selectedProduct)
-
handleError
public void handleError(String message, Throwable t)
- Specified by:
handleError
in interfaceAppContext
-
getSelectedProductSceneView
public ProductSceneView getSelectedProductSceneView()
- Specified by:
getSelectedProductSceneView
in interfaceAppContext
-
setSelectedSceneView
public void setSelectedSceneView(ProductSceneView selectedView)
-
-