Examples of PageDescriptor


Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

    }
    return null;
  }

  private PageDescriptor createDescriptor() {
    PageDescriptor pageDescriptor = new PageDescriptor( id, pageType )
                                      .setTitle( title )
                                      .setImage( image )
                                      .setTopLevel( topLevel )
                                      .setPageStyle( style );
    for( ActionConfiguration configuration : actions ) {
      pageDescriptor.addAction( configuration );
    }
    return pageDescriptor;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

   * @since 1.0
   */
  public UIConfiguration addPageConfiguration( PageConfiguration configuration ) {
    whenNull( configuration ).throwIllegalArgument( "Page Configuration must not be null" );
    pageConfigurations.add( configuration );
    PageDescriptor descriptor = configuration.getAdapter( PageDescriptor.class );
    uiDescriptor.add( descriptor );
    UpdateUtil.fireUiUpdate( this );
    return this;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

  private final class MenuItemSelectionListener implements Listener {

    @Override
    public void handleEvent( Event event ) {
      MenuItem item = ( MenuItem )event.widget;
      PageDescriptor pageDescriptor = ( PageDescriptor )item.getData();
      ToolItem dropDown = pageSwitcher.getItem( 0 );
      dropDown.setText( item.getText() );
      dropDown.setData( pageDescriptor );
      dropDown.setImage( item.getImage() );
      if( !DATA_ACTIVATED.equals( event.data ) ) {
        ui.getPageOperator().openPage( pageDescriptor.getId() );
      }
    }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

   *
   * @since 1.0
   */
  public UIConfiguration addPageConfiguration( PageConfiguration configuration ) {
    checkArgumentNotNull( configuration, "Page Configuration" );
    PageDescriptor descriptor = configuration.getAdapter( PageDescriptor.class );
    uiDescriptor.add( descriptor );
    return this;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

    }
    return null;
  }

  private PageDescriptor createDescriptor() {
    PageDescriptor pageDescriptor = new PageDescriptor( id, pageType, title, image, topLevel, style );
    for( ActionConfiguration configuration : actions ) {
      pageDescriptor.addAction( configuration );
    }
    return pageDescriptor;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

    }
    return null;
  }

  private PageDescriptor createDescriptor() {
    PageDescriptor pageDescriptor = new PageDescriptor( id, pageType )
                                      .setTitle( title )
                                      .setImage( image )
                                      .setTopLevel( topLevel )
                                      .setPageStyle( style );
    for( ActionConfiguration configuration : actions ) {
      pageDescriptor.addAction( configuration );
    }
    return pageDescriptor;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

   * @since 1.0
   */
  public UIConfiguration addPageConfiguration( PageConfiguration configuration ) {
    whenNull( configuration ).throwIllegalArgument( "Page Configuration must not be null" );
    pageConfigurations.add( configuration );
    PageDescriptor descriptor = configuration.getAdapter( PageDescriptor.class );
    uiDescriptor.add( descriptor );
    UpdateUtil.fireUiUpdate( this );
    return this;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.PageDescriptor

  private final class MenuItemSelectionListener implements Listener {

    @Override
    public void handleEvent( Event event ) {
      MenuItem item = ( MenuItem )event.widget;
      PageDescriptor pageDescriptor = ( PageDescriptor )item.getData();
      ToolItem dropDown = pageSwitcher.getItem( 0 );
      dropDown.setText( item.getText() );
      dropDown.setImage( item.getImage() );
      if( !DATA_ACTIVATED.equals( event.data ) ) {
        ui.getPageOperator().openPage( pageDescriptor.getId() );
      }
    }
View Full Code Here

Examples of de.iritgo.aktera.ui.form.PageDescriptor

      Configuration[] pagesConfig = configuration.getChildren("page");
      for (Configuration pageConfig : pagesConfig)
      {
        String pageBundle = pageConfig.getAttribute("bundle", formularDescriptor.getBundle());
        PageDescriptor page = formularDescriptor.addPage(pageConfig.getAttribute("name"), pageBundle);
        page.setPosition(positionStringToValue(pageConfig.getAttribute("pos", "C")));
        page.setIcon(pageConfig.getAttribute("icon", null));
        page.setInactiveIcon(pageConfig.getAttribute("inactiveIcon", null));

        createGroups(pageConfig, formularDescriptor);
        createGroupLists(pageConfig, formularDescriptor);
      }
View Full Code Here

Examples of org.apache.fop.afp.modca.PageDescriptor

     * @param widthRes the page width resolution.
     * @param heightRes the page height resolution.
     * @return a new {@link PageDescriptor}
     */
    public PageDescriptor createPageDescriptor(int width, int height, int widthRes, int heightRes) {
        PageDescriptor pageDescriptor = new PageDescriptor(width, height, widthRes, heightRes);
        return pageDescriptor;
    }
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.