protected JComboBox<FilterOption> cmb_filterOption = new JComboBox<FilterOption>();
protected AlignmentPanel ap;
-
+
protected StringBuilder errorWarning = new StringBuilder();
protected JLabel lbl_result = new JLabel(
protected JLabel lbl_fromFileStatus = new JLabel(errorImage);
-
protected AssciateSeqPanel idInputAssSeqPanel = new AssciateSeqPanel();
protected AssciateSeqPanel fileChooserAssSeqPanel = new AssciateSeqPanel();
}
};
- protected JScrollPane scrl_foundStructures = new JScrollPane(
- tbl_summary);
+ protected JScrollPane scrl_foundStructures = new JScrollPane(tbl_summary);
protected JTable tbl_local_pdb = new JTable();
PreferenceSource.STRUCTURE_CHOOSER);
protected PDBDocField[] previousWantedFields;
+
public GStructureChooser()
{
try
pnl_main.add(chk_invertFilter);
lbl_loading.setVisible(false);
-
pnl_fileChooser.add(btn_pdbFromFile);
pnl_fileChooser.add(lbl_fromFileStatus);
pnl_fileChooserBL.add(fileChooserAssSeqPanel, BorderLayout.NORTH);
pnl_idInput.add(lbl_pdbManualFetchStatus);
pnl_idInputBL.add(idInputAssSeqPanel, BorderLayout.NORTH);
pnl_idInputBL.add(pnl_idInput, BorderLayout.CENTER);
-
+
final String foundStructureSummary = MessageManager
.getString("label.found_structures_summary");
final String configureCols = MessageManager
JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent
.getSource();
int index = sourceTabbedPane.getSelectedIndex();
- if (sourceTabbedPane.getTitleAt(index)
-.equals(configureCols))
+ if (sourceTabbedPane.getTitleAt(index).equals(configureCols))
{
btn_view.setEnabled(false);
btn_cancel.setEnabled(false);
pnl_filter.setPreferredSize(new Dimension(500, 300));
pnl_filter.add(foundStructureSummary, scrl_foundStructures);
pnl_filter.add(configureCols, pdbDocFieldPrefs);
-
+
pnl_locPDB.add(scrl_localPDB);
pnl_switchableViews.add(pnl_fileChooserBL, VIEWS_FROM_FILE);
pnl_switchableViews.add(pnl_idInputBL, VIEWS_ENTER_ID);
pnl_switchableViews.add(pnl_filter, VIEWS_FILTER);
pnl_switchableViews.add(pnl_locPDB, VIEWS_LOCAL_PDB);
-
+
this.setLayout(mainLayout);
this.add(pnl_main, java.awt.BorderLayout.NORTH);
this.add(pnl_switchableViews, java.awt.BorderLayout.CENTER);
previousWantedFields) ? false : true;
}
-
+
@Override
/**
* Event listener for the 'filter' combo-box and 'invert' check-box
public class AssociateSeqOptions
{
private SequenceI sequence;
+
private String name;
public AssociateSeqOptions(SequenceI seq)