Examples of Page


Examples of org.pdfclown.documents.Page

  {
    // Set default page size (A4)!
    document.setPageSize(PageFormat.getSize());

    // Add page!
    Page page = new Page(document);
    document.getPages().add(page);
    Dimension2D pageSize = page.getSize();

    PrimitiveComposer composer = new PrimitiveComposer(page);
    // Add the background template!
    composer.showXObject(
      SampleHelper.createTemplate(document)
View Full Code Here

Examples of org.sonatype.nexus.httpclient.Page

          final ResourceStoreRequest rmRequest = new ResourceStoreRequest("/.meta/repository-metadata.xml");
          final URL nxRepoMetadataUrl = appendQueryString(
              repository, rmRequest,
              getAbsoluteUrlFromBase(repository, rmRequest));
          try {
            final Page page = Page.getPageFor(pageContext, nxRepoMetadataUrl.toExternalForm());
            if (page.getStatusCode() == 200) {
              // this is a Nexus with browsing disabled. say OK
              log.debug(
                  "Original GET request for URL {} failed with 404, but GET request for URL {} succeeded, we assume remote is a Nexus repository having browsing disabled.",
                  remoteUrl, nxRepoMetadataUrl);
              return true;
View Full Code Here

Examples of org.springframework.data.domain.Page

    }

    @Test
    public void findPersonsForPage() {
        List<Person> expected = new ArrayList<Person>();
        Page foundPage = new PageImpl<Person>(expected);

        when(personRepositoryMock.findAll(any(Predicate.class), any(Pageable.class))).thenReturn(foundPage);

        List<Person> actual = repository.findPersonsForPage(SEARCH_TERM, PAGE_INDEX);
View Full Code Here

Examples of org.strecks.page.Page

  @Test
  public void testNavigationHandler()
  {

    Page pageClass = createStrictMock(Page.class);
    ActionContext actionContext = createStrictMock(TestContextImpl.class);
    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(pageClass.getPagePath()).andReturn("page_path");
    expect(actionContext.getResponse()).andReturn(null);
    pageClass.setHttpServletResponse(null);
    expect(actionContext.getRequest()).andReturn(request);
    request.setAttribute(InfrastructureKeys.PAGE_BEAN, pageClass);

    replay(pageClass);
    replay(actionContext);
View Full Code Here

Examples of org.structr.web.entity.dom.Page

    final App app = StructrApp.getInstance(securityContext);

    if (nodeToClone != null) {

      try {
        final Page pageToClone = nodeToClone instanceof Page ? (Page) nodeToClone : null;

        if (pageToClone != null) {

          //final List<DOMNode> elements = pageToClone.getProperty(Page.elements);
         
          DOMNode firstChild = (DOMNode) pageToClone.getFirstChild().getNextSibling();
         
          if (firstChild == null) {
            firstChild = (DOMNode) pageToClone.treeGetFirstChild();
          }
         
          final DOMNode newHtmlNode = cloneAndAppendChildren(securityContext, firstChild);
          final Page newPage = Page.createNewPage(securityContext, newName);
         
          newPage.appendChild(newHtmlNode);

        }

      } catch (FrameworkException fex) {
View Full Code Here

Examples of org.timedex.beans.Page

  public void setUpInternal() {
    pageDAO = new PageDAOImpl();
  }
 
  public void testFindByIdNotFound() {
    Page found = pageDAO.findById(-1);
   
    assertNull(found);
  }
View Full Code Here

Examples of org.uberfire.client.common.Page

        makeMenuBar();

        multiPage.addWidget( view,
                             ScoreCardXLSEditorConstants.INSTANCE.ScoreCard() );

        multiPage.addPage( new Page( metadataWidget,
                                     CommonConstants.INSTANCE.MetadataTabTitle() ) {
            @Override
            public void onFocus() {
                metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
                metadataService.call( new MetadataSuccessCallback( metadataWidget,
View Full Code Here

Examples of org.vorbis.jcraft.jogg.Page

     * Initializes all the jOrbis and jOgg vars that are used for song playback.
     */
    private void init_jorbis() {
        oggSyncState_ = new SyncState();
        oggStreamState_ = new StreamState();
        oggPage_ = new Page();
        oggPacket_ = new Packet();
        vorbisInfo = new Info();
        vorbisComment = new Comment();
        vorbisDspState = new DspState();
        vorbisBlock = new Block(vorbisDspState);
View Full Code Here

Examples of org.wikipediacleaner.api.data.Page

    if ((analysis == null) || (analysis.getPage() == null)) {
      return false;
    }

    // Preliminary setup
    Page page = analysis.getPage();
    String pageTitle = page.getTitle();
    String contents = analysis.getContents();
    List<Page> linkedPages = page.getLinks();
    if ((pageTitle == null) || (contents == null) || (linkedPages == null)) {
      return false;
    }
    List<PageElementInternalLink> links = analysis.getInternalLinks();
    if (links == null) {
      return false;
    }

    // Test every internal link
    boolean result = false;
    for (PageElementInternalLink link : links) {

      // Find page matching the link
      Page linkedPage = null;
      for (Page tmpPage : linkedPages) {
        if (Page.areSameTitle(tmpPage.getTitle(), link.getFullLink())) {
          linkedPage = tmpPage;
        }
      }

      // Check if the link is circular
      if ((linkedPage != null) &&
          linkedPage.isRedirect() &&
          Page.areSameTitle(pageTitle, linkedPage.getRedirectTitle())) {
        if (errors == null) {
          return true;
        }
        result = true;
        PageElementTag tagImagemap = analysis.getSurroundingTag(
View Full Code Here

Examples of org.woped.pnml.NetType.Page

                // A sub-process is a reference transition with an associated page
              // First, generate the transition itself
                initTransition(iNet.addNewTransition(), (TransitionModel) currentModel, null);
                // Create the page and add the sub-net to it
                // by calling ourselves recursively
                Page newPage = iNet.addNewPage();
                // Associate the new page with the ID of the sub-process model
                // so it can be assigned back later on when importing the net
                newPage.setId(currentModel.getId());
                // Create a new XMLBean representing the sub-net
                NetType newNet = newPage.addNewNet();
               
                ModelElementContainer subProcessContainer =                
                  ((SubProcessModel)currentModel).getSimpleTransContainer();
               
                EditorLayoutInfo subProcessLayout =subProcessContainer.getEditorLayoutInfo();
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.