The Meta-Environment API

nl.cwi.sen1.visplugin.table.model
Class SortableTableModelExporter

java.lang.Object
  extended by nl.cwi.sen1.visplugin.table.model.SortableTableModelExporter

public class SortableTableModelExporter
extends java.lang.Object

Provides exporting functions for data in the SortableTableModel.

Author:
Anton Gerdessen, Arend van Beelen

Field Summary
(package private)  nl.cwi.sen1.relationstores.Factory m_factory
           
(package private)  SortableTableModel m_model
           
 
Constructor Summary
SortableTableModelExporter(SortableTableModel model)
          Default constructor.
 
Method Summary
 void exportToRStore(java.lang.String filename, int[] selectedRows)
          Exports a selection from a table model to an RStore file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_factory

nl.cwi.sen1.relationstores.Factory m_factory

m_model

SortableTableModel m_model
Constructor Detail

SortableTableModelExporter

public SortableTableModelExporter(SortableTableModel model)
Default constructor.

Parameters:
model - The model on which the exporter will operate.
Method Detail

exportToRStore

public void exportToRStore(java.lang.String filename,
                           int[] selectedRows)
Exports a selection from a table model to an RStore file.

Parameters:
filename - File to save the generated RStore to.
selectedRows - An array containing the indexes of all the table rows that will be exported. If the array is empty, the entire table will be exported.

The Meta-Environment API