Package org.openpnp.gui.support

Examples of org.openpnp.gui.support.Wizard


            Head head = getSelectedHead();

            configurationPanel.removeAll();
            if (head != null) {
              Wizard wizard = head.getConfigurationWizard();
              if (wizard != null) {
                wizard.setWizardContainer(HeadsPanel.this);
                JPanel panel = wizard.getWizardPanel();
                configurationPanel.add(panel);
              }
            }
            revalidate();
            repaint();
View Full Code Here


            Actuator actuator = getSelectedActuator();

            configurationPanel.removeAll();
            if (actuator != null) {
              Wizard wizard = actuator.getConfigurationWizard();
              if (wizard != null) {
                wizard.setWizardContainer(ActuatorsPanel.this);
                JPanel panel = wizard.getWizardPanel();
                configurationPanel.add(panel);
              }
            }
            revalidate();
            repaint();
View Full Code Here

        setLayout(new BorderLayout(0, 0));
        addComponentListener(new ComponentAdapter() {
      @Override
      public void componentShown(ComponentEvent e) {
        removeAll();
                Wizard wizard = Configuration.get().getMachine()
                        .getConfigurationWizard();
                if (wizard != null) {
                    wizard.setWizardContainer(MachinePanel.this);
                    JPanel panel = wizard.getWizardPanel();
                    add(panel);
                }
                revalidate();
                repaint();
      }
View Full Code Here

                visionProviderConfigPanel.removeAll();
               
        if (index != -1) {
          index = table.convertRowIndexToModel(index);
          Camera camera = tableModel.getCamera(index);
          Wizard generalConfigWizard = new CameraConfigurationWizard(camera);
          if (generalConfigWizard != null) {
            generalConfigWizard.setWizardContainer(CamerasPanel.this);
            JPanel panel = generalConfigWizard.getWizardPanel();
            generalConfigPanel.add(panel);
          }
         
                    Wizard cameraSpecificConfigWizard = camera.getConfigurationWizard();
                    if (cameraSpecificConfigWizard != null) {
                        cameraSpecificConfigWizard.setWizardContainer(CamerasPanel.this);
                        JPanel panel = cameraSpecificConfigWizard.getWizardPanel();
                        cameraSpecificConfigPanel.add(panel);
                    }
                   
                    VisionProvider visionProvider = camera.getVisionProvider();
                    if (visionProvider != null) {
                        Wizard visionProviderConfigWizard = visionProvider.getConfigurationWizard();
                        if (visionProviderConfigWizard != null) {
                            visionProviderConfigWizard.setWizardContainer(CamerasPanel.this);
                            JPanel panel = visionProviderConfigWizard.getWizardPanel();
                            visionProviderConfigPanel.add(panel);
                        }
                    }
        }
       
View Full Code Here

            feederSelectedActionGroup.setEnabled(feeder != null);

            configurationPanel.removeAll();
            if (feeder != null) {
              Wizard wizard = feeder.getConfigurationWizard();
              if (wizard != null) {
                wizard.setWizardContainer(FeedersPanel.this);
                JPanel panel = wizard.getWizardPanel();
                configurationPanel.add(panel);
              }
            }
            revalidate();
            repaint();
View Full Code Here

        nozzleTipSpecificConfigPanel.removeAll();
        if (index != -1) {
          index = table.convertRowIndexToModel(index);
          NozzleTip nozzleTip = tableModel.getNozzleTip(index);
//          Wizard generalConfigWizard = new NozzleConfigurationWizard(nozzle);
          Wizard generalConfigWizard = null;
          if (generalConfigWizard != null) {
            generalConfigWizard.setWizardContainer(NozzleTipsPanel.this);
            JPanel panel = generalConfigWizard.getWizardPanel();
            generalConfigPanel.add(panel);
          }
          Wizard nozzleTipSpecificConfigWizard = nozzleTip.getConfigurationWizard();
          if (nozzleTipSpecificConfigWizard != null) {
              nozzleTipSpecificConfigWizard.setWizardContainer(NozzleTipsPanel.this);
            JPanel panel = nozzleTipSpecificConfigWizard.getWizardPanel();
            nozzleTipSpecificConfigPanel.add(panel);
          }
        }
       
        revalidate();
View Full Code Here

        nozzleSpecificConfigPanel.removeAll();
        if (index != -1) {
          index = table.convertRowIndexToModel(index);
          Nozzle nozzle = tableModel.getNozzle(index);
//          Wizard generalConfigWizard = new NozzleConfigurationWizard(nozzle);
          Wizard generalConfigWizard = null;
          if (generalConfigWizard != null) {
            generalConfigWizard.setWizardContainer(NozzlesPanel.this);
            JPanel panel = generalConfigWizard.getWizardPanel();
            generalConfigPanel.add(panel);
          }
          Wizard nozzleSpecificConfigWizard = nozzle.getConfigurationWizard();
          if (nozzleSpecificConfigWizard != null) {
              nozzleSpecificConfigWizard.setWizardContainer(NozzlesPanel.this);
            JPanel panel = nozzleSpecificConfigWizard.getWizardPanel();
            nozzleSpecificConfigPanel.add(panel);
          }
        }
       
        revalidate();
View Full Code Here

TOP

Related Classes of org.openpnp.gui.support.Wizard

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.