public PetalsMasterInquiryWindow(IProjectInstance instance) { super("Import a WSDL via Petals Master", 500, 250); List<FileRepositoryDescription> repoDescs = new ArrayList<FileRepositoryDescription>(); repoDescs.add(new PetalsMasterDescription()); panel = new FileRepositoryInquiryPanel(instance, BPMNMetaDataFormat.WSDL1_1, repoDescs); panel.start(); this.setLayout(new FitLayout()); this.add(panel.asWidget()); }
@Override public Widget getMainWidget() { this.panel = new Panel(); panel.setBorder(false); panel.setLayout(new FitLayout()); panel.add((Widget) getDefaultLayout()); return panel; }
protected ProcessChoosingPanel(IDefinitionsBean defs) { setTitle("Choose the processes that will be deployed"); setAutoScroll(true); setLayout(new FitLayout()); setBorder(false); processTreeNodes = new HashSet<ProcessTreeNode>(); diagramPanel = new TreePanel("BPMN Diagram"); diagramPanel.setAutoScroll(true); diagramPanel.setBorder(false); diagramPanel.setEnableDD(true); TreeNode rootNode = new TreeNode(((defs.getName()==null || defs.getName().isEmpty()) ? "Diagram" : defs.getName())); rootNode.setExpanded(true); rootNode.setAllowDrop(false); rootNode.setAllowDrag(false); diagramPanel.setRootNode(rootNode); for(IParticipantBean participant : defs.getCollaborations().get(0).getParticipants()){ //skip empty/collapsed pools if(participant.getProcess()==null || participant.getProcess().getFlowNodes().isEmpty()) continue; TreeNode poolNode = new ProcessTreeNode(participant.getProcess()); poolNode.setChecked(false); poolNode.setAllowDrag(false); String text = (participant.getName()==null ? participant.getId() : participant.getName()); poolNode.setText(text); poolNode.setIcon(POOL_ICON); rootNode.appendChild(poolNode); } this.add(diagramPanel); }
welcomePanel.setHeader(false); welcomePanel.setBorder(false); welcomePanel.setLayout(new FitLayout());