Java Reference
In-Depth Information
Ta b l e 1 0 . 1
PullParser Events to Process
Event
Description
ERROR
A syntax error in the XML or JSON document structure
CDATA
A value containing an XML CDATA structure
INTEGER
A JSON integer value
NUMBER
A JSON floating-point value
TEXT
A text value (in XML or JSON)
START_DOCUMENT
The start of an XML or JSON document
END_DOCUMENT
The end of an XML or JSON document
START_ELEMENT
The start of an XML or JSON object
END_ELEMENT
The end of an XML or JSON object
START_VALUE
The start of a JSON object's value
END_VALUE
The end of a JSON object's value
START_ARRAY
The start of a JSON array
END_ARRAY
The end of a JSON array
START_ARRAY_ELEMENT
The start of a JSON array element
END_ARRAY_ELEMENT
The end of a JSON array element
FALSE
A JSON true Boolean value
TRUE
A JSON false Boolean value
NULL
A JSON null value
The JavaFX Weather Widget
As an example of how to make use of RESTful services from a JavaFX applica-
tion, we're going to build a simple weather widget (shown in Figure 10.4). The
widget accepts a ZIP code as input, and in turn displays detailed current weather
conditions for the applicable region. This includes cloud conditions, wind speed
and direction, temperature, humidity, and air pressure at sea level.
 
Search WWH ::




Custom Search