Examples of PlugInRenderer


Examples of net.sf.apptools.ui.swing.plugin.PlugInRenderer

        }
      };
     
      availableModulesList = new ModuleDragDropList(availableModel,
          ModuleDragDropList.SOURCE);
      availableModulesList.setCellRenderer(new PlugInRenderer(ttAvail));
      availableModulesList.setPrototypeCellValue(protoLabel);
      availableModulesList.setVisibleRowCount(20);
      availableModulesList.addMouseListener(new PlugInDescriptionMouseListener(availableModulesList));
     
      tssModulesList = new ModuleDragDropList(tssModel,
                                              ModuleDragDropList.TARGET);
      tssModulesList.setCellRenderer(new PlugInRenderer(ttStage));
      tssModulesList.setPrototypeCellValue(protoLabel);
      tssModulesList.addMouseListener(new PlugInParameterMouseListener(this,tssModulesList));
     
      tssTestList = new JList(tssTestModel);
      tssTestList.setCellRenderer(new TestBox());
      tssTestList.setPrototypeCellValue(protoTestBox);
      tssModel.addListDataListener(tssTestModel);
      tssTestList.addMouseListener(new TestList_MouseAdapter(tssTestList));

      stage1ModulesList = new ModuleDragDropList(stage1Model,
                                                 ModuleDragDropList.TARGET);
      stage1ModulesList.setCellRenderer(new PlugInRenderer(ttStage));
      stage1ModulesList.setPrototypeCellValue(protoLabel);
      stage1ModulesList.addMouseListener(new PlugInParameterMouseListener(this,stage1ModulesList));
     
      stage1TestList = new JList(stage1TestModel);
      stage1TestList.setCellRenderer(new TestBox());
      stage1TestList.setPrototypeCellValue(protoTestBox);
      stage1Model.addListDataListener(stage1TestModel);
      stage1TestList.addMouseListener(new TestList_MouseAdapter(stage1TestList));

      stage2ModulesList = new ModuleDragDropList(stage2Model,
                                                 ModuleDragDropList.TARGET);
      stage2ModulesList.setCellRenderer(new PlugInRenderer(ttStage));
      stage2ModulesList.setPrototypeCellValue(protoLabel);
      stage2ModulesList.addMouseListener(new PlugInParameterMouseListener(this,stage2ModulesList));
     
      stage2TestList = new JList(stage2TestModel);
      stage2TestList.setCellRenderer(new TestBox());
View Full Code Here

Examples of net.sf.apptools.ui.swing.plugin.PlugInRenderer

            if (fc.showDialog(panel, SwingUIMessages.getString("TemplateEditor.CAPTION_SELECT_SETTINGS_FILE")) == JFileChooser.APPROVE_OPTION) { //$NON-NLS-1$
              fields[PARAMS_FILE_NAME].setText(fc.getSelectedFile().getAbsolutePath());
            }
          }
          else if (src == buttons[TARGET]) {
            ListSelectionDialog d = new ListSelectionDialog(parent,SwingUIMessages.getString("TemplateEditor.TITLE_SELECT_TARGET_CLASS"),SwingUIMessages.getString("TemplateEditor.MESSAGE_SELECT_TARGET_CLASS"),null,classes[0],new PlugInRenderer("")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            d.setVisible(true);
            int result = d.getSelectedIndex();
            if (result >= 0) {
              fields[TARGET].setText(((Class<?>) classes[0].get(result)).getName());
            }
          }
          else if (src == buttons[CONVERTER]) {
            ListSelectionDialog d = new ListSelectionDialog(parent,SwingUIMessages.getString("TemplateEditor.TITLE_SELECT_CONVERTER"),SwingUIMessages.getString("TemplateEditor.MESSAGE_SELECT_CONVERTER"),null,classes[1],new PlugInRenderer("")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            d.setVisible(true);
            int result = d.getSelectedIndex();
            if (result >= 0) {
              fields[CONVERTER].setText(((Class<?>) classes[1].get(result)).getName());
            }
          }
          else if (src == buttons[FORMATTER]) {
            ListSelectionDialog d = new ListSelectionDialog(parent,SwingUIMessages.getString("TemplateEditor.TITLE_SELECT_FORMAT"),SwingUIMessages.getString("TemplateEditor.MESSAGE_SELECT_FORMAT"),null,classes[2],new PlugInRenderer("")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            d.setVisible(true);
            int result = d.getSelectedIndex();
            if (result >= 0) {
              fields[FORMATTER].setText(((Class<?>) classes[2].get(result)).getName());
            }
          }
          else if (src == buttons[DBINPUT]) {
            ListSelectionDialog d = new ListSelectionDialog(parent,SwingUIMessages.getString("TemplateEditor.TITLE_SELECT_DBBUILDER"),SwingUIMessages.getString("TemplateEditor.MESSAGE_SELECT_DBBUILDER"),null,classes[3],new PlugInRenderer("")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            d.setVisible(true);
            int result = d.getSelectedIndex();
            if (result >= 0) {
              fields[DBINPUT].setText(((Class<?>) classes[3].get(result)).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.