Examples of PageData


Examples of com.eclipsesource.tabris.ui.PageData

    this.ui = ui;
  }

  @Override
  public void openPage( String pageId ) throws IllegalStateException {
    openPage( pageId, new PageData() );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

  public void createRootPages( UIImpl ui ) {
    List<PageDescriptor> pageDescriptors = uiDescriptor.getRootPages();
    when( pageDescriptors.isEmpty() ).throwIllegalState( "No TopLevel Pages found." );
    createTopLevelPageRenderer( ui, pageDescriptors );
    showRoot( ui, pageDescriptors.get( 0 ), new PageData() );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

  private void createTopLevelPageRenderer( UIImpl ui, List<PageDescriptor> pages ) {
    for( PageDescriptor descriptor : pages ) {
      if( !exist( descriptor ) ) {
        RendererFactory rendererFactory = uiDescriptor.getRendererFactory();
        PageRenderer renderer = rendererFactory.createPageRenderer( ui, uiRenderer, descriptor, new PageData() );
        topLevelPageRenderers.put( descriptor, renderer );
        renderer.createControl( pageParent );
      }
    }
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

  private void showSearchResultsPage( String query ) {
    if( getCurrentPage() instanceof SearchResultsPage ) {
      closeCurrentPage();
    }
    PageData data = new PageData();
    data.set( SearchResultsPage.SEARCH_QUERY, query );
    openPage( SearchResultsPage.class.getName(), data );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

  private void addGroupedEventsListener( final Book book ) {
    onComposite( bookDetailsComposite ).addGroupedListener( SWT.MouseDown, new Listener() {

      @Override
      public void handleEvent( Event event ) {
        PageData readData = new PageData();
        readData.set( ReadBookPage.BOOK_ITEM, book );
        openPage( ReadBookPage.class.getName(), readData );
      }
    } );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

        PageConfiguration pageConfiguration = new PageConfiguration( id, DynamicPage.class )
                                                .setTitle( "Root Page: " + id )
                                                .setTopLevel( true );
        pageConfiguration.addActionConfiguration( actionConfiguration );
        getUIConfiguration().addPageConfiguration( pageConfiguration );
        PageData pageData = new PageData();
        pageData.set( "id", id );
        rootPageIds.add( id );
        openPage( id, pageData );
      }
    } );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

        String id = createId();
        PageConfiguration pageConfiguration = new PageConfiguration( id, DynamicPage.class )
                                              .setTitle( "Page: " + id )
                                              .setTopLevel( false );
        getUIConfiguration().addPageConfiguration( pageConfiguration );
        PageData pageData = new PageData();
        pageData.set( "id", id );
        openPage( id, pageData );
      }
    } );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

    viewer.addSelectionChangedListener( new ISelectionChangedListener() {
      @Override
      public void selectionChanged( SelectionChangedEvent event ) {
        Object book = ( ( IStructuredSelection )event.getSelection() ).getFirstElement();
        if( book != null ) {
          PageData data = new PageData();
          data.set( BOOK_ITEM, book );
          page.openPage( BookDetailsPage.class.getName(), data );
        }
      }
    } );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.PageData

      showSearchResultsPage( query );
    }
  }

  private void showBookDetailsPage( Book book ) {
    PageData data = new PageData();
    data.set( BOOK_ITEM, book );
    openPage( BookDetailsPage.class.getName(), data );
  }
View Full Code Here

Examples of fitnesse.wiki.PageData

  @Before
  public void setUp() throws Exception {
    root = InMemoryPage.makeRoot("RooT");
    page = WikiPageUtil.addPage(root, PathParser.parse("PageOne"), "some content");
    PageData data = page.getData();
    WikiPageProperties properties = data.getProperties();
    properties.set(PageData.PropertySUITES,"Page One tags");
    page.commit(data);
    FitNesseUtil.makeTestContext(root);
  }
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.