org.pentaho.reporting.engine.classic.core.designtime
Class DefaultDesignTimeContext

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.designtime.DefaultDesignTimeContext
All Implemented Interfaces:
DesignTimeContext

public class DefaultDesignTimeContext
extends Object
implements DesignTimeContext

Todo: Document me!

Date: 19.07.2009 Time: 18:17:59

Author:
Thomas Morgner.

Constructor Summary
DefaultDesignTimeContext(AbstractReportDefinition report)
           
 
Method Summary
 void error(Exception e)
           
 DataSchemaModel getDataSchemaModel()
           
 org.pentaho.reporting.libraries.designtime.swing.settings.LocaleSettings getLocaleSettings()
           
 Window getParentWindow()
          The parent window in the GUI for showing modal dialogs.
 AbstractReportDefinition getReport()
          The currently active report (or subreport).
 void setParentWindow(Window parentWindow)
           
 void userError(Exception e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDesignTimeContext

public DefaultDesignTimeContext(AbstractReportDefinition report)
Method Detail

getReport

public AbstractReportDefinition getReport()
The currently active report (or subreport).

Specified by:
getReport in interface DesignTimeContext
Returns:
the active report.

setParentWindow

public void setParentWindow(Window parentWindow)

getParentWindow

public Window getParentWindow()
The parent window in the GUI for showing modal dialogs.

Specified by:
getParentWindow in interface DesignTimeContext
Returns:
the window or null, if there is no parent.

getDataSchemaModel

public DataSchemaModel getDataSchemaModel()
Specified by:
getDataSchemaModel in interface DesignTimeContext

error

public void error(Exception e)
Specified by:
error in interface DesignTimeContext

userError

public void userError(Exception e)
Specified by:
userError in interface DesignTimeContext

getLocaleSettings

public org.pentaho.reporting.libraries.designtime.swing.settings.LocaleSettings getLocaleSettings()
Specified by:
getLocaleSettings in interface DesignTimeContext