protected JLabel lbl_blank = new JLabel(balnkPlaceholderImage);
- private JTabbedPane tabbedPane = jalview.jbgui.GDesktop.createTabbedPane();
+ JTabbedPane tabbedPane = jalview.jbgui.GDesktop.createTabbedPane();
private JPanel pnl_actions = new JPanel();
{
tabs.addTab(MessageManager.getString("label.retrieve_ids"),
fetcher);
- fetcher.setDatabaseChooserVisible(false);
- fetcher.embedWithFTSPanel(this);
+ fetcher.embedIn(this);
}
mainFrame.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
final JPanel ftsPanel = this;
txt_search.addActionListener(new ActionListener()
{
-
@Override
public void actionPerformed(ActionEvent e)
{
}
}
+ /**
+ * Action on Back button is to close this panel and open a new Sequence
+ * Fetcher panel
+ */
public void btn_back_ActionPerformed()
{
closeAction();
public void transferToSequenceFetcher(String ids)
{
- seqFetcher.getTextArea().setText(ids);
+ seqFetcher.setQuery(ids);
Thread worker = new Thread(seqFetcher);
worker.start();
}
lbl_blank.setVisible(true);
btn_ok.setEnabled(false);
mainFrame.setTitle(getFTSFrameTitle());
- referesh();
+ refresh();
tbl_summary.setModel(new DefaultTableModel());
tbl_summary.setVisible(false);
}
}
}
- public void referesh()
+ public void refresh()
{
mainFrame.setTitle(getFTSFrameTitle());
}
+ @Override
+ public abstract void okAction();
}