|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.InputMap
javax.swing.ComponentInputMap
public class ComponentInputMap
ComponentInputMap 는, 특정의 JComponent 에 관련지을 수 있었던 InputMap 입니다. ComponentInputMap 가 바뀌면(자), 컴퍼넌트가 자동적으로 통지됩니다. ComponentInputMap 는 WHEN_IN_FOCUSED_WINDOW 바인딩에 사용됩니다.
| 생성자 의 개요 | |
|---|---|
ComponentInputMap (JComponent component)
특정의 컴퍼넌트에 관련지을 수 있었던 ComponentInputMap 를 생성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
clear ()
이 객체로부터 모든 매핑을 삭제합니다. |
JComponent |
getComponent ()
InputMap 가 생성된 컴퍼넌트를 돌려줍니다. |
void |
put (KeyStroke keyStroke,
Object actionMapKey)
actionMapKey 에 keyStroke 의 바인드를 추가합니다. |
void |
remove (KeyStroke key)
이 객체로부터 key 의 바인드를 삭제합니다. |
void |
setParent (InputMap map)
부모를 설정합니다. |
| 클래스 javax.swing. InputMap 로부터 상속된 메소드 |
|---|
allKeys , get , getParent , keys , size |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public ComponentInputMap(JComponent component)
ComponentInputMap 를 생성합니다.
component - null 이외의 JComponent
IllegalArgumentException - component 가 null 의 경우| 메소드의 상세 |
|---|
public void setParent(InputMap map)
ComponentInputMap 와 같은 컴퍼넌트에 관련지을 수 있었던 ComponentInputMap 일 필요가 있습니다.
InputMap 내의 setParent map - ComponentInputMap
IllegalArgumentException - map 가
ComponentInputMap 가 아닌 경우,
또는 같은 컴퍼넌트에 관련지을 수 있지 않은 경우public JComponent getComponent()
InputMap 가 생성된 컴퍼넌트를 돌려줍니다.
public void put(KeyStroke keyStroke,
Object actionMapKey)
actionMapKey 에 keyStroke 의 바인드를 추가합니다. actionMapKey 가 null 의 경우,keyStroke 의 현재의 바인딩을 삭제합니다.
InputMap 내의 put public void remove(KeyStroke key)
key 의 바인드를 삭제합니다.
InputMap 내의 remove public void clear()
InputMap 내의 clear
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.