gov.lbl.genome.gui.action
Class SaveAsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.lbl.genome.gui.action.VAbstractAction
          extended by gov.lbl.genome.gui.action.SaveAsAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.EventListener, javax.swing.Action

public class SaveAsAction
extends VAbstractAction

Title: Save Your Data

Description: Save your data in three available formats

Copyright: Copyright (c) 2002 Lawrence Orlando Berkeley National Laboratory

Company: LBNL

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.lbl.genome.gui.action.VAbstractAction
action, actionIcon, actionThread, numberOfActions, param, va
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SaveAsAction(VistaApp vapp)
          SaveAsAction
SaveAsAction(VistaApp vapp, java.lang.String name)
          SaveAsAction
 
Method Summary
 void run()
          Open dialog window in which you can select one of three available data formats, then send file to the server and open internet browser with a link on this file.
 void saveData(java.io.OutputStream os, java.io.ByteArrayOutputStream ba)
          send bytes to the output stream
 
Methods inherited from class gov.lbl.genome.gui.action.VAbstractAction
actionPerformed
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveAsAction

public SaveAsAction(VistaApp vapp,
                    java.lang.String name)
SaveAsAction

Parameters:
vapp - VistaApp
name - String

SaveAsAction

public SaveAsAction(VistaApp vapp)
SaveAsAction

Parameters:
vapp - VistaApp
Method Detail

run

public void run()
Open dialog window in which you can select one of three available data formats, then send file to the server and open internet browser with a link on this file.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class VAbstractAction
See Also:
VAbstractAction.actionPerformed(ActionEvent)

saveData

public void saveData(java.io.OutputStream os,
                     java.io.ByteArrayOutputStream ba)
send bytes to the output stream

Parameters:
os - OutputStream
ba - ByteArrayOutputStream
See Also:
VistaApp.getOutputStream(String)