Using the Palette to Add Objects to the Mobile Project
The palette that is available in the Outline Editor allows you to drag objects to the Model section of the Outline Editor and thus to add objects to the mobile project. You can hide and show the palette by clicking the arrow that is shown at the top right of the palette.
When you drag an object to the Model section, you can only drop it on a node that allows the dragged object as a child object. The mouse pointer will indicate on which node it is possible to drop the object.
Using the palette is especially helpful if you want to add the following objects:
Table
TableButton
Resources
PaneConfiguration
TaskClient Services
Web Services
For these objects, a wizard appears in which you can specify the details for the new node. All additionally required child nodes are then automatically added to the Model section. You do not have to add them manually.
To add an object to a mobile project using the palette
2. In the Model section of the Outline Editor, expand the outline so that you view the parent node where you want to add a child object.
3. Make sure that the palette is shown. If the palette is currently hidden, click the arrow () that is shown at the top right of the Outline Editor to display it. 4. Click on one of the header-type nodes in the palette (for example, Views or Controls) to display the objects in that node. Clicking the same node once more closes the node.
5. Drag the desired object from the palette to the parent node in the Model section where you want to add the object as a child node. Watch the icon that is shown on the mouse pointer. When it is possible to drop the object, the mouse pointer shows a plus icon. For example:
To update the Java classes that
Mobile Development generates for the project so that your changes are represented in the generated sources, save the project and regenerate sources. For instructions, see
Generating Sources for a Mobile Project.
Related Topics