[
https://issues.apache.org/jira/browse/PIVOT-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892563#action_12892563
]
Greg Brown commented on PIVOT-580:
----------------------------------
It may help to note that Bindable is primarily about namespace variables, not
instantiation. The initialize() method is called when BXMLSerializer#bind() has
been called on the root object, to notify the object that all page-level
variables have been fully initialized and are available for event registration,
etc.
If you need nested initialization notification, you can split your BXML file up
into includes with their own bindable root elements - that way, the root of
every include will also be notified when its initialize() method is called.
> Add a Lifecycle callback interface so that components know when they've been
> initialized
> ----------------------------------------------------------------------------------------
>
> Key: PIVOT-580
> URL: https://issues.apache.org/jira/browse/PIVOT-580
> Project: Pivot
> Issue Type: New Feature
> Components: wtk
> Reporter: Michael Allman
>
> I just created
> public interface Lifecycle {
> public void initialized();
> }
> because I want one of my custom components to know when it's been
> initialized. The component takes a specific action after being initialized.
> By "initialized", I mean "having all properties set".
> The serializer calls this method after it has finished initializing the
> component, basically at the end of the processEndElement method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.