public class ExportSensorRunController extends Object implements ActionListener, ListSelectionListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
ExportSensorRunController.ExportSensorRunFileWriter
Swing worker for writing the records to the file
|
| Constructor and Description |
|---|
ExportSensorRunController() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
ExportSensorRunPanel |
getPanel() |
protected String[][] |
getResultLinesForField(nl.cloudfarming.client.field.model.Field field)
Get sensor runs + their data for specified field as rows (arrays themselves) in an array
|
File |
getSaveLocation()
Get the save location for the file.
|
nl.cloudfarming.client.field.model.Field[] |
getSelectedFields() |
protected void |
refreshFieldListModel()
Refreshes the field list model.
|
void |
valueChanged(ListSelectionEvent e)
Listens to changes on the field list
|
void |
writeToFile()
Write specified lines to specified file
Will log errors with error level.
|
protected static final String[] HEADER
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenere - public ExportSensorRunPanel getPanel()
public File getSaveLocation()
protected void refreshFieldListModel()
public nl.cloudfarming.client.field.model.Field[] getSelectedFields()
public void writeToFile()
lines - LinupdateFieldModeles to write to filefile - File to write toprotected String[][] getResultLinesForField(nl.cloudfarming.client.field.model.Field field)
field - Field for which to generate SensorRun report.Copyright © 2012. All Rights Reserved.