2 * 2004 Jalview Reengineered
11 import jalview.jbgui.GCutAndPasteTransfer;
14 public class CutAndPasteTransfer extends GCutAndPasteTransfer
16 public CutAndPasteTransfer(boolean forImport)
19 for (int i = 0; i < jalview.io.FormatAdapter.formats.size(); i++) {
20 formatChoice.addItem((String)jalview.io.FormatAdapter.formats.elementAt(i));
26 formatLabel.setVisible(false);
27 formatChoice.setVisible(false);
28 textarea.setBounds(new Rectangle(9, 6, 383, 284));
32 // this method is called once the user has selected an output format
33 public void formatForOutput()
35 textarea.setFont(new Font("Monospaced", Font.PLAIN, 12));
36 setLayout(new BorderLayout());
37 add(scrollPane, BorderLayout.CENTER);
42 public String getFormat()
44 return formatChoice.getSelectedItem().toString();
46 public String getText()
48 return textarea.getText();
51 public void setText(String text)
53 textarea.setText(text);