UI Component lifecycle

Ads

 
 

Share on Google+Share on Google+

bikrantsingh
UI Component lifecycle
1 Answer(s)      7 years ago
Posted in : Flex
Hi......

Explain the UIComponent lifecycle, including important methods like initialize(), createChildren(), etc.

Thanks

Ads
View Answers

October 19, 2010 at 6:13 PM


Ans:

UIComponent lifecycle is following. It has some steps

  1. addChild() is called on parent container.
  2. Sets the parent property of the component.
  3. Computes style settings.
  4. Dispatches the preinitialize event on the component.
  5. Makes call to component's createchildren() method.
  6. Calls:
    1. invalidateProperties()
    2. invalidateSize(), and
    3. invalidateDisplayList()
  7. Dispatches the initialize event on the component (component is not yet laid out).
  8. childAdd event dispatched on parent container.
  9. initialize event dispatched on parent container.
  10. Calls:
    1. commitProperties(),
    2. measure(),
    3. layoutChrome()
    4. updateDisplayList()
  11. Dispatches updateComplete event on component.
  12. Decides if additional render events must be dispatched (if true, go back 3 steps until complete, then continue).
  13. Sets component's visible property to true.
  14. dispatches creationComplete event.

Ads









Related Tutorials/Questions & Answers:
UI Component lifecycle
UI Component lifecycle  Hi...... Explain the UIComponent lifecycle, including important methods like initialize(), createChildren(), etc. Thanks
UI Component initialized
UI Component initialized  Hi.... What are the methods called when a UI component is intialized in flex? give me a good example... is initialized. 1. preInitialize: is dispatched when the component has been attached
Advertisements
Facelet component Tag
into the JSF component tree as children of UI component instance. This tag shows... component tag will not be rendered. <ui:component > <h2>This is the content to be included in the page.</h2> </ui:component >
lifecycle of an applet
lifecycle of an applet  What is the lifecycle of an applet
Version of excalibur-lifecycle>excalibur-lifecycle dependency
List of Version of excalibur-lifecycle>excalibur-lifecycle dependency
Version of excalibur-lifecycle>excalibur-lifecycle-api dependency
List of Version of excalibur-lifecycle>excalibur-lifecycle-api dependency
Version of excalibur-lifecycle>excalibur-lifecycle-impl dependency
List of Version of excalibur-lifecycle>excalibur-lifecycle-impl dependency
Version of com.cocosw>lifecycle dependency
List of Version of com.cocosw>lifecycle dependency
Artifacts of excalibur-lifecycle
List of Artifacts of excalibur-lifecycle maven depenency
What is Bean lifecycle in Spring framework?
What is Bean lifecycle in Spring framework?  HI, What is Bean lifecycle in Spring framework? Thanks
Maven Dependency excalibur-lifecycle >> 1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle version1.0 in your project
JSF Login Example By Using Component Instance Binding
JSF Login Example By Using Component Instance Binding...; JavaBeans are used to associate the UI components. This backing bean (JavaBean) contains properties that are bound to either component
Web component
Web component  Is HTML page a web component
Java component
Java component  What is the preferred size of a component
sql component
sql component  is sql package is the component of jdbc
component based technology - EJB
component based technology  main concept behind ejb  Hi Friend, Enterprise JavaBeans (EJBs) are used in distributed applications... many of the issues such as scalability, lifecycle management, state management
GUI component
GUI component  How can a GUI component handle its own events
UI Tags And Examples
UI Tags And Examples Form Tags checkbox checkboxlist combobox... textfield token updownselect  Non-Form UI Tags actionerror actionmessage component div fielderror
Maven Dependency lifecycle >> 0.1
You should include the dependency code given in this page to add Maven Dependency of com.cocosw >> lifecycle version0.1 in your project
Maven Dependency lifecycle >> 0.1.2
You should include the dependency code given in this page to add Maven Dependency of com.cocosw >> lifecycle version0.1.2 in your project
MXML component
MXML component  Hi..... Please tell me about that prob When I set visible=?false?, the component still takes up space and appears in the tab order. Why is that? Thanks  Ans: You can often achieve the "display
Component in actionscript
Component in actionscript  Hi...... Have you built any components with actionscript? If so explain how you did it? please give me the example for that....... Thanks   Ans: CityComboBox.as package components { import
Maven Dependency excalibur-lifecycle-api >> 1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-api version1.0 in your project
Maven Dependency excalibur-lifecycle-api >> 1.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-api version1.1 in your project
Maven Dependency excalibur-lifecycle-api >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-api version1.1.0 in your project
Maven Dependency excalibur-lifecycle-api >> 2.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-api version2.1 in your project
Maven Dependency excalibur-lifecycle-impl >> 1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-impl version1.0 in your project
Maven Dependency excalibur-lifecycle-impl >> 1.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-impl version1.1 in your project
Maven Dependency excalibur-lifecycle-impl >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-impl version1.1.0 in your project
Maven Dependency excalibur-lifecycle-impl >> 2.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-lifecycle >> excalibur-lifecycle-impl version2.1 in your project
Version of excalibur-component>excalibur-component dependency
List of Version of excalibur-component>excalibur-component dependency