/** * As for the method above but allows a non-ScuflUIComponent JComponent. * Internally this component is wrapped up in a trivial ScuflUIComponent * which entirely ignores the workflow model settings. */ public static void createFrame(JComponent rawComponent, int posX, int posY, int width, int height) { UIComponentSPI p = new WrapperFrame(rawComponent); createFrame(null, p, posX, posY, width, height); }
public void actionPerformed(ActionEvent ae) { // If the workbench is present then create and display a new // panel to configure the script engine. UIUtils.createFrame(apProcessor.getModel(), new APConfigPanel( apProcessor), 100, 100, 400, 500); } };
public void actionPerformed(ActionEvent e) { Dimension loc = AbstractProcessorAction.this.getFrameLocation(); Dimension size = AbstractProcessorAction.this.getFrameSize(); Component c = getComponent(theProcessor); UIComponentSPI frame = new SimpleFrame(c, theProcessor); UIUtils.createFrame((ScuflModel)null, frame, (int)loc.getWidth(), (int)loc.getHeight(), (int)size.getWidth(), (int)size.getHeight()); } };
public void actionPerformed(ActionEvent ae) { UIUtils.createFrame(sp.getModel(), new PollingPropertiesPanel( sp), 100, 100, 280, 125); } };
public void actionPerformed(ActionEvent ae) { // If the workbench is present then create and display a new // panel to configure the script engine. UIUtils.createFrame(rProcessor.getModel(), new RshellConfigPanel(rProcessor), 100, 100, 400, 500); } };
public void actionPerformed(ActionEvent e) { Port port = (Port) modelObject; UIUtils.createFrame(model, new ScuflSemanticMarkupEditor( port.getMetadata()), 100, 100, 400, 600); }
public void actionPerformed(ActionEvent ae) { // If the workbench is present then create and display a new // panel to configure the script engine. UIUtils.createFrame(bp.getModel(), new BSFConfigPanel(bp), 100, 100, 400, 500); /** * if (Workbench.workbench != null) { GenericUIComponentFrame * thing = new * GenericUIComponentFrame(Workbench.workbench.model, new * BeanshellConfigPanel(bp)); thing.setSize(400,500); * thing.setLocation(100,100); * Workbench.workbench.desktop.add(thing); thing.moveToFront(); } */ } };
public void actionPerformed(ActionEvent ae) { // If the workbench is present then create and display a new // panel to configure the script engine. UIUtils.createFrame(bp.getModel(), new BeanshellConfigPanel(bp), 50, 50, 500, 600); /** * if (Workbench.workbench != null) { GenericUIComponentFrame * thing = new * GenericUIComponentFrame(Workbench.workbench.model, new * BeanshellConfigPanel(bp)); thing.setSize(400,500); * thing.setLocation(100,100); * Workbench.workbench.desktop.add(thing); thing.moveToFront(); } */ } };
public void actionPerformed(ActionEvent ae) { // If the workbench is present then create and display a new // panel to configure the script engine. UIUtils.createFrame(bp.getModel(), new RservConfigPanel(bp), 100, 100, 400, 500); /** * if (Workbench.workbench != null) { GenericUIComponentFrame * thing = new * GenericUIComponentFrame(Workbench.workbench.model, new * RservConfigPanel(bp)); thing.setSize(400,500); * thing.setLocation(100,100); * Workbench.workbench.desktop.add(thing); thing.moveToFront(); } */ } };
UIUtils.createFrame(panel, 50, 50, 600, 600); return panel;
public void executeWorkflowInGUI(String scuflWorkflow, UserContext userContext) throws Exception { setStupidLSIDProvider(); final ScuflModel model = new ScuflModel(); InputStream scufl = ClassLoader .getSystemResourceAsStream(scuflWorkflow); XScuflParser.populate(scufl, model, null); EnactorProxy enactor = FreefluoEnactorProxy.getInstance(); WorkflowInstance workflowInstance = enactor.compileWorkflow(model, new HashMap(), userContext); UIUtils.createFrame(model, new EnactorInvocation(workflowInstance), 100, 100, 600, 400); }