use of cbit.vcell.biomodel.meta.MiriamManager.DataType in project vcell by virtualcell.
the class MIRIAMAnnotationEditor method getJComboBoxURI.
/**
* This method initializes jComboBoxURI
*
* @return javax.swing.JComboBox
*/
private JComboBox getJComboBoxURI() {
if (jComboBoxURI == null) {
jComboBoxURI = new JComboBox();
DefaultComboBoxModel defaultComboBoxModel = new DefaultComboBoxModel();
for (DataType dataType : vcMetaData.getMiriamManager().getAllDataTypes().values()) {
defaultComboBoxModel.addElement(dataType);
}
jComboBoxURI.setModel(defaultComboBoxModel);
jComboBoxURI.setRenderer(new DefaultListCellRenderer() {
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
return super.getListCellRendererComponent(list, ((DataType) value).getDataTypeName(), index, isSelected, cellHasFocus);
}
});
}
return jComboBoxURI;
}
Aggregations