Package org.openquark.samples.bam.model

Examples of org.openquark.samples.bam.model.MetricBinding


            }
        } else if (metricRadioButton.isSelected()) {
            MetricComboItem item = (MetricComboItem)getMetricCombo().getSelectedItem();
           
            if (item != null) {
                result = new MetricBinding (item.metricDescription);
            }
        } else if (getConstantRadioButton ().isSelected ()) {
            String text = constantTextField.getText ();

            Object value = null;
View Full Code Here


        boolean metricAvailable = metricCombo.getItemCount() != 0;
       
        metricRadioButton.setEnabled(metricAvailable);
        metricCombo.setEnabled(metricAvailable);
       
        MetricBinding metricBinding = null;
       
        InputListItem item = getSelectedInputListItem ();
       
        if (item != null) {
            InputBinding binding = item.getInputBinding();
           
            if (binding instanceof MetricBinding) {
                metricBinding = (MetricBinding)binding;
            }
        }
       
        if (metricBinding != null) {
            metricCombo.setSelectedItem(new MetricComboItem (metricBinding.getMetricDescription()));
           
            metricRadioButton.setSelected(true);
        } else {
            metricCombo.setSelectedIndex(-1);
           
View Full Code Here

                Set<GemEntity> gemEntities = new MetricGemFilter(propertyType, printableType ).getMatchingGems();
                for (final GemEntity gemEntity : gemEntities) {
                    MetricDescription metricDescription=new MetricDescription(gemEntity.getName(), propertyInfo );
                    model.addElement(new MetricItem (metricDescription));                       

                    argumentNameToBindingMap.put(metricDescription.getDescription(), new MetricBinding(metricDescription));                   
                }                   
            }
                   
            argumentJList = new JList (model);
           
View Full Code Here

TOP

Related Classes of org.openquark.samples.bam.model.MetricBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.