Examples of LiquidClass


Examples of mbj.robotdriver.liquidclass.LiquidClass

    gridbag.setConstraints(positionInRack, gbc);
    mainPanel.add(positionInRack);
    // Third the LiquidClass ComboBox
    liquidClassNames = new JComboBox(robotDriver.tecanLiquidClasses().toArray());
    // getting the default liquidClass for this chemical
    LiquidClass defaultLiquidClass = robotDriver.tecanChemicalLiquidClasses().getDefaultLiquidClass(this.chemical(), robotDriver.tecanLiquidClasses());
    if (defaultLiquidClass == null) {
      liquidClassNames.setSelectedIndex(0);
      this.chemical().pipettingInfo().setLiquidClass(robotDriver.tecanLiquidClasses().get(0));
    } else {
      liquidClassNames.setSelectedItem(defaultLiquidClass);
      this.chemical().pipettingInfo().setLiquidClass(defaultLiquidClass);
    }
    liquidClassNames.addActionListener(
        new AbstractAction() {
          private static final long serialVersionUID = 1L;
          public void actionPerformed(ActionEvent event) {
            JComboBox cb = (JComboBox) event.getSource();
            LiquidClass newSelection = (LiquidClass)cb.getSelectedItem();
            Ingredient.this.chemical().pipettingInfo().setLiquidClass(newSelection);
          }
        }
    );
    gridbag.setConstraints(liquidClassNames, gbc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.