Using the Mobile GUI Editor

Zend Studio's CCM tool is integrated with the Codiqa Mobile GUI design framework that enables you to quickly put together mobile prototypes that would have otherwise taken you a long time to code by hand.

Specifically, the Mobile GUI Editor allows you to:

The following procedure describes how to use the above mentioned features.

 

 

Instructions on how to complete a procedure

To design your GUI using the Mobile GUI Editor:

  1. Create a CCM project in your workspace. For information on creating a new CCM project, see Creating a New Cloud Connected Mobile Project.
  1. The Mobile GUI Editor is opened and displayed by default after project creation.
    To manually open the editor, in the PHP Explorer, expand your Mobile project and select the 'mobile.appGUI' file.

  1. To add widgets to the GUI, from the palette on the left, drag a widget and drop it in the device simulator.

  2. To configure a GUI widget, select it from the device simulator, and configure the listed properties displayed in the box on the right.
  3. To add pages to your GUI:
    1. In the palette on the left, click Pages, and then New Page.
    2. Name the new page, and click OK.
  4. To link widgets to the various pages in your GUI:
    1. In the device simulator, select the widget, and in the properties box click the Link to drop-down menu.
    2. Select a page to link to from the list.
  5. To link widgets to Zend Gateway RESTful API methods:
    1. In the device simulator, select the widget, and in the properties box click the Link to drop-down menu.
    2. Select a method from the list.
      The Bind to API dialog is displayed.
    3. Enter the following information:
    • Widget ID: The ID of the widget as defined in the properties box (displayed automatically).
    • Event: The specific event that triggers the widget and its bound API (e.g., Click).
    • API URL: The URL of the API handler and method, as defined in the Zend Gateway.
    1. Click Preview to view JavaScript code source and modifications, and OK to approve changes.
      The editor inserts code to be executed when widget is triggered.

    -OR-

    1. In the toolbar, click Bound Handler.
  6. Preview your editing:
    1. In the toolbar above the Editor, click .
    2. Click to select the size of the device simulator.
    3. Click to rotate the device simulator.
    4. Click to return to design mode.
  7. Save the file.
    The changes are saved, and the 'index.html' file automatically updated to include all new GUI elements.

During or after development, you can test the application using the a built-in emulator. In the PHP Explorer, right-click the mobile project and select Run As | Web Mobile Application.

 

 

Related Links

Related Links:

Creating a New Cloud Connected Mobile Project

Creating Native Applications

Running Native Applications

 

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.