Package com.eclipsesource.tabris.demos.ui.dynamic

Source Code of com.eclipsesource.tabris.demos.ui.dynamic.DynamicUIDemo

/*******************************************************************************
* Copyright (c) 2013 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*    EclipseSource - initial API and implementation
******************************************************************************/
package com.eclipsesource.tabris.demos.ui.dynamic;

import org.eclipse.rap.rwt.application.EntryPoint;
import org.eclipse.rap.rwt.application.EntryPointFactory;

import com.eclipsesource.tabris.ui.PageConfiguration;
import com.eclipsesource.tabris.ui.TabrisUIEntryPoint;
import com.eclipsesource.tabris.ui.UIConfiguration;


public class DynamicUIDemo implements EntryPointFactory {

  @Override
  public EntryPoint create() {
    return new TabrisUIEntryPoint( createConfig() );
  }

  private UIConfiguration createConfig() {
    UIConfiguration configuration = new UIConfiguration();
    configuration.addPageConfiguration( new PageConfiguration( "root", DynamicPage.class )
                                          .setTopLevel( true )
                                          .setTitle( "Dynamic UI Start" ) );
    return configuration;
  }
}
TOP

Related Classes of com.eclipsesource.tabris.demos.ui.dynamic.DynamicUIDemo

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.