Examples of Window


Examples of javafx.stage.Window

     * If possible, centers on the parent.
     * @param stage
     * @param parent
     */
    private void sizeReasonably(Stage stage, Node parent) {
      Window window = JuFxUtils.getWindow(parent);
     
      // Get the preferred size of the stage
      Rectangle2D prefRect = new Rectangle2D(stage.getX(), stage.getY(), stage.getWidth(), stage.getHeight());
      Rectangle2D parentBounds = window != null
        ? new Rectangle2D(window.getX(), window.getY(), window.getWidth(), window.getHeight())
        : null;

      Rectangle2D rect = this.getReasonableSize(prefRect, parentBounds);
     
      stage.setX(rect.getMinX());
View Full Code Here

Examples of jfix.zk.Window

      getNode().setParent(null);
      Textarea textarea = new Textarea();
      textarea.setVflex("1");
      textarea.setHflex("1");
      textarea.setValue(getObject().getText());
      Window window = new Window(getObject().getPath());
      window.setHeight("75%");
      window.appendChild(textarea);
      window.doModal();
      getRoot().appendChild(window);
    } catch (Exception e) {
      Modal.exception(e);
      return;
    } finally {
View Full Code Here

Examples of jfxtras.labs.scene.control.window.Window

            if (sN == control
                    || !(sN instanceof Window)) {
                continue;
            }

            Window selectedWindow = (Window) sN;

            if (control.getParent().
                    equals(selectedWindow.getParent())
                    && selectedWindow.isMoveToFront()) {
               
                selectedWindow.toFront();
            }
        } // end for sN
    }
View Full Code Here

Examples of jfxtras.scene.control.window.Window

        // creates a pane that contains one window
        pane = new Pane();
        pane.setPrefSize(1024, 768);

        windowOne = new Window("Window Title 1");
        windowOne.setId("window-control-1");

        windowOne.setPrefSize(600, 400);
        windowOne.setLayoutX(100);
        windowOne.setLayoutY(100);

        windowTwo = new Window("Window Title 2");
        windowTwo.setId("window-control-2");

        windowTwo.setPrefSize(600, 400);
        windowTwo.setLayoutX(500);
        windowTwo.setLayoutY(280);
View Full Code Here

Examples of lupos.engine.operators.stream.Window

        if(dot == ASTType.TYPE.INSTANCESDURATION || dot == ASTType.TYPE.INSTANCESNUMBER){
          iri = ((ASTQuotedURIRef)n.jjtGetChild(0)).getLiteral(true);
        }
      }
    }
    final Window window;
    switch(dot){
      default:
      case TRIPLES:
        window = new WindowTriples(slidingNumber);
        break;
      case DURATION:
        window = new WindowDuration(slidingNumber);
        break;
      case INSTANCESNUMBER:
        window = new WindowInstancesNumber(slidingNumber, iri);
        break;
      case INSTANCESDURATION:
        window = new WindowInstancesDuration(slidingNumber, iri);
        break;
    }
    if (this.indexScanCreator_Stream.getStream() == null) {
      System.out.println("Query uses Window operations, but did not define a stream, asssuming STREAM INTERMEDIATERESULT TRIPLES 1");
      final CollectResult cr = new CollectResult(false);
      this.result.addApplication(cr);
      this.indexScanCreator_Stream.setStream(new StreamTriples(cr, 1));
    }
    this.indexScanCreator_Stream.getStream().addSucceedingOperator(new OperatorIDTuple(window, 0));
    final PatternMatcher currentPatternMatcher = new PatternMatcher();
    window.addSucceedingOperator(new OperatorIDTuple(currentPatternMatcher, 0));
    final PatternMatcher oldPatternMatcher = this.indexScanCreator_Stream.getCurrentPatternMatcher();
    this.indexScanCreator_Stream.setCurrentPatternMatcher(currentPatternMatcher);
    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      final Node n = node.jjtGetChild(i);
      if (!(n instanceof ASTType)) {
View Full Code Here

Examples of net.paoding.rose.web.portal.Window

        // 定义窗口任务
        WindowTask task = new WindowTask(window, request, response);

        // 注册到相关变量中
        Window windowInView = new WindowForView(window);
        synchronized (windows) {
            this.windows.add(windowInView);
        }
        // for render
        this.invocation.addModel(name, windowInView);
View Full Code Here

Examples of nextapp.echo2.app.Window

        ContainerContext cc = (ContainerContext) this.getContextProperty(ContainerContext.CONTEXT_PROPERTY_NAME);
        logger.debug("Servlet-URI: "+cc.getServletUri());
        cc.setServerDelayMessage(Styles.getServerDelayMsg());   
       

        mainWindow = new Window();
        mainWindow.setTitle("openJBS");
        //mainWindow.setContent(new PnMain());
        mainWindow.setContent(new PnLogin(mainWindow));
        return mainWindow;
    }
View Full Code Here

Examples of org.apache.batik.script.Window

      // http://xml.apache.org/batik/svgcanvas.html
      //this.javascriptWindow = org.xmlBlaster.util.Global.instance().getObjectEntry("SVG/Javascript/Interpreter");

      JavascriptCallback.javascriptWindow = javascriptWindow;

      Window window = ((RhinoInterpreter.ExtendedContext)Context.getCurrentContext()).getWindow();
      this.updateQueue = window.getBridgeContext().getUpdateManager().getUpdateRunnableQueue();
      this.interpreter = window.getInterpreter();

      /*
         // Add to svg drawing:
         //   function getWindow() {
         //     return this;
View Full Code Here

Examples of org.apache.flex.forks.batik.script.Window

                                     Scriptable thisObj,
                                     Object[] args,
                                     Function funObj)
        throws JavaScriptException {
        int len = args.length;
        Window window = ((RhinoInterpreter.ExtendedContext)cx).getWindow();
        if (len < 2) {
            throw Context.reportRuntimeError("invalid argument count");
        }
        long to = ((Long)Context.toType(args[1], Long.TYPE)).longValue();
        if (args[0] instanceof Function) {
            RhinoInterpreter interp =
                (RhinoInterpreter)window.getInterpreter();
            FunctionWrapper fw;
            fw = new FunctionWrapper(interp, (Function)args[0],
                                     EMPTY_ARGUMENTS);
            return Context.toObject(window.setInterval(fw, to), thisObj);
        }
        String script =
    (String)Context.toType(args[0], String.class);
        return Context.toObject(window.setInterval(script, to), thisObj);
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.Window

    {
      WindowManager wm = trinContext.getWindowManager();

      if (wm != null)
      {
        Window currWindow = wm.getCurrentWindow(external);

        if (currWindow != null)
        {
          return currWindow.getId();
        }
      }
    }

    return null;
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.