Package com.eclipsesource.tabris.ui

Examples of com.eclipsesource.tabris.ui.PageConfiguration


    page.addActionConfiguration( action );
    configuration.addPageConfiguration( page );
  }

  private void createPageSettings( UIConfiguration configuration ) {
    PageConfiguration page = new PageConfiguration( SettingsPage.class.getName(),
                                                    SettingsPage.class );
    page.setTitle( "Settings" );
    configuration.addPageConfiguration( page );
  }
View Full Code Here


    page.setTitle( "Settings" );
    configuration.addPageConfiguration( page );
  }

  private void createSearchResultsPage( UIConfiguration configuration ) {
    PageConfiguration page = new PageConfiguration( SearchResultsPage.class.getName(),
                                                    SearchResultsPage.class );
    configuration.addPageConfiguration( page );
  }
View Full Code Here

      @Override
      public void widgetSelected( SelectionEvent e ) {
        String id = createId();
        InputStream image = DynamicPage.class.getResourceAsStream( "/action_share.png" );
        ActionConfiguration actionConfiguration = new ActionConfiguration( id, DynamicAction.class ).setImage( image );
        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

    applyImage( "/add_page.png", addPageButton );
    addPageButton.addSelectionListener( new SelectionAdapter() {
      @Override
      public void widgetSelected( SelectionEvent e ) {
        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 );
View Full Code Here

      }
    };
  }

  private void dispatchPageView( UI ui, Page to ) {
    PageConfiguration pageConfiguration = ui.getPageConfiguration( to );
    dispatchEvent( EventType.PAGE_VIEW, createInfo( ui.getDisplay() ), pageConfiguration.getId() );
  }
View Full Code Here

  private UIConfiguration createUIConfiguration() {
    UIConfiguration uiConfiguration = new UIConfiguration();
   
    // Add a top level page
    PageConfiguration topLevelPage = new PageConfiguration( "topLevelPage", TopLevelPage.class );
    topLevelPage.setTopLevel( true );
    topLevelPage.setTitle( "Top Level Page" );
    uiConfiguration.addPageConfiguration( topLevelPage );
   
    // Add a normal page
    PageConfiguration page = new PageConfiguration( "page", Page.class );
    page.setTitle( "Page" );
   
    // Add a page action
    ActionConfiguration pageAction = new ActionConfiguration( "pageAction", PageAction.class );
    pageAction.setImage( Configuration.class.getResourceAsStream( "/share.png" ) );
    page.addActionConfiguration( pageAction );
    uiConfiguration.addPageConfiguration( page );
   
    // Add a global action
    ActionConfiguration globalAction = new ActionConfiguration( "globalAction", GlobalAction.class );
    globalAction.setImage( Configuration.class.getResourceAsStream( "/page.png" ) );
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.ui.PageConfiguration

Copyright © 2018 www.massapicom. 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.