Examples of IPage


Examples of ag.ion.bion.officelayer.text.IPage

      ITextDocument textDocument = (ITextDocument) localOfficeApplication
          .getDocumentService().constructNewDocument(
              IDocument.WRITER, new DocumentDescriptor());
      IPageService pageService = textDocument.getPageService();
      IPage page = pageService.getPage(0);
      IPageStyle pageStyle = page.getPageStyle();
      IPageStyleProperties pageStyleProperties = pageStyle
          .getProperties();
      boolean value = pageStyleProperties.getIsLandscape();
      Assert.assertEquals(false, value);

      ITextTable textTable = textDocument.getTextTableService()
          .constructTextTable(5, 15);
      textDocument.getTextService().getTextContentService()
          .insertTextContent(textTable);
      page = pageService.getPage(0);
      pageStyle = page.getPageStyle();
      pageStyleProperties = pageStyle.getProperties();
      value = pageStyleProperties.getIsLandscape();
      Assert.assertEquals(false, value);

      localOfficeApplication.deactivate();
View Full Code Here

Examples of com.agiletec.aps.system.services.page.IPage

    boolean checked = false;
    String selectedNode = this.getPageCodeParam();
    if (null == selectedNode || selectedNode.trim().length() == 0) {
      this.addActionError(this.getText("error.noPageSelected"));
    } else {
      IPage targetPage = this.getPage(selectedNode);
      if (targetPage == null) {
        this.addActionError(this.getText("error.noPageSelected"));
      } else {
        if (this.getFrameIdParam() == null) {
          this.addActionError(this.getText("error.invalidWidgetType"));
        } else {
          int frame = this.getFrameIdParam().intValue();
          if (selectedNode.equals(this.getPageCode()) && frame==this.getFrame()) {
            this.addActionError(this.getText("error.target.currentFrame"));
          } else {
            Widget[] showlets = targetPage.getWidgets();
            if (showlets.length <= frame) {
              this.addActionError(this.getText("error.invalidWidgetType"));
            } else {
              Widget showlet = showlets[frame];
              if (showlet != null && this.getInvalidShowletTypes().contains(showlet.getType().getCode())) {
View Full Code Here

Examples of org.apache.tapestry.IPage

                break;
            }
            catch (RemoteException ex)
            {
                IPage page = getPage();

                if (i++ == 0)
                    getListener().actionTriggered(this, page.getRequestCycle());
                else
                {
                    VirtualLibraryEngine vengine = (VirtualLibraryEngine) page.getEngine();
                    vengine.rmiFailure("Unable to retrieve query results.", ex, i);
                }

            }
        }
View Full Code Here

Examples of org.apache.tapestry.IPage

        String pageName = context[0];

        if (engine.isResetServiceEnabled())
            engine.clearCachedData();

        IPage page = cycle.getPage(pageName);

        cycle.activate(page);

        // Render the same page (that contained the reset link).
View Full Code Here

Examples of org.apache.tapestry.IPage

        IEngineServiceView engine,
        IRequestCycle cycle,
        ResponseOutputStream output)
        throws ServletException, IOException
    {
        IPage home = cycle.getPage(IEngine.HOME_PAGE);

        cycle.activate(home);

        engine.renderResponse(cycle, output);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

        Throwable cause)
        throws ServletException
    {
        try
        {
            IPage exceptionPage = cycle.getPage(getExceptionPageName());

            exceptionPage.setProperty("exception", cause);

            cycle.activate(exceptionPage);

            renderResponse(cycle, output);
View Full Code Here

Examples of org.apache.tapestry.IPage

    {
        // Discard any output from the previous page.

        out.reset();

        IPage page = cycle.getPage(pageName);

        cycle.activate(page);

        renderResponse(cycle, out);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

            servlet.writeLocaleCookie(_locale, this, context);
        }

        // Commit all changes and ignore further changes.

        IPage page = cycle.getPage();

        IMarkupWriter writer = page.getResponseWriter(output);

        output.setContentType(writer.getContentType());

        boolean discard = true;
View Full Code Here

Examples of org.apache.tapestry.IPage

        IRequestCycle cycle,
        ResponseOutputStream output)
        throws IOException, ServletException
    {
        String staleLinkPageName = getStaleLinkPageName();
        IPage page = cycle.getPage(staleLinkPageName);

        page.setProperty("message", ex.getMessage());

        redirect(staleLinkPageName, cycle, output, ex);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

        // can implement validate() and throw a PageRedirectException if they don't
        // want to be accessed this way.  For example, most applications have a concept
        // of a "login" and have a few pages that don't require the user to be logged in,
        // and other pages that do.  The protected pages should redirect to a login page.

        IPage page = cycle.getPage(pageName);

        cycle.activate(page);

        engine.renderResponse(cycle, output);
    }
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.