JavaTM Platform
Standard Ed. 6

javax.swing
클래스 ComponentInputMap

java.lang.Object 
  상위를 확장 javax.swing.InputMap 
      상위를 확장 javax.swing.ComponentInputMap
모든 구현된 인터페이스:
Serializable
직계의 기존의 서브 클래스:
ComponentInputMapUIResource


public class ComponentInputMap
extends InputMap

ComponentInputMap 는, 특정의 JComponent 에 관련지을 수 있었던 InputMap 입니다. ComponentInputMap 가 바뀌면(자), 컴퍼넌트가 자동적으로 통지됩니다. ComponentInputMapWHEN_IN_FOCUSED_WINDOW 바인딩에 사용됩니다.

도입된 버젼:
1.3

생성자 의 개요
ComponentInputMap (JComponent  component)
          특정의 컴퍼넌트에 관련지을 수 있었던 ComponentInputMap 를 생성합니다.
 
메소드의 개요
 void clear ()
          이 객체로부터 모든 매핑을 삭제합니다.
 JComponent getComponent ()
          InputMap 가 생성된 컴퍼넌트를 돌려줍니다.
 void put (KeyStroke  keyStroke, Object  actionMapKey)
          actionMapKeykeyStroke 의 바인드를 추가합니다.
 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
 

생성자 의 상세

ComponentInputMap

public ComponentInputMap(JComponent  component)
특정의 컴퍼넌트에 관련지을 수 있었던 ComponentInputMap 를 생성합니다.

파라미터:
component - null 이외의 JComponent
예외:
IllegalArgumentException - component 가 null 의 경우
메소드의 상세

setParent

public void setParent(InputMap  map)
부모를 설정합니다. 부모는, 이 ComponentInputMap 와 같은 컴퍼넌트에 관련지을 수 있었던 ComponentInputMap 일 필요가 있습니다.

오버라이드(override):
클래스 InputMap 내의 setParent
파라미터:
map - ComponentInputMap
예외:
IllegalArgumentException - mapComponentInputMap 가 아닌 경우, 또는 같은 컴퍼넌트에 관련지을 수 있지 않은 경우

getComponent

public JComponent  getComponent()
InputMap 가 생성된 컴퍼넌트를 돌려줍니다.


put

public void put(KeyStroke  keyStroke,
                Object  actionMapKey)
actionMapKeykeyStroke 의 바인드를 추가합니다. actionMapKey 가 null 의 경우,keyStroke 의 현재의 바인딩을 삭제합니다.

오버라이드(override):
클래스 InputMap 내의 put

remove

public void remove(KeyStroke  key)
이 객체로부터 key 의 바인드를 삭제합니다.

오버라이드(override):
클래스 InputMap 내의 remove

clear

public void clear()
이 객체로부터 모든 매핑을 삭제합니다.

오버라이드(override):
클래스 InputMap 내의 clear

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.