THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- PIVOT-546 Bindable improvements
TheBindable
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.
ThoughBindable
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 theinitialize()
method. Any@BXML
annotations defined on theBindable
class are also processed prior to the call toinitialize()
. 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 theorg.apache.pivot.wtk.ApplicationContext
class. However, like WTKXSerializer, this API didn't actually have a dependency on WTK. It has been moved toorg.apache.pivot.util.MessageBus
to reflect this.
...