adams.gui.sendto
Class ExportAsSpreadsheet

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.gui.sendto.AbstractSendToAction
          extended by adams.gui.sendto.ExportAsSpreadsheet
All Implemented Interfaces:
SizeOfHandler, Serializable, Comparable<AbstractSendToAction>

public class ExportAsSpreadsheet
extends AbstractSendToAction

Action for exporting a table as spreadsheet.

Version:
$Revision: 5651 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Constructor Summary
ExportAsSpreadsheet()
           
 
Method Summary
 Class[] accepts()
          Returns the classes that the action accepts.
 String getAction()
          Returns the short description of the sendto action.
 String getIconName()
          Returns the file name of the icon.
 String send(Object o)
          Performs the actual sending/forwarding/processing of the data.
 
Methods inherited from class adams.gui.sendto.AbstractSendToAction
compareTo, equals, getIcon, hashCode
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportAsSpreadsheet

public ExportAsSpreadsheet()
Method Detail

getAction

public String getAction()
Returns the short description of the sendto action. Description gets used for menu items.

Specified by:
getAction in class AbstractSendToAction
Returns:
the short description

getIconName

public String getIconName()
Returns the file name of the icon.

Overrides:
getIconName in class AbstractSendToAction
Returns:
the filename or null if no icon available

accepts

public Class[] accepts()
Returns the classes that the action accepts.

Specified by:
accepts in class AbstractSendToAction
Returns:
the accepted classes

send

public String send(Object o)
Performs the actual sending/forwarding/processing of the data.

Specified by:
send in class AbstractSendToAction
Parameters:
o - the object to send
Returns:
null if everything OK, otherwise error message


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.