warning.wrong_jvm_version_title = Wrong Java Version
warning.wrong_jvm_version_message = The Java version being used (Java {0}) may lead to problems.\nThis installation of Jalview should be used with Java {1}.
label.alphafold_reliability = Alphafold Reliability
+label.tftype_default = Default
+label.tftype_plddt = pLDDT
+label.tftype_dose = Dose
+label.optional = (optional)
+label.choose_tempfac_type = Choose Temperature Factor type
+label.add_pae_matrix_file = Add PAE matrix file
import java.util.HashMap;
import java.util.Map;
+import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import jalview.gui.Desktop;
import jalview.gui.JvSwingUtils;
import jalview.gui.StructureViewer;
+import jalview.structure.StructureImportSettings;
+import jalview.structure.StructureImportSettings.TFType;
import jalview.util.MessageManager;
import jalview.util.Platform;
import net.miginfocom.swing.MigLayout;
protected JButton btn_pdbFromFile = new JButton();
+ protected JComboBox<StructureImportSettings.TFType> combo_tempFacAs = new JComboBox<>();
+
+ protected JButton btn_paeMatrixFile = new JButton();
+
// holder for icon and button
protected JPanel pnl_queryTDB;
}
});
+ JLabel lbl_chooseTempFacType = new JLabel(new StringBuilder()
+ .append(MessageManager.getString("label.choose_tempfac_type"))
+ .append(" ").append("label.optional").toString());
+
+ for (TFType t : TFType.values())
+ {
+ combo_tempFacAs.addItem(t);
+ }
+ // add changelistener
+
+ btn_paeMatrixFile.setText(new StringBuilder()
+ .append(MessageManager.getString("label.add_pae_matrix_file"))
+ .append(" ").append(MessageManager.getString("label.optional"))
+ .toString());
+ ;
+ // add actionlistener
+
JScrollPane scrl_foundStructures = new JScrollPane(tbl_summary);
scrl_foundStructures.setPreferredSize(new Dimension(width, height));
JPanel pnl_fileChooser = new JPanel(new FlowLayout());
pnl_fileChooser.add(btn_pdbFromFile);
pnl_fileChooser.add(lbl_fromFileStatus);
+
+ JPanel pnl_pdbOptions = new JPanel();
+ pnl_pdbOptions
+ .setLayout(new BoxLayout(pnl_pdbOptions, BoxLayout.PAGE_AXIS));
+ pnl_pdbOptions.add(lbl_chooseTempFacType);
+ pnl_pdbOptions.add(combo_tempFacAs);
+ pnl_pdbOptions.add(btn_paeMatrixFile);
+
JPanel pnl_fileChooserBL = new JPanel(new BorderLayout());
- pnl_fileChooserBL.add(fileChooserAssSeqPanel, BorderLayout.NORTH);
+ pnl_fileChooserBL.add(fileChooserAssSeqPanel, BorderLayout.PAGE_START);
pnl_fileChooserBL.add(pnl_fileChooser, BorderLayout.CENTER);
+ // pnl_fileChooserBL.add(pnl_pdbOptions, BorderLayout.PAGE_END);
JPanel pnl_idInput = new JPanel(new FlowLayout());
pnl_idInput.add(txt_search);