public FileRepositoryInquiryPanel(IProjectInstance instance, IProjectInstanceFormat format, List<FileRepositoryDescription> repoDescs) { super(); this.instance = instance; this.format = format; this.repoDescs = repoDescs; this.projectMetadata = new ArrayList<IProjectInstanceMetaData>(); this.fileRepoPanel = new Panel(); fileRepoPanel.setPaddings(10); //fileRepoPanel.setLayout(new FitLayout()); fileRepoPanel.setLayout(new AnchorLayout()); }
@Override public Widget getMainWidget() { this.panel = new Panel(); panel.setBorder(false); panel.setLayout(new FitLayout()); panel.add((Widget) getDefaultLayout()); return panel; }
setAutoScroll(true); setTitle("Deploy your BPMN 2.0 processes"); setLayout(new ColumnLayout()); add(choosingPanel, new ColumnLayoutData(0.4)); add(executorPanel, new ColumnLayoutData(0.6));
borderPanel.setLayout(new BorderLayout()); northPanelContainer.add(header); borderPanel.add(northPanelContainer, new BorderLayoutData(RegionPosition.NORTH)); BorderLayoutData southData = new BorderLayoutData(RegionPosition.SOUTH); southData.setMinSize(100); southData.setMaxSize(200); southData.setMargins(new Margins(0, 0, 0, 0)); southData.setSplit(true); borderPanel.add(southPanel, southData); BorderLayoutData westData = new BorderLayoutData(RegionPosition.WEST); westData.setSplit(true); westData.setMinSize(175); westData.setMaxSize(400); westData.setMargins(new Margins(0, 5, 0, 0)); borderPanel.add(centerPanel, new BorderLayoutData(RegionPosition.CENTER));
Panel mainPanel = new Panel(); mainPanel.setBorder(false); mainPanel.setLayout(new AnchorLayout()); mfp.addToRow(r,new ColumnLayoutData(i)); i++; buttonPanel.setPaddings(5); mainPanel.add(formPanel, new AnchorLayoutData("100% 80%")); mainPanel.add(buttonPanel, new AnchorLayoutData("100% 20%")); fileRepoPanel.add(mainPanel, new AnchorLayoutData("100% 100%")); fileRepoPanel.doLayout();
private WizardFrame getFrame1(){ WizardFrame frame = new WizardFrame((Wizard) getWizard()); Panel vp1 = new Panel(); vp1.setLayout(new VerticalLayout(10)); vp1.add(actualProjectNameLbl); vp1.add(actualProjectTypeLbl); Panel hp = new Panel(); hp.setLayout(new HorizontalLayout(3)); hp.add(new Label("Export format: ")); hp.add((Widget) getExportFormat()); vp1.add(hp); vp1.add(exportFormatDescriptionLBL); frame.add(vp1); return frame; }
panel.setLayout(new HorizontalLayout(15)); Button button = new Button("Get selected "+chosenFileRepoDesc.getFileFormatDisplayName()+" files", new ButtonListenerAdapter(){ @Override fileRepoPanel.add(panel, new RowLayoutData(30)); fileRepoPanel.doLayout();
interfaceAttributesPanel.setLayout(new HorizontalLayout(30)); namep.setLayout(new HorizontalLayout(5)); namep.add(new Label("Interface Name: ")); namep.add(interfaceNameTxtField); implp.setLayout(new HorizontalLayout(5)); implp.add(new Label("WSDL Implementation: "));
} else { r.setHideLabel(true); mfp.addToRow(r, new ColumnLayoutData(1)); mfp = null;
this.setLayout(new VerticalLayout(20));
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()); }
hP1.setLayout(new HorizontalLayout(10)); hP1.add((Widget) getFolderPanel()); verticalPanel1.setLayout(new VerticalLayout(10)); vp2.setLayout(new VerticalLayout(3)); vp2.add(new Label("Select a file from your desktop:")); vp2.add((Widget) getUploader()); hp2.setLayout(new HorizontalLayout(3)); hp2.add(new Label("File format:")); hp2.add((Widget) getImportFormat());
Panel hp = new Panel(); hp.setBorder(false); hp.setLayout(new HorizontalLayout(15));
protected ProcessExecutorPanel(Collection<? extends ProcessExecutorDescription> descs, final BPMNDeploymentServiceAsync service) { super(); setHeight(BPMNDeployerPanel.HEIGHT); setLayout(new AnchorLayout()); setAutoScroll(true); setTitle("Choose a process executor");
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());