JavaTM 2 Platform
Standard Ed. 5.0

javax.swing
Ŭ·¡½º ComponentInputMap

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.InputMap 
      »óÀ§¸¦ È®Àå javax.swing.ComponentInputMap
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
ComponentInputMapUIResource

public class ComponentInputMap
extends InputMap

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
 

»ý¼ºÀÚ »ó¼¼

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 - map°¡ ComponentInputMap°¡ ¾Æ´Ñ °æ¿ì, ¶Ç´Â °°Àº ÄÄÆÛ³ÍÆ®¿¡ °ü·ÃÁöÀ» ¼ö ÀÖÁö ¾ÊÀº °æ¿ì

getComponent

public JComponent  getComponent()
InputMap°¡ »ý¼ºµÈ ÄÄÆÛ³ÍÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.


put

public void put(KeyStroke  keyStroke,
                Object  actionMapKey)
keyStroke ¹ÙÀεùÀ» actionMapKey¿¡ Ãß°¡ÇÕ´Ï´Ù. actionMapKey°¡ nullÀÎ °æ¿ì, keyStroke ÇöÀçÀÇ ¹ÙÀεùÀ» »èÁ¦ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º InputMap ³»ÀÇ put

remove

public void remove(KeyStroke  key)
ÀÌ °´Ã¼·ÎºÎÅÍ key ¹ÙÀεùÀ» »èÁ¦ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º InputMap ³»ÀÇ remove

clear

public void clear()
ÀÌ °´Ã¼·ÎºÎÅÍ ¸ðµç ¸ÊÀ» »èÁ¦ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º InputMap ³»ÀÇ clear

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.