TOC PREV NEXT INDEX



Create the items list


You will now begin to assemble your To Do application. This application is based around two screens: the list of To Do items, and the screen where new items are entered. These screens are both displays, and can be found on the Displayables page of the Mobile Devices Palette.

  1. In the MIDlet composer, make sure that the ToDo node is expanded in the Parts tree. You will see the nine built-in nodes of the MIDlet. These are important, fundamental parts of the MIDlet and cannot be moved or deleted. Note the last node, 'Display'. This is where all screens which will be added to the MIDlet will be dropped.
  2. On the Mobile Devices Palette, make sure that the first page, 'Displayables', is visible. (If not, click the mouse button on the 'Displayables' tab near the top of the Palette.)
  3. You will see icons for all of the basic screen types. Click the third icon, named 'List', with the mouse and drag the list to the Display node. The tree will display a cancel icon if an attempt is made to drag the list to an inappropriate node. If the drag is valid, a line appears in the tree showing where the part will appear. Release the mouse to create the new part at that place in the tree.

  1. If the List is properly dragged to the tree, it will appear under Display in the tree, and also in the Emulator as a new screen with a name similar to list0. If the List was dropped into the recycling bin, it may be dragged to the Display node. In this case, the button Display this List, located on the property sheet of the List, must be pressed to show it in the emulator.

Now you will set up some properties of the List.

  1. Set the Object name to 'items' by highlighting it and typing the word items. Note that as you do this, the text in the Parts tree and the title of the Composer are dynamically updated.
  2. Set the Title to 'Things to Do'. Note that as you do this, the title in the Emulator is dynamically updated.

Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX