
Figure 3-4. The search label
5. Drag
the TextInput component from the Controls fold-
er to the position following the Label component in the
HBox. The TextInput component provides the user with
a space to input search terms (see Figure 3-5).
Figure 3-5. The TextInput field
6. Drag a Button component from the Controls folder to the
position following the TextInput component in the
HBox component.
7. Double-click the Button component and enter Search to
change the default appearance.
At this point, we need to create the HTTPService object:
1. Change to Source mode.
2. Use the HTTPService component to call the Flickr service
and return the results. After the opening Application tag
and before the HBox component, create an HTTPService
component, but do not give it a closing tag.
3. To the HTTPService component, add an id attribute
with a value of photoService, a url attribute with a value
of http://api.flickr.com/services/feeds/photos_public.gne,
and a result attribute with a value of photoHan
A Flickr Viewer | 23
Kommentare zu diesen Handbüchern