Pakiet | mx.managers |
Interfejs | public interface IFocusManager extends IEventDispatcher |
Implementory | FocusManager |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Powiązane elementy interfejsu API
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
defaultButton : IButton
A reference to the original default Button control. | IFocusManager | ||
defaultButtonEnabled : Boolean
A flag that indicates whether the FocusManager should
check for the Enter key being pressed to activate the default button. | IFocusManager | ||
focusPane : Sprite
A single Sprite that is moved from container to container
as the focus moves to those containers. | IFocusManager | ||
nextTabIndex : int [tylko do odczytu]
The next unique tab index to use in this tab loop. | IFocusManager | ||
showFocusIndicator : Boolean
A flag that indicates whether to display an indicator that
a component has focus. | IFocusManager |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
The SystemManager activates and deactivates a FocusManager
if more than one IFocusManagerContainer is visible at the same time. | IFocusManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | IEventDispatcher | ||
The SystemManager activates and deactivates a FocusManager
if more than one IFocusManagerContainer is visible at the same time. | IFocusManager | ||
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | IEventDispatcher | ||
Returns the IFocusManagerComponent that contains the given object, if any. | IFocusManager | ||
Gets the IFocusManagerComponent component that currently has the focus. | IFocusManager | ||
Returns the IFocusManagerComponent that would receive focus
if the user pressed the Tab key to navigate to another component. | IFocusManager | ||
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | IEventDispatcher | ||
Sets showFocusIndicator to false
and removes the visual focus indicator from the focused object, if any. | IFocusManager | ||
Usuwa detektor z obiektu EventDispatcher. | IEventDispatcher | ||
Sets focus to an IFocusManagerComponent component. | IFocusManager | ||
Sets showFocusIndicator to true
and draws the visual focus indicator on the focused object, if any. | IFocusManager | ||
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | IEventDispatcher |
defaultButton | właściwość |
defaultButton:IButton
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A reference to the original default Button control.
Pressing the Enter key while the focus is on any control
activates the Button control by dispatching a click
event
on the Button control, just as if it was clicked with the mouse.
The actual default Button control changes if focus is given to another
Button control, but switches back to the original if focus is not
on a button.
This property is managed by Flex containers; do not set it directly to specify the default button.
The defaultButton
must be of class
mx.controls.Button
even though this property
is of type IUIComponent
.
Implementacja
public function get defaultButton():IButton
public function set defaultButton(value:IButton):void
defaultButtonEnabled | właściwość |
defaultButtonEnabled:Boolean
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A flag that indicates whether the FocusManager should
check for the Enter key being pressed to activate the default button.
TextArea and other components that want to recognize
the Enter
key
set this property to false
to disable the Enter
key from dispatching a click
event on the
default button, if it exists.
Implementacja
public function get defaultButtonEnabled():Boolean
public function set defaultButtonEnabled(value:Boolean):void
focusPane | właściwość |
focusPane:Sprite
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A single Sprite that is moved from container to container as the focus moves to those containers. The Sprite is used as the parent of the visual indicator that a component has focus.
Implementacja
public function get focusPane():Sprite
public function set focusPane(value:Sprite):void
nextTabIndex | właściwość |
showFocusIndicator | właściwość |
showFocusIndicator:Boolean
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A flag that indicates whether to display an indicator that
a component has focus.
If true
a component receiving focus
draws a visible indicator that it has focus.
By default, this is false
until the user uses
the Tab key, then it is set to true
.
In general it is better to use
the showFocus()
and hideFocus()
methods
to change this property as those methods also update the
visual indicator that a component has focus.
Implementacja
public function get showFocusIndicator():Boolean
public function set showFocusIndicator(value:Boolean):void
activate | () | metoda |
public function activate():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The SystemManager activates and deactivates a FocusManager
if more than one IFocusManagerContainer is visible at the same time.
If the mouse is clicked in an IFocusManagerContainer with a deactivated
FocusManager, the SystemManager will call
the activate()
method on that FocusManager.
The FocusManager that was activated will have its deactivate()
method
called prior to the activation of another FocusManager.
deactivate | () | metoda |
public function deactivate():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The SystemManager activates and deactivates a FocusManager
if more than one IFocusManagerContainer is visible at the same time.
If the mouse is clicked in an IFocusManagerContainer with a deactivated
FocusManager, the SystemManager will call
the activate()
method on that FocusManager.
The FocusManager that was activated will have its deactivate()
method
called prior to the activation of another FocusManager.
findFocusManagerComponent | () | metoda |
public function findFocusManagerComponent(o:InteractiveObject):IFocusManagerComponent
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns the IFocusManagerComponent that contains the given object, if any. Because the player can set focus to a subcomponent of a Flex component this method determines which IFocusManagerComponent has focus from the component perspective.
Parametry
o:InteractiveObject — An object that can have player-level focus.
|
IFocusManagerComponent — The IFOcusManagerComponent containing o or
null
|
getFocus | () | metoda |
public function getFocus():IFocusManagerComponent
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Gets the IFocusManagerComponent component that currently has the focus. Calling this method is recommended instead of using the Stage object because it indicates which component has focus. The Stage might return a subcomponent in that component.
ZwracaIFocusManagerComponent — IFocusManagerComponent object that has focus.
|
getNextFocusManagerComponent | () | metoda |
public function getNextFocusManagerComponent(backward:Boolean = false):IFocusManagerComponent
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns the IFocusManagerComponent that would receive focus if the user pressed the Tab key to navigate to another component. It will return the same component as the current focused component if there are no other valid components in the application.
Parametry
backward:Boolean (default = false ) — If true , return the object
as if the Shift-Tab keys were pressed.
|
IFocusManagerComponent — The component that would receive focus.
|
hideFocus | () | metoda |
public function hideFocus():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Sets showFocusIndicator
to false
and removes the visual focus indicator from the focused object, if any.
setFocus | () | metoda |
public function setFocus(o:IFocusManagerComponent):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Sets focus to an IFocusManagerComponent component. Does not check for the components visibility, enabled state, or any other conditions.
Parametry
o:IFocusManagerComponent — A component that can receive focus.
|
showFocus | () | metoda |
public function showFocus():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Sets showFocusIndicator
to true
and draws the visual focus indicator on the focused object, if any.
Tue Jun 12 2018, 12:06 PM Z