next-demo
is a concept featuring next framework for developing Native Looking HTML5 Mobile apps for SmartPhones and Tablets.
http://nextinterfaces.com/demo
Device agnostic, it runs on 6 devices: iOS, Android, BlackBerry OS6+, webOS, Samsung Bada, PlayBook
- Java5+
- GWT (Google Web Kit) 2.2+
- Eclipse & ANT (optional)
- 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
-
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
andnext/images
to your project root. Useindex.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>
-
Create a new GWT project as explained above
-
Create class
HelloWorldController
class HelloWorldController extends XTableController { public HelloWorldController() { setTitle("Hello World"); TableData tableDS = new TableData(); tableDS.add("Hello", "World"); initDataSource(tableDS); } }
-
In your
EntryPoint
class pastepublic void onModuleLoad() { XTabBarController tabBarController = new XTabBarController(); tabBarController.addControllers(new XTabController(new HelloWorldController())); }
-
Eclipse
/Run /Run as Web Application
resulting in the screenshot bellow:
See the zipped /hello-next
project or next-demo for more information.