The Meta-Environment API

nl.cwi.sen1.visplugin.csvexport
Class CsvExportVisualizationWindow

java.lang.Object
  extended by nl.cwi.sen1.visplugin.VisualizationPluginWindow
      extended by nl.cwi.sen1.visplugin.csvexport.CsvExportVisualizationWindow

public class CsvExportVisualizationWindow
extends nl.cwi.sen1.visplugin.VisualizationPluginWindow

This class represents the window of the CSV Export plugin in the meta environment

Author:
Antoine Savelkoul, Chris Woolderink

Field Summary
private  nl.cwi.sen1.relationstores.types.RTuple m_fact
           
private  javax.swing.JLabel m_message
           
 
Fields inherited from class nl.cwi.sen1.visplugin.VisualizationPluginWindow
m_factory
 
Constructor Summary
CsvExportVisualizationWindow()
           
 
Method Summary
 void executeOnLoad()
          Called when the plugin is loaded
protected  void exportToCsv(java.lang.String fileName)
          Exports the loaded RTuple to a CSV file
 javax.swing.JPanel render(nl.cwi.sen1.relationstores.types.RTuple fact)
          Returns JPanel including JTable with Data.
 
Methods inherited from class nl.cwi.sen1.visplugin.VisualizationPluginWindow
createExtensionMenu, disconnectComponent, displayVisualization, exportToCsvClicked, exportToImage, factOutOfDate, getController, getFactId, getStoreId, getStudio, getWindowId, initializeWindow, openLocationInEditor, rstoreUnloaded, showPopUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_fact

private nl.cwi.sen1.relationstores.types.RTuple m_fact

m_message

private javax.swing.JLabel m_message
Constructor Detail

CsvExportVisualizationWindow

public CsvExportVisualizationWindow()
Method Detail

render

public javax.swing.JPanel render(nl.cwi.sen1.relationstores.types.RTuple fact)
Returns JPanel including JTable with Data.

Specified by:
render in class nl.cwi.sen1.visplugin.VisualizationPluginWindow
Parameters:
fact - the RStore to be exported
Returns:
the content for the tab that will be shown in the Meta Environment

executeOnLoad

public void executeOnLoad()
Called when the plugin is loaded

Overrides:
executeOnLoad in class nl.cwi.sen1.visplugin.VisualizationPluginWindow

exportToCsv

protected void exportToCsv(java.lang.String fileName)
Exports the loaded RTuple to a CSV file

Overrides:
exportToCsv in class nl.cwi.sen1.visplugin.VisualizationPluginWindow
Parameters:
fileName - The name of the the CSV output will be written to

The Meta-Environment API