Examples of FactoryListCellRenderer


Examples of org.jamesii.gui.utils.FactoryListCellRenderer

            && list.getSelectedValue() != null) {
          fireNext();
        }
      }
    });
    list.setCellRenderer(new FactoryListCellRenderer());
    list.addListSelectionListener(this);
    list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    infoLabel = new JTextPane();
    infoLabel.setEditable(false);
View Full Code Here

Examples of org.jamesii.gui.utils.FactoryListCellRenderer

  public FactoryComboBox(List<T> factories) {
    this.setModel(new FactoryComboBoxModel<>(factories));

    // set a renderer that displays just the factory name. Storage of the
    // parameters should be transparent after all.
    this.setRenderer(new FactoryListCellRenderer() {
      /** Serialisation ID. */
      private static final long serialVersionUID = -2268078941920094150L;

      @Override
      public Component getListCellRendererComponent(JList list, Object value,
View Full Code Here

Examples of org.jamesii.gui.utils.FactoryListCellRenderer

  @Override
  protected void prepopulatePage(IWizard wizard) {
    model = wizard.getValue(FormalismChooser.MODEL);

    editorList.setModel(new EditorListModel(model));
    editorList.setCellRenderer(new FactoryListCellRenderer());
    canNext = false;

    fireStatesChanged();
  }
View Full Code Here

Examples of org.jamesii.gui.utils.FactoryListCellRenderer

          BorderLayout.CENTER);
    }
    if (modelInstrumenters != null) {
      modelInstrumenters.add(0, new NoModelInstrumentation());
      modelInstrList = new JList(modelInstrumenters.toArray());
      modelInstrList.setCellRenderer(new FactoryListCellRenderer());
      modelInstrList.addListSelectionListener(new ListSelectionListener() {
        @Override
        public void valueChanged(ListSelectionEvent e) {
          selectedModInstrFac =
              modelInstrList.getSelectedIndex() == 0 ? null
View Full Code Here

Examples of org.jamesii.gui.utils.FactoryListCellRenderer

          BorderLayout.CENTER);
    }
    if (simulationInstrumenters != null) {
      simulationInstrumenters.add(0, new NoComputationTaskInstrumentation());
      simInstrList = new JList(simulationInstrumenters.toArray());
      simInstrList.setCellRenderer(new FactoryListCellRenderer());
      simInstrList.addListSelectionListener(new ListSelectionListener() {
        @Override
        public void valueChanged(ListSelectionEvent e) {
          selectedSimInstrFac =
              simInstrList.getSelectedIndex() == 0 ? null
View Full Code Here

Examples of org.jamesii.gui.utils.FactoryListCellRenderer

      }
      for (F f : factories) {
        factoryList.add(f);
      }
      factoryComboBox = new JComboBox<>(factoryList.toArray());
      factoryComboBox.setRenderer(new FactoryListCellRenderer());
    }

    // Select old factory, if there was any:
    if (oldFactory != null) {
      String dsName = oldFactory.getClass().getName();
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.