iA


Getting Started

Requirements

  • Java 5+
  • GWT (Google Web Kit) 2.2+
  • IDE – Eclipse (or NetBeans)
  • ANT

Installation:

Running the demo:

  • Download next-xx.zip file
  • Add the attached hello-next project to Eclipse. Eclipse should automatically discover it as a GWT project
  • From Eclipse /Run /Run As Web Application
  • You should see a demo similar to next-demo

Start a new project:

  • Download next-xx.zip file
  • Add the attached next.jar (/hello-next/war/WEB-INF/next.jar) file to your GWT project & classpath
  • Add next.css and next/images to your project root. Use index.html for reference.
  • Edit your project .gwt.xml and add
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='your-mobule-name'>
       ...
       <inherits name='next.interfaces' />
       <entry-point class='com.domain.YourEntryPoint' />
       ...
    </module>

See the GitHub Demo project for more information.

Platforms Supported:

  • iOS, iPhone, iPod Touch, iPad
  • Android
  • BlackBerry OS6+, BlackBerry PlayBook
  • Samsung bada
  • webOS (with scrolling not working correctly)
  • MeeGo (with scrolling not working correctly)

Hello World in 30 seconds

  1. Create a new GWT project as explained above
  2. Create class HelloWorldController
    class HelloWorldController extends XTableController {
       public HelloWorldController() {
          setTitle("Hello World");
          TableData tableDS = new TableData();
          tableDS.add("Hello", "World");
          initDataSource(tableDS);
       }
    }
  3. In your EntryPoint class paste
    public void onModuleLoad() {
       XTabBarController tabBarController = new XTabBarController();
       tabBarController.addControllers(new XTabController(new HelloWorldController()));
    }
  4. Eclipse /Run /Run as Web Application
  5. Result is


Live Demo »