|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
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)
keyStroke
¹ÙÀεùÀ» actionMapKey ¿¡ Ãß°¡ÇÕ´Ï´Ù. |
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)
keyStroke
¹ÙÀεùÀ» actionMapKey
¿¡ Ãß°¡ÇÕ´Ï´Ù. actionMapKey
°¡ nullÀÎ °æ¿ì, keyStroke
ÇöÀçÀÇ ¹ÙÀεùÀ» »èÁ¦ÇÕ´Ï´Ù.
InputMap
³»ÀÇ put
public void remove(KeyStroke key)
key
¹ÙÀεùÀ» »èÁ¦ÇÕ´Ï´Ù.
InputMap
³»ÀÇ remove
public void clear()
InputMap
³»ÀÇ clear
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.