|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JLabel
|
+--javax.swing.DefaultListCellRenderer
¸®½ºÆ®ÀÇ Ç׸ñÀ» Ç¥Çö ÇÕ´Ï´Ù.
±¸Çö»óÀÇ ÁÖÀÇ:
ÀÌ Å¬·¡½º´Â ÆÛÆ÷¸Õ½º Çâ»óÀ» À§ÇØ,validate,revalidate,repaint, ¹× firePropertyChange ¸¸À» ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. ¿À¹ö¶óÀ̵å(override) µÇÁö ¾Ê´Â °æ¿ì, È£Ãâ ºóµµÀÇ ³ôÀº ¸Þ¼Òµå°¡, µðÆúÆ® ¸®½ºÆ®ÀÇ ¼¿ ·»´õ¸µ¿¡¼´Â ºÒ¿äÀÇ ÄÚµå ÆÐ½º¸¦ ½ÇÇàÇÕ´Ï´Ù. µ¶ÀÚÀûÀÎ ·»´õ¸µ ³í¸®¸¦ ÀÛ¼ºÇÏ´Â °æ¿ì´Â ÀÌ·¯ÇÑ ¸Þ¼ÒµåÀÇ ¿À¹ö¶óÀ̵å(override)¿¡¼ÀÇ ÀÌÁ¡À̳ª °áÁ¡¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄ ¸±¸®½º µÇ´Â Swing ¿ÍÀÇ È£È¯¼ºÀº ¾ø½À´Ï´Ù. ÇöÀç ¼Æ÷Æ®µÇ°í ÀÖ´Â Á÷·ÄÈ´Â ´Ü±â°£ÀÇ º¸°ü, ¶Ç´Â °°Àº ¹öÁ¯ÀÇ Swing °¡ °¡µ¿Çϰí ÀÖ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ·ÎºÎÅÍ´Â ¸ðµç JavaBeansTM ÀÇ Àå±â°£ÀÇ º¸°üÀÌ java.beans ÆÐŰÁö·Î Ãß°¡ ¼Æ÷Æ®µÇ°í ÀÖ½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
| ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
DefaultListCellRenderer.UIResource
UIResource ¸¦ ±¸ÇöÇÏ´Â DefaultListCellRenderer ÀÇ ¼ºê Ŭ·¡½ºÀÔ´Ï´Ù. |
| Ŭ·¡½º javax.swing. JLabel À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
JLabel.AccessibleJLabel |
| Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
JComponent.AccessibleJComponent |
| Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
Container.AccessibleAWTContainer |
| Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
| ÇʵåÀÇ °³¿ä | |
protected static Border |
noFocusBorder
|
| Ŭ·¡½º javax.swing. JLabel ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
labelFor |
| Ŭ·¡½º javax.swing. JComponent ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW |
| Ŭ·¡½º java.awt. Component ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
| ÀÎÅÍÆäÀ̽º javax.swing. SwingConstants ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
| ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
| »ý¼ºÀÚÀÇ °³¿ä | |
DefaultListCellRenderer ()
¸®½ºÆ®³»ÀÇ Ç׸ñ¿¡ »ç¿ëÇÏ´Â µðÆúÆ®ÀÇ ·»´õ¸µ ¿ÀºêÁ§Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
void |
firePropertyChange (String propertyName,
boolean oldValue,
boolean newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
byte oldValue,
byte newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
char oldValue,
char newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
double oldValue,
double newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
float oldValue,
float newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
int oldValue,
int newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
long oldValue,
long newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
protected void |
firePropertyChange (String propertyName,
Object oldValue,
Object newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
short oldValue,
short newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
Component |
getListCellRendererComponent (JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
ÁöÁ¤ÀÇ °ªÀ» Ç¥½ÃÇϵµ·Ï(µíÀÌ) ¼³Á¤µÈ ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
repaint (long tm,
int x,
int y,
int width,
int height)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
repaint (Rectangle r)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
revalidate ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
validate ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
| Ŭ·¡½º javax.swing. JLabel ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
checkHorizontalKey , checkVerticalKey , getAccessibleContext , getDisabledIcon , getDisplayedMnemonic , getDisplayedMnemonicIndex , getHorizontalAlignment , getHorizontalTextPosition , getIcon , getIconTextGap , getLabelFor , getText , getUI , getUIClassID , getVerticalAlignment , getVerticalTextPosition , imageUpdate , paramString , setDisabledIcon , setDisplayedMnemonic , setDisplayedMnemonic , setDisplayedMnemonicIndex , setHorizontalAlignment , setHorizontalTextPosition , setIcon , setIconTextGap , setLabelFor , setText , setUI , setVerticalAlignment , setVerticalTextPosition , updateUI |
| Ŭ·¡½º java.awt. Container ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
add , add , add , add , add , addContainerListener , addImpl , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , setLayout , transferFocusBackward , transferFocusDownCycle , validateTree |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| ÇʵåÀÇ »ó¼¼ |
protected static Border noFocusBorder
| »ý¼ºÀÚÀÇ »ó¼¼ |
public DefaultListCellRenderer()
| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
ListCellRenderer ÀÇ ±â¼ú: paint ¸Þ¼Òµå°¡ ºÒ·Á °¡, ¼¿À» ¡¸Ç¥Çö¡¹ÇÕ´Ï´Ù. ¸®½ºÆ® ¼¿ÀÇ »çÀÌÁî°¡ °íÁ¤µÇ¾î ÀÖÁö ¾Ê±â ¶§¹®¿¡, ¸®½ºÆ®ÀÇ Ä¡¼ö¸¦ °è»êÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì¿¡´Â ÀÌ ¸Þ¼Òµå°¡ ºÒ·Á °¡,getPreferredSize ¸¦ È£ÃâÇÒ ¼ö ÀÖ´Â ÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù.
ListCellRenderer ³»ÀÇ getListCellRendererComponent list - paint Çϰí ÀÖ´Â JListvalue - list.getModel(). getElementAt(index)¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â °ªindex - ¼¿ÀÇ À妽ºisSelected - ÁöÁ¤ÀÇ ¼¿ÀÌ ¼±ÅõǾúÀ» °æ¿ì´Â truecellHasFocus - ÁöÁ¤ÀÇ ¼¿¿¡ Æ÷Ä¿½º°¡ ÀÖ´Â °æ¿ì´Â true
JList ,
ListSelectionModel ,
ListModel public void validate()
Container ³»ÀÇ validate Container.validate() ,
Component.invalidate() public void revalidate()
JComponent ³»ÀÇ revalidate Component.invalidate() ,
Container.validate() ,
JComponent.isValidateRoot() ,
RepaintManager.addInvalidComponent(javax.swing.JComponent)
public void repaint(long tm,
int x,
int y,
int width,
int height)
JComponent ³»ÀÇ repaint tm - ÀÌ ÆÄ¶ó¹ÌÅÍ´Â »ç¿ëµÇÁö ¾Ê½À´Ï´Ùx - ´õƼ ¸®Á¯ÀÇ x ÁÂÇ¥y - ´õƼ ¸®Á¯ÀÇ y ÁÂÇ¥width - ´õƼ ¸®Á¯ÀÇ Æøheight - ´õƼ ¸®Á¯ÀÇ ³ôÀÌComponent.isShowing() ,
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int) public void repaint(Rectangle r)
JComponent ³»ÀÇ repaint r - ´õƼ ¸®Á¯À» Æ÷ÇÔÇÑ RectangleComponent.isShowing() ,
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (Object)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (Object)PropertyChangeSupport
public void firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (byte)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (byte)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
char oldValue,
char newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (char)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (char)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
short oldValue,
short newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (short)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (short)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
int oldValue,
int newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (int)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (int)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
long oldValue,
long newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (long)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (long)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
float oldValue,
float newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (float)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (float)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
double oldValue,
double newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (double)newValue - ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (double)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
JComponent ³»ÀÇ firePropertyChange propertyName - º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue - ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (boolean)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.