Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • PIVOT-546 Bindable improvements
    The Bindable interface allows a caller to easily associate Java code with markup defined in BXML. It defines a single method, initialize(), that is called on the root element of a BXML document once the document has been completely loaded.
    Though Bindable was actually introduced in Pivot 1.5, it did not provide all of the information an implementing class might need. Pivot 2.0 adds arguments containing the serializer's namespace, resources, and location, to the initialize() method. Any @BXML annotations defined on the Bindable class are also processed prior to the call to initialize(). This allows the implementing class to get access to the document's namespace (i.e. page variables), the resources that were used to load it, and the location it was loaded from, to perform any necessary post-processing (for example, registering event listeners).
  • PIVOT-537 Move message processing functionality to pivot-core
    Pivot 1.5 included a pub/sub messaging API as part of the org.apache.pivot.wtk.ApplicationContext class. However, like WTKXSerializer, this API didn't actually have a dependency on WTK. It has been moved to org.apache.pivot.util.MessageBus to reflect this.

...