| Package | mx.managers |
| 인터페이스 | public interface IFocusManagerComponent |
| 인프리멘타 | Accordion , Button , ButtonBar , ChartBase , ComboBase , DateChooser , DateField , ListBase , MenuBar , NumericStepper , TabNavigator , TextArea , TextInput |
| property | 정의 | ||
|---|---|---|---|
| focusEnabled : Boolean
컴퍼넌트가 선택시에 포커스를 취득할 수 있을지 어떨지를 나타내는 플래그입니다.
| IFocusManagerComponent | ||
| mouseFocusEnabled : Boolean
[read-only]
컴퍼넌트가 마우스에서의 선택시에 포커스를 취득할 수 있을지 어떨지를 나타내는 플래그입니다.
| IFocusManagerComponent | ||
| tabEnabled : Boolean
[read-only]
Tab 키를 사용해, 이 컴퍼넌트까지 포커스를 이동할 수 있을지 어떨지를 나타내는 플래그입니다.
| IFocusManagerComponent | ||
| tabIndex : int
[read-only]
tabEnabled 의 경우, 컴퍼넌트가 포커스를 받는 순서를 나타냅니다. | IFocusManagerComponent | ||
| Methods | 정의 | ||
|---|---|---|---|
| drawFocus (draw:Boolean ):void
컴퍼넌트가 포커스를 받았을 때에 FocusManager 에 의해 불려 갑니다.
| IFocusManagerComponent | ||
| setFocus ():void
컴퍼넌트가 포커스를 받았을 때에 FocusManager 에 의해 불려 갑니다.
| IFocusManagerComponent | ||
| focusEnabled | property |
focusEnabled:Boolean [read-write]컴퍼넌트가 선택시에 포커스를 취득할 수 있을지 어떨지를 나타내는 플래그입니다.
최적화하려면 , 사용하는 컴퍼넌트의 아이 컴퍼넌트가 IFocusManagerComponent 인터페이스를 Implements해, 그 컴퍼넌트에 포커스를 취득시키지 않는 경우, 아이 컴퍼넌트로 addChild() 를 호출하기 전에 focusEnabled 를 false 로 설정합니다.
이것에 의해, FocusManager 는 이 컴퍼넌트를 무시해, 이 컴퍼넌트의 tabEnabled,tabChildren, 및 mouseFocusEnabled property의 변경을 감시하지 않게 됩니다. 이것은,addChild() 의 뒤에는 이 값을 변경하는 일도, FocusManager 로부터의 통지를 기대하는 일도 할 수 없는 것을 의미합니다.
메모:이것은,setFocus() Methods로, 프로그램에 의해 이 object에 포커스를 두지 못하는 것을 의미하는 것이 아닙니다. 이것은 단지, FocusManager 에 Tab 및 마우스의 검색으로 이 IFocusManagerComponent 컴퍼넌트를 무시하도록(듯이) 지시할 뿐입니다.
public function get focusEnabled():Boolean
public function set focusEnabled(value:Boolean ):void
| mouseFocusEnabled | property |
mouseFocusEnabled:Boolean [read-only]
컴퍼넌트가 마우스에서의 선택시에 포커스를 취득할 수 있을지 어떨지를 나타내는 플래그입니다. false 의 경우, 포커스는,mouseFocusEnabled 인 최초의 부모에게 이동됩니다.
public function get mouseFocusEnabled():Boolean
| tabEnabled | property |
tabEnabled:Boolean [read-only]
Tab 키를 사용해, 이 컴퍼넌트까지 포커스를 이동할 수 있을지 어떨지를 나타내는 플래그입니다. false 의 경우에서도, 마우스에서의 선택 또는 setFocus() 에의 콜에 의해, 포커스를 옮길 수가 있습니다.
public function get tabEnabled():Boolean
| tabIndex | property |
tabIndex:int [read-only]
tabEnabled 의 경우, 컴퍼넌트가 포커스를 받는 순서를 나타냅니다. -1 의 경우는, 컴퍼넌트는 z 순서에 응해 포커스를 취득합니다.
public function get tabIndex():int
| drawFocus | () | Methods |
public function drawFocus(draw:Boolean ):void 컴퍼넌트가 포커스를 받았을 때에 FocusManager 에 의해 불려 갑니다. 컴퍼넌트는, 컴퍼넌트에 포커스가 있는 것을 나타내는 그래픽을 묘화 하는지, 비표시로 합니다.
Parametersdraw:Boolean — true 의 경우는 포커스 인디케이터(indicator)를 묘화 해, 그렇지 않은 경우는 비표시로 합니다.
|
| setFocus | () | Methods |
public function setFocus():void 컴퍼넌트가 포커스를 받았을 때에 FocusManager 에 의해 불려 갑니다. 컴퍼넌트는, 받은 포커스를 내부 컴퍼넌트로 설정합니다.
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/managers/IFocusManagerComponent.html