2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
22 package jalview.jbgui;
24 import java.awt.BorderLayout;
25 import java.awt.CardLayout;
26 import java.awt.Component;
27 import java.awt.Dimension;
28 import java.awt.FlowLayout;
30 import java.awt.GridLayout;
31 import java.awt.Point;
32 import java.awt.event.ActionEvent;
33 import java.awt.event.ActionListener;
34 import java.awt.event.ItemEvent;
35 import java.awt.event.ItemListener;
36 import java.awt.event.KeyAdapter;
37 import java.awt.event.KeyEvent;
38 import java.awt.event.MouseAdapter;
39 import java.awt.event.MouseEvent;
40 import java.util.Arrays;
41 import java.util.HashMap;
44 import javax.swing.ImageIcon;
45 import javax.swing.JButton;
46 import javax.swing.JCheckBox;
47 import javax.swing.JComboBox;
48 import javax.swing.JFrame;
49 import javax.swing.JInternalFrame;
50 import javax.swing.JLabel;
51 import javax.swing.JList;
52 import javax.swing.JPanel;
53 import javax.swing.JScrollPane;
54 import javax.swing.JSeparator;
55 import javax.swing.JTabbedPane;
56 import javax.swing.JTable;
57 import javax.swing.JTextField;
58 import javax.swing.ListCellRenderer;
59 import javax.swing.Timer;
60 import javax.swing.event.ChangeEvent;
61 import javax.swing.event.ChangeListener;
62 import javax.swing.event.DocumentEvent;
63 import javax.swing.event.DocumentListener;
64 import javax.swing.event.InternalFrameEvent;
65 import javax.swing.table.TableColumn;
67 import jalview.datamodel.SequenceI;
68 import jalview.fts.api.FTSDataColumnI;
69 import jalview.fts.core.FTSDataColumnPreferences;
70 import jalview.gui.AlignmentPanel;
71 import jalview.gui.Desktop;
72 import jalview.gui.JvSwingUtils;
73 import jalview.gui.StructureViewer;
74 import jalview.util.MessageManager;
75 import net.miginfocom.swing.MigLayout;
77 @SuppressWarnings("serial")
79 * GUI layout for structure chooser
84 public abstract class GStructureChooser extends JPanel
85 implements ItemListener
87 private static final Font VERDANA_12 = new Font("Verdana", 0, 12);
89 public static final String VIEWS_FILTER = "VIEWS_FILTER";
91 protected static final String VIEWS_FROM_FILE = "VIEWS_FROM_FILE";
93 protected static final String VIEWS_ENTER_ID = "VIEWS_ENTER_ID";
96 * 'cached' structure view
98 protected static final String VIEWS_LOCAL_PDB = "VIEWS_LOCAL_PDB";
100 protected JPanel statusPanel = new JPanel();
102 public JLabel statusBar = new JLabel();
104 protected String frameTitle = MessageManager
105 .getString("label.structure_chooser");
107 protected JInternalFrame mainFrame = new JInternalFrame(frameTitle);
109 protected JComboBox<FilterOption> cmb_filterOption = new JComboBox<>();
111 protected AlignmentPanel ap;
113 protected StringBuilder errorWarning = new StringBuilder();
115 protected JButton btn_add;
117 protected JButton btn_newView;
119 protected JButton btn_pdbFromFile = new JButton();
121 // holder for icon and button
122 protected JPanel pnl_queryTDB;
124 protected JButton btn_queryTDB = new JButton();
126 protected JCheckBox chk_superpose = new JCheckBox(
127 MessageManager.getString("label.superpose_structures"));
129 protected JTextField txt_search = new JTextField(14);
131 protected JPanel pnl_switchableViews = new JPanel(new CardLayout());
133 protected CardLayout layout_switchableViews = (CardLayout) (pnl_switchableViews
136 protected JCheckBox chk_invertFilter = new JCheckBox(
137 MessageManager.getString("label.invert"));
139 protected ImageIcon loadingImage = new ImageIcon(
140 getClass().getResource("/images/loading.gif"));
142 protected ImageIcon goodImage = new ImageIcon(
143 getClass().getResource("/images/good.png"));
145 protected ImageIcon errorImage = new ImageIcon(
146 getClass().getResource("/images/error.png"));
148 protected ImageIcon warningImage = new ImageIcon(
149 getClass().getResource("/images/warning.gif"));
151 protected ImageIcon tdbImage = new ImageIcon(getClass()
152 .getResource("/images/3d-beacons-logo-transparent.png"));
154 protected JLabel lbl_loading = new JLabel(loadingImage);
156 protected JLabel lbl_pdbManualFetchStatus = new JLabel(errorImage);
158 protected JLabel lbl_fromFileStatus = new JLabel(errorImage);
160 protected AssociateSeqPanel idInputAssSeqPanel = new AssociateSeqPanel();
162 protected AssociateSeqPanel fileChooserAssSeqPanel = new AssociateSeqPanel();
164 protected JComboBox<StructureViewer> targetView = new JComboBox<>();
166 protected JTable tbl_local_pdb = new JTable();
168 protected JTabbedPane pnl_filter = new JTabbedPane();
170 protected abstract FTSDataColumnPreferences getFTSDocFieldPrefs();
172 protected abstract void setFTSDocFieldPrefs(
173 FTSDataColumnPreferences newPrefs);
175 protected FTSDataColumnI[] previousWantedFields;
177 protected static Map<String, Integer> tempUserPrefs = new HashMap<>();
179 private JTable tbl_summary = new JTable()
181 private boolean inLayout;
184 public boolean getScrollableTracksViewportWidth()
186 return hasExcessWidth();
191 public void doLayout()
193 if (hasExcessWidth())
195 autoResizeMode = AUTO_RESIZE_SUBSEQUENT_COLUMNS;
200 autoResizeMode = AUTO_RESIZE_OFF;
203 protected boolean hasExcessWidth()
205 return getPreferredSize().width < getParent().getWidth();
209 public void columnMarginChanged(ChangeEvent e)
215 TableColumn resizingColumn = getTableHeader().getResizingColumn();
216 // Need to do this here, before the parent's
217 // layout manager calls getPreferredSize().
218 if (resizingColumn != null && autoResizeMode == AUTO_RESIZE_OFF
221 resizingColumn.setPreferredWidth(resizingColumn.getWidth());
222 String colHeader = resizingColumn.getHeaderValue().toString();
223 tempUserPrefs.put(colHeader, resizingColumn.getWidth());
229 public String getToolTipText(MouseEvent evt)
231 String toolTipText = null;
232 java.awt.Point pnt = evt.getPoint();
233 int rowIndex = rowAtPoint(pnt);
234 int colIndex = columnAtPoint(pnt);
238 if (getValueAt(rowIndex, colIndex) == null)
242 toolTipText = getValueAt(rowIndex, colIndex).toString();
243 } catch (Exception e)
245 // e.printStackTrace();
247 toolTipText = (toolTipText == null ? null
248 : (toolTipText.length() > 500
249 ? JvSwingUtils.wrapTooltip(true,
250 "\"" + toolTipText.subSequence(0, 500)
252 : JvSwingUtils.wrapTooltip(true, toolTipText)));
257 public GStructureChooser()
261 protected void initDialog()
267 mainFrame.setVisible(false);
268 mainFrame.invalidate();
270 } catch (Exception e)
272 System.out.println(e); // for JavaScript TypeError
277 // BH SwingJS optimization
278 // (a) 100-ms interruptable timer for text entry -- BH 1/10/2019
279 // (b) two-character minimum, at least for JavaScript.
283 protected void txt_search_ActionPerformedDelayed()
289 timer = new Timer(300, new ActionListener()
293 public void actionPerformed(ActionEvent e)
295 txt_search_ActionPerformed();
298 timer.setRepeats(false);
304 * Initializes the GUI default properties
308 private void jbInit() throws Exception
310 Integer width = tempUserPrefs.get("structureChooser.width") == null
312 : tempUserPrefs.get("structureChooser.width");
313 Integer height = tempUserPrefs.get("structureChooser.height") == null
315 : tempUserPrefs.get("structureChooser.height");
316 tbl_summary.setAutoCreateRowSorter(true);
317 tbl_summary.getTableHeader().setReorderingAllowed(false);
318 tbl_summary.addMouseListener(new MouseAdapter()
321 public void mousePressed(MouseEvent e)
325 super.mousePressed(e);
330 public void mouseClicked(MouseEvent e)
334 validateSelections();
339 public void mouseReleased(MouseEvent e)
343 validateSelections();
347 boolean popupAction(MouseEvent e)
349 if (e.isPopupTrigger())
351 Point pt = e.getPoint();
352 int selectedRow = tbl_summary.rowAtPoint(pt);
353 if (showPopupFor(selectedRow, pt.x, pt.y))
361 tbl_summary.addKeyListener(new KeyAdapter()
364 public void keyPressed(KeyEvent evt)
366 validateSelections();
367 switch (evt.getKeyCode())
369 case KeyEvent.VK_ESCAPE: // escape key
372 case KeyEvent.VK_ENTER: // enter key
373 if (btn_add.isEnabled())
375 add_ActionPerformed();
378 case KeyEvent.VK_TAB: // tab key
379 if (evt.isShiftDown())
381 pnl_filter.requestFocus();
385 btn_add.requestFocus();
395 JButton btn_cancel = new JButton(
396 MessageManager.getString("action.cancel"));
397 btn_cancel.setFont(VERDANA_12);
398 btn_cancel.addActionListener(new java.awt.event.ActionListener()
401 public void actionPerformed(ActionEvent e)
403 closeAction(pnl_filter.getHeight());
406 btn_cancel.addKeyListener(new KeyAdapter()
409 public void keyPressed(KeyEvent evt)
411 if (evt.getKeyCode() == KeyEvent.VK_ENTER)
413 closeAction(pnl_filter.getHeight());
418 tbl_local_pdb.setAutoCreateRowSorter(true);
419 tbl_local_pdb.getTableHeader().setReorderingAllowed(false);
420 tbl_local_pdb.addMouseListener(new MouseAdapter()
423 public void mouseClicked(MouseEvent e)
425 validateSelections();
429 public void mouseReleased(MouseEvent e)
431 validateSelections();
434 tbl_local_pdb.addKeyListener(new KeyAdapter()
437 public void keyPressed(KeyEvent evt)
439 validateSelections();
440 switch (evt.getKeyCode())
442 case KeyEvent.VK_ESCAPE: // escape key
445 case KeyEvent.VK_ENTER: // enter key
446 if (btn_add.isEnabled())
448 add_ActionPerformed();
451 case KeyEvent.VK_TAB: // tab key
452 if (evt.isShiftDown())
454 cmb_filterOption.requestFocus();
458 if (btn_add.isEnabled())
460 btn_add.requestFocus();
464 btn_cancel.requestFocus();
475 btn_newView = new JButton(
476 MessageManager.formatMessage("action.new_structure_view_with",
477 StructureViewer.getViewerType().toString()));
478 btn_newView.setFont(VERDANA_12);
479 btn_newView.addActionListener(new java.awt.event.ActionListener()
482 public void actionPerformed(ActionEvent e)
484 newView_ActionPerformed();
487 btn_newView.addKeyListener(new KeyAdapter()
490 public void keyPressed(KeyEvent evt)
492 if (evt.getKeyCode() == KeyEvent.VK_ENTER)
494 newView_ActionPerformed();
499 // TODO: JAL-3898 - get list of available external programs to view
502 btn_add = new JButton(MessageManager.getString("action.add"));
503 btn_add.setFont(VERDANA_12);
504 btn_add.addActionListener(new java.awt.event.ActionListener()
507 public void actionPerformed(ActionEvent e)
509 add_ActionPerformed();
512 btn_add.addKeyListener(new KeyAdapter()
515 public void keyPressed(KeyEvent evt)
517 if (evt.getKeyCode() == KeyEvent.VK_ENTER)
519 add_ActionPerformed();
524 btn_pdbFromFile.setFont(VERDANA_12);
525 String btn_title = MessageManager.getString("label.select_pdb_file");
526 btn_pdbFromFile.setText(btn_title + " ");
527 btn_pdbFromFile.addActionListener(new java.awt.event.ActionListener()
530 public void actionPerformed(ActionEvent e)
532 pdbFromFile_actionPerformed();
535 btn_pdbFromFile.addKeyListener(new KeyAdapter()
538 public void keyPressed(KeyEvent evt)
540 if (evt.getKeyCode() == KeyEvent.VK_ENTER)
542 pdbFromFile_actionPerformed();
547 JScrollPane scrl_foundStructures = new JScrollPane(tbl_summary);
548 scrl_foundStructures.setPreferredSize(new Dimension(width, height));
550 JScrollPane scrl_localPDB = new JScrollPane(tbl_local_pdb);
551 scrl_localPDB.setPreferredSize(new Dimension(width, height));
552 scrl_localPDB.setHorizontalScrollBarPolicy(
553 JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
555 chk_invertFilter.setFont(VERDANA_12);
556 txt_search.setToolTipText(JvSwingUtils.wrapTooltip(true,
557 MessageManager.getString("label.enter_pdb_id_tip")));
558 txt_search.getDocument().addDocumentListener(new DocumentListener()
561 public void insertUpdate(DocumentEvent e)
563 txt_search_ActionPerformedDelayed();
567 public void removeUpdate(DocumentEvent e)
569 txt_search_ActionPerformedDelayed();
573 public void changedUpdate(DocumentEvent e)
575 txt_search_ActionPerformedDelayed();
579 cmb_filterOption.setFont(VERDANA_12);
580 cmb_filterOption.setToolTipText(
581 MessageManager.getString("info.select_filter_option"));
582 cmb_filterOption.addItemListener(this);
583 // add CustomComboSeparatorsRenderer to filter option combo-box
584 cmb_filterOption.setRenderer(new CustomComboSeparatorsRenderer(
585 (ListCellRenderer<Object>) cmb_filterOption.getRenderer())
588 protected boolean addSeparatorAfter(JList list, FilterOption value,
591 return value.isAddSeparatorAfter();
595 chk_invertFilter.addItemListener(this);
596 btn_queryTDB = new JButton(
597 MessageManager.getString("label.search_3dbeacons"));
598 btn_queryTDB.setFont(VERDANA_12);
599 btn_queryTDB.setToolTipText(
600 MessageManager.getString("label.find_models_from_3dbeacons"));
601 btn_queryTDB.setPreferredSize(new Dimension(300, 24));
602 btn_queryTDB.setVisible(false);
604 targetView.setVisible(false);
606 JPanel actionsPanel = new JPanel(new MigLayout());
607 actionsPanel.add(targetView, "left");
608 actionsPanel.add(btn_add, "wrap");
609 actionsPanel.add(chk_superpose, "left");
610 actionsPanel.add(btn_newView);
611 actionsPanel.add(btn_cancel, "right");
613 JPanel pnl_main = new JPanel(new BorderLayout());
614 JPanel pnl_controls = new JPanel();
615 pnl_queryTDB = new JPanel(new FlowLayout());
616 pnl_queryTDB.setBackground(getBackground());
617 pnl_queryTDB.add(new JLabel(tdbImage));
618 pnl_queryTDB.add(btn_queryTDB);
619 pnl_queryTDB.setVisible(false);
620 pnl_main.add(pnl_queryTDB, BorderLayout.NORTH);
621 pnl_controls.add(cmb_filterOption);
622 pnl_controls.add(lbl_loading);
623 pnl_controls.add(chk_invertFilter);
624 pnl_main.add(pnl_controls, BorderLayout.CENTER);
625 lbl_loading.setVisible(false);
627 JPanel pnl_fileChooser = new JPanel(new FlowLayout());
628 pnl_fileChooser.add(btn_pdbFromFile);
629 pnl_fileChooser.add(lbl_fromFileStatus);
630 JPanel pnl_fileChooserBL = new JPanel(new BorderLayout());
631 pnl_fileChooserBL.add(fileChooserAssSeqPanel, BorderLayout.NORTH);
632 pnl_fileChooserBL.add(pnl_fileChooser, BorderLayout.CENTER);
634 JPanel pnl_idInput = new JPanel(new FlowLayout());
635 pnl_idInput.add(txt_search);
636 pnl_idInput.add(lbl_pdbManualFetchStatus);
638 JPanel pnl_idInputBL = new JPanel(new BorderLayout());
639 pnl_idInputBL.add(idInputAssSeqPanel, BorderLayout.NORTH);
640 pnl_idInputBL.add(pnl_idInput, BorderLayout.CENTER);
642 final String foundStructureSummary = MessageManager
643 .getString("label.found_structures_summary");
644 final String configureCols = MessageManager
645 .getString("label.configure_displayed_columns");
646 ChangeListener changeListener = new ChangeListener()
649 public void stateChanged(ChangeEvent changeEvent)
651 JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent
653 int index = sourceTabbedPane.getSelectedIndex();
654 btn_add.setVisible(targetView.isVisible());
655 btn_newView.setVisible(true);
656 btn_cancel.setVisible(true);
657 if (sourceTabbedPane.getTitleAt(index).equals(configureCols))
659 btn_add.setEnabled(false);
660 btn_cancel.setEnabled(false);
661 btn_add.setVisible(false);
662 btn_newView.setEnabled(false);
663 btn_cancel.setVisible(false);
664 previousWantedFields = getFTSDocFieldPrefs()
665 .getStructureSummaryFields()
666 .toArray(new FTSDataColumnI[0]);
668 if (sourceTabbedPane.getTitleAt(index)
669 .equals(foundStructureSummary))
671 btn_cancel.setEnabled(true);
672 if (wantedFieldsUpdated())
678 validateSelections();
683 pnl_filter.addChangeListener(changeListener);
684 pnl_filter.setPreferredSize(new Dimension(width, height));
685 pnl_filter.add(foundStructureSummary, scrl_foundStructures);
686 pnl_filter.add(configureCols, getFTSDocFieldPrefs());
688 JPanel pnl_locPDB = new JPanel(new BorderLayout());
689 pnl_locPDB.add(scrl_localPDB);
691 pnl_switchableViews.add(pnl_fileChooserBL, VIEWS_FROM_FILE);
692 pnl_switchableViews.add(pnl_idInputBL, VIEWS_ENTER_ID);
693 pnl_switchableViews.add(pnl_filter, VIEWS_FILTER);
694 pnl_switchableViews.add(pnl_locPDB, VIEWS_LOCAL_PDB);
696 this.setLayout(new BorderLayout());
697 this.add(pnl_main, java.awt.BorderLayout.NORTH);
698 this.add(pnl_switchableViews, java.awt.BorderLayout.CENTER);
699 // this.add(pnl_actions, java.awt.BorderLayout.SOUTH);
700 statusPanel.setLayout(new GridLayout());
702 JPanel pnl_actionsAndStatus = new JPanel(new BorderLayout());
703 pnl_actionsAndStatus.add(actionsPanel, BorderLayout.CENTER);
704 pnl_actionsAndStatus.add(statusPanel, BorderLayout.SOUTH);
705 statusPanel.add(statusBar, null);
706 this.add(pnl_actionsAndStatus, java.awt.BorderLayout.SOUTH);
708 mainFrame.addInternalFrameListener(
709 new javax.swing.event.InternalFrameAdapter()
712 public void internalFrameClosing(InternalFrameEvent e)
714 closeAction(pnl_filter.getHeight());
717 mainFrame.setVisible(true);
718 mainFrame.setContentPane(this);
719 mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
720 Integer x = tempUserPrefs.get("structureChooser.x");
721 Integer y = tempUserPrefs.get("structureChooser.y");
722 if (x != null && y != null)
724 mainFrame.setLocation(x, y);
726 Desktop.addInternalFrame(mainFrame, frameTitle, width, height);
729 protected abstract boolean showPopupFor(int selectedRow, int x, int y);
731 protected void closeAction(int preferredHeight)
733 // System.out.println(">>>>>>>>>> closing internal frame!!!");
734 // System.out.println("width : " + mainFrame.getWidth());
735 // System.out.println("heigh : " + mainFrame.getHeight());
736 // System.out.println("x : " + mainFrame.getX());
737 // System.out.println("y : " + mainFrame.getY());
738 tempUserPrefs.put("structureChooser.width", pnl_filter.getWidth());
739 tempUserPrefs.put("structureChooser.height", preferredHeight);
740 tempUserPrefs.put("structureChooser.x", mainFrame.getX());
741 tempUserPrefs.put("structureChooser.y", mainFrame.getY());
745 public boolean wantedFieldsUpdated()
747 if (previousWantedFields == null)
752 FTSDataColumnI[] currentWantedFields = getFTSDocFieldPrefs()
753 .getStructureSummaryFields().toArray(new FTSDataColumnI[0]);
754 return Arrays.equals(currentWantedFields, previousWantedFields) ? false
761 * Event listener for the 'filter' combo-box and 'invert' check-box
763 public void itemStateChanged(ItemEvent e)
769 * This inner class provides the provides the data model for associate
770 * sequence combo-box - cmb_assSeq
775 public class AssociateSeqOptions
777 private SequenceI sequence;
781 public AssociateSeqOptions(SequenceI seq)
784 this.name = (seq.getName().length() >= 23)
785 ? seq.getName().substring(0, 23)
789 public AssociateSeqOptions(String name, SequenceI seq)
796 public String toString()
801 public String getName()
806 public void setName(String name)
811 public SequenceI getSequence()
816 public void setSequence(SequenceI sequence)
818 this.sequence = sequence;
824 * This inner class holds the Layout and configuration of the panel which
825 * handles association of manually fetched structures to a unique sequence
826 * when more than one sequence selection is made
831 public class AssociateSeqPanel extends JPanel implements ItemListener
833 private JComboBox<AssociateSeqOptions> cmb_assSeq = new JComboBox<>();
835 private JLabel lbl_associateSeq = new JLabel();
837 public AssociateSeqPanel()
839 this.setLayout(new FlowLayout());
840 this.add(cmb_assSeq);
841 this.add(lbl_associateSeq);
842 cmb_assSeq.setToolTipText(
843 MessageManager.getString("info.associate_wit_sequence"));
844 cmb_assSeq.addItemListener(this);
847 public void loadCmbAssSeq()
849 populateCmbAssociateSeqOptions(cmb_assSeq, lbl_associateSeq);
852 public JComboBox<AssociateSeqOptions> getCmb_assSeq()
857 public void setCmb_assSeq(JComboBox<AssociateSeqOptions> cmb_assSeq)
859 this.cmb_assSeq = cmb_assSeq;
863 public void itemStateChanged(ItemEvent e)
865 if (e.getStateChange() == ItemEvent.SELECTED)
867 cmbAssSeqStateChanged();
872 public JTable getResultTable()
877 public JComboBox<FilterOption> getCmbFilterOption()
879 return cmb_filterOption;
883 * Custom ListCellRenderer for adding a separator between different categories
884 * of structure chooser filter option drop-down.
889 public abstract class CustomComboSeparatorsRenderer
890 implements ListCellRenderer<Object>
892 private ListCellRenderer<Object> regent;
894 private JPanel separatorPanel = new JPanel(new BorderLayout());
896 private JSeparator jSeparator = new JSeparator();
898 public CustomComboSeparatorsRenderer(
899 ListCellRenderer<Object> listCellRenderer)
901 this.regent = listCellRenderer;
905 public Component getListCellRendererComponent(JList list, Object value,
906 int index, boolean isSelected, boolean cellHasFocus)
909 Component comp = regent.getListCellRendererComponent(list, value,
910 index, isSelected, cellHasFocus);
912 && addSeparatorAfter(list, (FilterOption) value, index))
914 separatorPanel.removeAll();
915 separatorPanel.add(comp, BorderLayout.CENTER);
916 separatorPanel.add(jSeparator, BorderLayout.SOUTH);
917 return separatorPanel;
925 protected abstract boolean addSeparatorAfter(JList list,
926 FilterOption value, int index);
929 protected abstract void stateChanged(ItemEvent e);
931 protected abstract void add_ActionPerformed();
933 protected abstract void newView_ActionPerformed();
935 protected abstract void pdbFromFile_actionPerformed();
937 protected abstract void txt_search_ActionPerformed();
939 protected abstract void populateCmbAssociateSeqOptions(
940 JComboBox<AssociateSeqOptions> cmb_assSeq,
941 JLabel lbl_associateSeq);
943 protected abstract void cmbAssSeqStateChanged();
945 protected abstract void tabRefresh();
947 protected abstract void validateSelections();