Package org.moltools.apps.probemaker.project

Examples of org.moltools.apps.probemaker.project.ProjectTemplate


  @Override
  public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus) {
   
    if (value instanceof ProjectTemplate) {
      ProjectTemplate template = (ProjectTemplate) value;
      String display = template.getName();
      Component comp = super.getListCellRendererComponent(list, display, index, isSelected, cellHasFocus);     
      if (comp instanceof JComponent) {       
        ((JComponent) comp).setToolTipText(template.getDescription());
      }
      return comp;
    }
    return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
  }
View Full Code Here


    controlPane.add(deleteButton,0);
    controlPane.add(Box.createHorizontalStrut(5),0);
    controlPane.add(newButton,0);

    TemplateEditor protE = new TemplateEditor(new ProjectTemplate(),null,null,null);
    JPanel protP = new JPanel();
    protP.setPreferredSize(protE.getEditorComponent().getPreferredSize());
    JPanel prototype = new JPanel();
    prototype.add(protP);
    JComponent[] components = new JComponent[editors.size()];
View Full Code Here

          cardPane.remove(cardPane.getComponent(index+1));
          cardPane.validate();
        }
      }
      else if (e.getSource() == newButton) {
        ProjectTemplate temp = new ProjectTemplate();
        temp.setName(SwingUIMessages.getString("TemplateManagerDialog.NAME_NEW_TEMPLATE")); //$NON-NLS-1$
        manager.addTemplate(temp);
        editors.add(new TemplateEditor(temp,classesLists,fileChooser,GUIUtils.getParentFrame(this)));
        String name = String.valueOf(manager.getTemplateCount()-1);
        Object o = editors.get(editors.size()-1);
        JPanel p = new JPanel();
View Full Code Here

TOP

Related Classes of org.moltools.apps.probemaker.project.ProjectTemplate

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.