|
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.plaf.basic.BasicComboBoxRenderer
ComboBox ÀÇ ·»´õ¸µÀÔ´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁý´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. ¹öÁ¯ 1.4 ÀÇ ½ÃÁ¡¿¡¼´Â JavaBeans ÀÇ Àå±â ±â¾ï¿ëÀÇ ¼Æ÷Æ®´Â ¸ðµÎ java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
BasicComboBoxRenderer.UIResource
UIResource ¸¦ ±¸ÇöÇÏ´Â BasicComboBoxRenderer ÀÇ ¼ºê Ŭ·¡½ºÀÔ´Ï´Ù. |
Ŭ·¡½º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
BasicComboBoxRenderer ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
Component |
getListCellRendererComponent (JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
ÁöÁ¤ÀÇ °ªÀ» Ç¥½ÃÇϵµ·Ï(µíÀÌ) ¼³Á¤µÈ ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getPreferredSize ()
preferredSize °¡ null ÀÌ¿ÜÀÇ °ªÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ ±× °ªÀ» µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º 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 , validate , validateTree |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected static Border noFocusBorder
»ý¼ºÀÚÀÇ »ó¼¼ |
public BasicComboBoxRenderer()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public Dimension getPreferredSize()
JComponent
ÀÇ ±â¼ú: preferredSize
°¡ null
ÀÌ¿ÜÀÇ °ªÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ ±× °ªÀ» µ¹·ÁÁÝ´Ï´Ù. UI delegateÀÇ getPreferredSize()
¸Þ¼Òµå°¡ null
ÀÌ¿ÜÀÇ °ªÀ» µ¹·ÁÁÖ´Â °æ¿ì´Â ±× °ªÀ» µ¹·ÁÁÝ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÄÄÆÛ³ÍÆ® ·¹À̾ƿô ¸Å´ÏÀú¿¡ µû¸¨´Ï´Ù.
JComponent
³»ÀÇ getPreferredSize
preferredSize
ÇÁ·ÎÆÛƼÀÇ °ªJComponent.setPreferredSize(java.awt.Dimension)
,
ComponentUI
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
|
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.