패키지 | mx.managers |
클래스 | public class PopUpManager |
상속 | PopUpManager Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The PopUpManager also provides modality, so that windows below the popup cannot receive mouse events, and also provides an event if the user clicks the mouse outside the window so the developer can choose to dismiss the window or warn the user.
기타 예제
Pop-up controls in multi-versioned applications
The Spark TitleWindow container
MX TitleWindow layout container
관련 API 요소
메서드 | 정의 주체 | ||
---|---|---|---|
addPopUp(window:IFlexDisplayObject, parent:DisplayObject, modal:Boolean = false, childList:String = null, moduleFactory:IFlexModuleFactory = null):void [정적]
Pops up a top-level window. | PopUpManager | ||
[정적]
Makes sure a popup window is higher than other objects in its child list
The SystemManager does this automatically if the popup is a top level window
and is moused on,
but otherwise you have to take care of this yourself. | PopUpManager | ||
[정적]
Centers a popup window over whatever window was used in the call
to the createPopUp() or addPopUp() method. | PopUpManager | ||
createPopUp(parent:DisplayObject, className:Class, modal:Boolean = false, childList:String = null, moduleFactory:IFlexModuleFactory = null):IFlexDisplayObject [정적]
Creates a top-level window and places it above other windows in the
z-order. | PopUpManager | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
[정적]
Removes a popup window popped up by
the createPopUp() or addPopUp() method. | PopUpManager | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
addPopUp | () | 메서드 |
public static function addPopUp(window:IFlexDisplayObject, parent:DisplayObject, modal:Boolean = false, childList:String = null, moduleFactory:IFlexModuleFactory = null):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Pops up a top-level window.
It is good practice to call removePopUp()
to remove popups
created by using the addPopUp()
method.
If the class implements IFocusManagerContainer, the window will have its
own FocusManager so that, if the user uses the TAB key to navigate between
controls, only the controls in the window will be accessed.
Example
var tw:TitleWindow = new TitleWindow(); tw.title = "My Title"; mx.managers.PopUpManager.addPopUp(tw, pnl, false);
Creates a popup window using the tw
instance of the
TitleWindow class and pnl
as the Sprite for determining
where to place the popup.
It is defined to be a non-modal window.
매개 변수
window:IFlexDisplayObject — The IFlexDisplayObject to be popped up.
| |
parent:DisplayObject — DisplayObject to be used for determining which SystemManager's layers
to use and optionally the reference point for centering the new
top level window. It may not be the actual parent of the popup as all popups
are parented by the SystemManager.
| |
modal:Boolean (default = false ) — If true , the window is modal which means that
the user will not be able to interact with other popups until the window
is removed.
| |
childList:String (default = null ) — The child list in which to add the pop-up.
One of PopUpManagerChildList.APPLICATION ,
PopUpManagerChildList.POPUP ,
or PopUpManagerChildList.PARENT (default).
| |
moduleFactory:IFlexModuleFactory (default = null ) — The moduleFactory where this pop-up should look for
its embedded fonts and style manager.
|
관련 API 요소
bringToFront | () | 메서드 |
public static function bringToFront(popUp:IFlexDisplayObject):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Makes sure a popup window is higher than other objects in its child list The SystemManager does this automatically if the popup is a top level window and is moused on, but otherwise you have to take care of this yourself.
매개 변수
popUp:IFlexDisplayObject — IFlexDisplayObject representing the popup.
|
centerPopUp | () | 메서드 |
public static function centerPopUp(popUp:IFlexDisplayObject):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Centers a popup window over whatever window was used in the call
to the createPopUp()
or addPopUp()
method.
Note that the position of the popup window may not change immediately after this call since Flex may wait to measure and layout the popup window before centering it.
매개 변수
popUp:IFlexDisplayObject — IFlexDisplayObject representing the popup.
|
createPopUp | () | 메서드 |
public static function createPopUp(parent:DisplayObject, className:Class, modal:Boolean = false, childList:String = null, moduleFactory:IFlexModuleFactory = null):IFlexDisplayObject
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Creates a top-level window and places it above other windows in the
z-order.
It is good practice to call the removePopUp()
method
to remove popups created by using the createPopUp()
method.
If the class implements IFocusManagerContainer, the window will have its
own FocusManager so that, if the user uses the TAB key to navigate between
controls, only the controls in the window will be accessed.
Example
pop = mx.managers.PopUpManager.createPopUp(pnl, TitleWindow, false);
Creates a popup window based on the TitleWindow class, using pnl
as the MovieClip
for determining where to place the popup. It is defined to be a non-modal window
meaning that other windows can receive mouse events
매개 변수
parent:DisplayObject — DisplayObject to be used for determining which SystemManager's layers
to use and optionally the reference point for centering the new
top level window. It may not be the actual parent of the popup as all popups
are parented by the SystemManager.
| |
className:Class — Class of object that is to be created for the popup.
The class must implement IFlexDisplayObject.
| |
modal:Boolean (default = false ) — If true , the window is modal which means that
the user will not be able to interact with other popups until the window
is removed.
| |
childList:String (default = null ) — The child list in which to add the popup.
One of PopUpManagerChildList.APPLICATION ,
PopUpManagerChildList.POPUP ,
or PopUpManagerChildList.PARENT (default).
| |
moduleFactory:IFlexModuleFactory (default = null ) — The moduleFactory where this pop-up should look for
its embedded fonts and style manager.
|
IFlexDisplayObject — Reference to new top-level window.
|
관련 API 요소
removePopUp | () | 메서드 |
public static function removePopUp(popUp:IFlexDisplayObject):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes a popup window popped up by
the createPopUp()
or addPopUp()
method.
매개 변수
popUp:IFlexDisplayObject — The IFlexDisplayObject representing the popup window.
|
Tue Jun 12 2018, 03:17 PM Z