org.esa.beam.framework.gpf.ui
Class DefaultAppContext

java.lang.Object
  extended by org.esa.beam.framework.gpf.ui.DefaultAppContext
All Implemented Interfaces:
AppContext

public class DefaultAppContext
extends Object
implements AppContext

This trivial implementation of the AppContext class is only for testing.


Constructor Summary
DefaultAppContext(String applicationName)
           
DefaultAppContext(String applicationName, Window applicationWindow, ProductManager productManager, PropertyMap preferences)
           
 
Method Summary
 String getApplicationName()
           
 ApplicationPage getApplicationPage()
           
 Window getApplicationWindow()
           
 PropertyMap getPreferences()
           
 ProductManager getProductManager()
           
 Product getSelectedProduct()
           
 ProductSceneView getSelectedProductSceneView()
           
 void handleError(String message, Throwable t)
           
 void handleError(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface AppContext

setApplicationName

public void setApplicationName(String applicationName)

getApplicationWindow

public Window getApplicationWindow()
Specified by:
getApplicationWindow in interface AppContext

getApplicationPage

public ApplicationPage getApplicationPage()
Specified by:
getApplicationPage in interface AppContext

setApplicationWindow

public void setApplicationWindow(Window applicationWindow)

getPreferences

public PropertyMap getPreferences()
Specified by:
getPreferences in interface AppContext

setPreferences

public void setPreferences(PropertyMap preferences)

getProductManager

public ProductManager getProductManager()
Specified by:
getProductManager in interface AppContext

setProductManager

public void setProductManager(ProductManager productManager)

getSelectedProduct

public Product getSelectedProduct()
Specified by:
getSelectedProduct in interface AppContext

setSelectedProduct

public void setSelectedProduct(Product selectedProduct)

handleError

public void handleError(Throwable t)
Specified by:
handleError in interface AppContext

handleError

public void handleError(String message,
                        Throwable t)
Specified by:
handleError in interface AppContext

getSelectedProductSceneView

public ProductSceneView getSelectedProductSceneView()
Specified by:
getSelectedProductSceneView in interface AppContext

setSelectedSceneView

public void setSelectedSceneView(ProductSceneView selectedView)


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.