패키지 | mx.managers |
인터페이스 | public interface ILayoutManagerClient extends IEventDispatcher |
구현자 | AdvancedDataGridItemRenderer, DataGridItemRenderer, FTEAdvancedDataGridItemRenderer, FTEDataGridItemRenderer, FlexNativeMenu, ProgrammaticSkin, UIComponent |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Objects that implement this interface can be passed to the
LayoutManager's invalidateProperties()
method.
When the LayoutManager reaches the commit properties phase,
the LayoutManager invokes this object's validateProperties()
method.
Similarly, if an object is passed to the LayoutManager's
invalidateSize()
method, then the LayoutManager
calls that object's validateSize()
method
during its measurement phase, and if an object is passed
to LayoutManager's invalidateDisplayList()
method,
then the LayoutManager calls its validateDisplayList()
method
during the layout phase.
The ILayoutManagerClient interface is implemented by the UIComponent and ProgrammaticSkin classes.
속성 | 정의 주체 | ||
---|---|---|---|
initialized : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required)
This flag should only be modified by the LayoutManager. | ILayoutManagerClient | ||
nestLevel : int
The top-level SystemManager has a nestLevel of 1. | ILayoutManagerClient | ||
processedDescriptors : Boolean
Set to true after immediate or deferred child creation,
depending on which one happens. | ILayoutManagerClient | ||
updateCompletePendingFlag : Boolean
A flag that determines if an object is waiting to have its
updateComplete event dispatched. | ILayoutManagerClient |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
Validates the position and size of children and draws other
visuals. | ILayoutManagerClient | ||
Validates the properties of a component. | ILayoutManagerClient | ||
Validates the measured size of the component
If the LayoutManager.invalidateSize() method is called with
this ILayoutManagerClient, then the validateSize() method
is called when it's time to do measurements. | ILayoutManagerClient | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
initialized | 속성 |
initialized:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A flag that determines if an object has been through all three phases of layout validation (provided that any were required) This flag should only be modified by the LayoutManager.
구현
public function get initialized():Boolean
public function set initialized(value:Boolean):void
nestLevel | 속성 |
nestLevel:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The top-level SystemManager has a nestLevel of 1.
Its immediate children (the top-level Application and any pop-up
windows) have a nestLevel
of 2.
Their children have a nestLevel
of 3, and so on.
The nestLevel
is used to sort ILayoutManagerClients
during the measurement and layout phases.
During the commit phase, the LayoutManager commits properties on clients
in order of increasing nestLevel
, so that an object's
children have already had their properties committed before Flex
commits properties on the object itself.
During the measurement phase, the LayoutManager measures clients
in order of decreasing nestLevel
, so that an object's
children have already been measured before Flex measures
the object itself.
During the layout phase, the LayoutManager lays out clients
in order of increasing nestLevel
, so that an object
has a chance to set the sizes of its children before the child
objects are asked to position and size their children.
구현
public function get nestLevel():int
public function set nestLevel(value:int):void
processedDescriptors | 속성 |
processedDescriptors:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Set to true
after immediate or deferred child creation,
depending on which one happens. For a Container object, it is set
to true
at the end of
the createComponentsFromDescriptors()
method,
meaning after the Container object creates its children from its child descriptors.
For example, if an Accordion container uses deferred instantiation,
the processedDescriptors
property for the second pane of
the Accordion container does not become true
until after
the user navigates to that pane and the pane creates its children.
But, if the Accordion had set the creationPolicy
property
to "all"
, the processedDescriptors
property
for its second pane is set to true
during application startup.
For classes that are not containers, which do not have descriptors,
it is set to true
after the createChildren()
method creates any internal component children.
구현
public function get processedDescriptors():Boolean
public function set processedDescriptors(value:Boolean):void
updateCompletePendingFlag | 속성 |
updateCompletePendingFlag:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A flag that determines if an object is waiting to have its
updateComplete
event dispatched.
This flag should only be modified by the LayoutManager.
구현
public function get updateCompletePendingFlag():Boolean
public function set updateCompletePendingFlag(value:Boolean):void
validateDisplayList | () | 메서드 |
public function validateDisplayList():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Validates the position and size of children and draws other
visuals.
If the LayoutManager.invalidateDisplayList()
method is called with
this ILayoutManagerClient, then the validateDisplayList()
method
is called when it's time to update the display list.
validateProperties | () | 메서드 |
public function validateProperties():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Validates the properties of a component.
If the LayoutManager.invalidateProperties()
method is called with
this ILayoutManagerClient, then the validateProperties()
method
is called when it's time to commit property values.
validateSize | () | 메서드 |
public function validateSize(recursive:Boolean = false):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Validates the measured size of the component
If the LayoutManager.invalidateSize()
method is called with
this ILayoutManagerClient, then the validateSize()
method
is called when it's time to do measurements.
매개 변수
recursive:Boolean (default = false ) — If true , call this method
on the objects children.
|
Tue Jun 12 2018, 03:17 PM Z