MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Uživatelský manuál Strana 12

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 36
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 11
Version#1.0#(May#14,#2009)#
After!createChildren()!is!complete,!the!childrenCreated()!method!is!called.!!This!
method!is!responsible!for!enabling!the!first!Invalidation‐Validation!cycle,!which!we!
will!discuss!in!the!next!section.!
The!last!two!methods!called!by!initialize()!are!initializeAccessibility() and!
initializationComplete().!!The!method!initializeAccessibility()!configures!
the!component!to!use!the!Flash!Player’s!accessibility!system,!if!enabled.!!The!method!
initializationComplete()!is!the!last!method!called!and!is!used!to!define!the!
processedDescriptors!setter!method!which!dispatches!the!
FlexEvent.INITIALIZED!event.!!!
Although!initialization!has!been!completed,!there!is!still!work!to!be!done!before!the!
component!is!ready!for!use.!!For!more!information!about!how!to!use!initialization,!
refer!to!the!section!Using!Initialization!later!on!in!this!document.!
Component+Phases:+Invalidation+(growth+/+maturity)+
Invalidation!is!the!first!phase!of!the!component!lifecycle!that!gets!repeated!
throughout!the!entire!life!of!the!component!and!is!also!the!first!phase!of!growth!and!
maturity.!!After!the!createChildren()!method!is!called,!the!UIComponent’s!
childrenCreated()!method!is!called.!!In!this!method,!three!sub‐methods!are!
called
11
!which!begin!the!invalidation!phase:!invalidateProperties(),!
invalidateSize()!and!invalidateDisplayList().!
The+Invalidation+and+Validation+Cycle+
We!can’t!really!look!too!deeply!into!Invalidation!with!out!talking!about!how!it!
interacts!and!defines!the!following!Validation!phase.!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
#As#you#can#see,#the#Fle x#Framework#is#once#ag ain#b reaking#d own#a#phase#into#sub^s teps#to#enable#
finer#control.#This#process#will#be#examined#in#grea ter#depth#as#we#mo ve#along. #
Zobrazit stránku 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 35 36

Komentáře k této Příručce

Žádné komentáře