JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
클래스 BasicComboPopup

java.lang.Object 
  상위를 확장 java.awt.Component 
      상위를 확장 java.awt.Container 
          상위를 확장 javax.swing.JComponent 
              상위를 확장 javax.swing.JPopupMenu 
                  상위를 확장 javax.swing.plaf.basic.BasicComboPopup
모든 구현된 인터페이스:
ImageObserver , MenuContainer , Serializable , Accessible , MenuElement , ComboPopup
직계의 기존의 서브 클래스:
MetalComboBoxUI.MetalComboPopup


public class BasicComboPopup
extends JPopupMenu
implements ComboPopup

ComboPopup 인터페이스의 기본적인 구현입니다. 이 클래스는, combobox의 pop-up 부분의 UI 를 표현합니다.

모든 이벤트 처리는,createxxxListener() 의 각 메소드, 및 내부 클래스를 사용해 작성된 청취자 클래스에 의해 처리됩니다. 이 클래스의 동작을 변경하려면 ,createxxxListener() 의 각 메소드를 오버라이드(override) 한 다음, 독자적인 이벤트 청취자를 제공하는지, 이 클래스에서 제공된 이벤트 청취자로부터 서브 클래스화합니다.

경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


상자의 클래스의 개요
 class BasicComboPopup.InvocationKeyHandler
          Java 2 플랫폼 1.4 로부터 이 클래스는 폐지되어 API 의 하위 호환만의 위해(때문에) 짜넣어지고 있습니다.
protected  class BasicComboPopup.InvocationMouseHandler
          pop-up menu 상태에 영향을 주는 마우스 이벤트를 처리하기 위해(때문에), (그 pop-up menu는 아니고) combobox에 등록되는 청취자입니다.
protected  class BasicComboPopup.InvocationMouseMotionHandler
          이 청취자는, 마우스의 드래그를 감시해, 리스트상에서의 드래그이면 리스트의 현재의 선택 범위를 갱신합니다.
protected  class BasicComboPopup.ItemHandler
          이 청취자는, combobox의 선택의 변경을 감시합니다.
 class BasicComboPopup.ListDataHandler
          1. 4 로부터 이 클래스는 폐지되어 아무것도 실시하지 않고, API 하위 호환만의 위해(때문에) 짜넣어지고 있습니다.
protected  class BasicComboPopup.ListMouseHandler
          이 청취자는, 리스트내에서 mouse button를 놓았을 때에 pop-up를 덮어 가립니다.
protected  class BasicComboPopup.ListMouseMotionHandler
          이 청취자는, 리스트상에서의 마우스의 움직임에 응해, 선택된 항목을 변경합니다.
protected  class BasicComboPopup.ListSelectionHandler
          Java 2 플랫폼 1.4 에서는, 이 클래스는 폐지되어 아무것도 실시하지 않고, API 하위 호환만의 위해(때문에) 짜넣어지고 있습니다.
protected  class BasicComboPopup.PropertyChangeHandler
          이 청취자는, combobox내에서 변경된 바운드 프로퍼티을 감시합니다.
 
클래스 javax.swing. JPopupMenu 로부터 상속된 상자의 클래스/인터페이스
JPopupMenu.AccessibleJPopupMenu , JPopupMenu.Separator
 
클래스 javax.swing. JComponent 로부터 상속된 상자의 클래스/인터페이스
JComponent.AccessibleJComponent
 
클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스
Container.AccessibleAWTContainer
 
클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy
 
필드의 개요
protected  Timer autoscrollTimer
          이 protected 필드는 구현 고유의 것입니다.
protected  JComboBox comboBox
           
protected  boolean hasEntered
           
protected  boolean isAutoScrolling
           
protected  ItemListener itemListener
          이 protected 필드는 구현 고유의 것입니다.
protected  KeyListener keyListener
          이 protected 필드는 구현 고유의 것입니다.
protected  JList list
          이 protected 필드는 구현 고유의 것입니다.
protected  ListDataListener listDataListener
          이 protected 필드는 구현 고유의 것입니다.
protected  MouseListener listMouseListener
          이 protected 필드는 구현 고유의 것입니다.
protected  MouseMotionListener listMouseMotionListener
          이 protected 필드는 구현 고유의 것입니다.
protected  ListSelectionListener listSelectionListener
          이 protected 필드는 구현 고유의 것입니다.
protected  MouseListener mouseListener
          이 protected 필드는 구현 고유의 것입니다.
protected  MouseMotionListener mouseMotionListener
          이 protected 필드는 구현 고유의 것입니다.
protected  PropertyChangeListener propertyChangeListener
          이 protected 필드는 구현 고유의 것입니다.
protected static int SCROLL_DOWN
           
protected static int SCROLL_UP
           
protected  int scrollDirection
           
protected  JScrollPane scroller
          이 protected 필드는 구현 고유의 것입니다.
protected  boolean valueIsAdjusting
          문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.4 에서는 사용되지 않습니다.
 
클래스 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
 
인터페이스 java.awt.image. ImageObserver 로부터 상속된 필드
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH
 
생성자 의 개요
BasicComboPopup (JComboBox  combo)
           
 
메소드의 개요
protected  void autoScrollDown ()
          protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다.
protected  void autoScrollUp ()
          protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다.
protected  Rectangle computePopupBounds (int px, int py, int pw, int ph)
          combobox의 위치와 화면의 포위 경계에 근거해, combobox의 pop-up 부분의 배치와 사이즈를 계산합니다.
protected  void configureList ()
          pop-up의 combobox 항목의 보존에 사용되는 리스트를 설정합니다.
protected  void configurePopup ()
          combobox의 pop-up 부분을 설정합니다.
protected  void configureScroller ()
          combobox pop-up내에 리스트를 가지는, 스크롤 가능한 부분을 설정합니다.
protected  MouseEvent convertMouseEvent (MouseEvent  e)
           
protected  ItemListener createItemListener ()
          combobox에 추가되는 ItemListener 를 작성합니다.
protected  KeyListener createKeyListener ()
          combobox에 추가되는 키 청취자를 작성합니다.
protected  JList createList ()
          combobox 모델의 항목을 표시하기 위해서, pop-up로 사용되는 JList 를 작성합니다.
protected  ListDataListener createListDataListener ()
          ComboBoxModel 에 추가되는 리스트 데이터 청취자를 작성합니다.
protected  MouseListener createListMouseListener ()
          pop-up의 리스트의 마우스 이벤트를 감시하는 마우스 청취자를 작성합니다.
protected  MouseMotionListener createListMouseMotionListener ()
          pop-up의 리스트의 마우스 동작 이벤트를 감시하는 마우스 동작 청취자를 작성합니다.
protected  ListSelectionListener createListSelectionListener ()
          pop-up의 리스트의 선택 변경을 감시하는 리스트 선택 청취자를 작성합니다.
protected  MouseListener createMouseListener ()
          combobox상에서 mouse button를 누르거나 놓거나 하는 이벤트를 감시하는 청취자를 작성합니다.
protected  MouseMotionListener createMouseMotionListener ()
          combobox에 추가되는 마우스 동작 청취자를 작성합니다.
protected  PropertyChangeListener createPropertyChangeListener ()
          combobox에 추가되는 PropertyChangeListener 를 작성합니다.
protected  JScrollPane createScroller ()
          스크롤 가능한 리스트를 가지는 스크롤 구획을 작성합니다.
protected  void delegateFocus (MouseEvent  e)
          pop-up가 열릴 때, 포커스의 발송지를 이벤트 핸들러가 결정되는 것을 보조하는 유틸리티 메소드입니다.
protected  void firePopupMenuCanceled ()
          PopupMenuListener 에, pop-up menu가 삭제된 것을 통지합니다.
protected  void firePopupMenuWillBecomeInvisible ()
          PopupMenuListener 에, pop-up menu가 불가시가 되는 것을 통지합니다.
protected  void firePopupMenuWillBecomeVisible ()
          PopupMenuListener 에, pop-up menu가 가시가 되는 것을 통지합니다.
 AccessibleContext getAccessibleContext ()
          BasicComboPopup 에 관련지을 수 있었던 AccessibleContext 를 가져옵니다.
 KeyListener getKeyListener ()
          ComboPopup.getKeyListener()의 구현입니다.
 JList getList ()
          ComboPopup.getList()의 구현입니다.
 MouseListener getMouseListener ()
          ComboPopup.getMouseListener()의 구현입니다.
 MouseMotionListener getMouseMotionListener ()
          ComboPopup.getMouseMotionListener()의 구현입니다.
protected  int getPopupHeightForRowCount (int maxRowCount)
          현재의 ListCellRenderer 에 근거하는 pop-up의 높이와 최대행수를 검출합니다.
 void hide ()
          ComboPopup.hide()의 구현입니다.
protected  void installComboBoxListeners ()
          JComboBox 에 필요한 청취자를 추가합니다.
protected  void installComboBoxModelListeners (ComboBoxModel  model)
          combobox 모델상에 청취자를 인스톨 합니다.
protected  void installKeyboardActions ()
           
protected  void installListListeners ()
          리스트 컨트롤에 청취자를 추가합니다.
 boolean isFocusTraversable ()
          오버라이드(override) 되어 무조건으로 false 를 돌려줍니다.
 void show ()
          ComboPopup.show()의 구현입니다.
protected  void startAutoScrolling (int direction)
          protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다.
protected  void stopAutoScrolling ()
          protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다.
protected  void togglePopup ()
          pop-up가 비표시가 되어 있는 경우는 표시해, 표시되고 있으면 비표시로 합니다.
protected  void uninstallComboBoxModelListeners (ComboBoxModel  model)
          combobox 모델로부터 청취자를 삭제합니다.
 void uninstallingUI ()
          UI 의 언인스톨중에 불려 갑니다.
protected  void uninstallKeyboardActions ()
           
protected  void updateListBoxSelectionForEvent (MouseEvent  anEvent, boolean shouldScroll)
          이벤트 청취자가 사용하는 유틸리티 메소드입니다.
 
클래스 javax.swing. JPopupMenu 로부터 상속된 메소드
add , add , add , addMenuKeyListener , addPopupMenuListener , addSeparator , createActionChangeListener , createActionComponent , getComponent , getComponentAtIndex , getComponentIndex , getDefaultLightWeightPopupEnabled , getInvoker , getLabel , getMargin , getMenuKeyListeners , getPopupMenuListeners , getSelectionModel , getSubElements , getUI , getUIClassID , insert , insert , isBorderPainted , isLightWeightPopupEnabled , isPopupTrigger , isVisible , menuSelectionChanged , pack , paintBorder , paramString , processFocusEvent , processKeyEvent , processKeyEvent , processMouseEvent , remove , removeMenuKeyListener , removePopupMenuListener , setBorderPainted , setDefaultLightWeightPopupEnabled , setInvoker , setLabel , setLightWeightPopupEnabled , setLocation , setPopupSize , setPopupSize , setSelected , setSelectionModel , setUI , setVisible , show , updateUI
 
클래스 javax.swing. JComponent 로부터 상속된 메소드
addAncestorListener , addNotify , addVetoableChangeListener , computeVisibleRect , contains , createToolTip , disable , enable , firePropertyChange , firePropertyChange , firePropertyChange , fireVetoableChange , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAncestorListeners , getAutoscrolls , getBaseline , getBaselineResizeBehavior , getBorder , getBounds , getClientProperty , getComponentGraphics , getComponentPopupMenu , getConditionForKeyStroke , getDebugGraphicsOptions , getDefaultLocale , getFontMetrics , getGraphics , getHeight , getInheritsPopupMenu , getInputMap , getInputMap , getInputVerifier , getInsets , getInsets , getListeners , getLocation , getMaximumSize , getMinimumSize , getNextFocusableComponent , getPopupLocation , getPreferredSize , getRegisteredKeyStrokes , getRootPane , getSize , getToolTipLocation , getToolTipText , getToolTipText , getTopLevelAncestor , getTransferHandler , getVerifyInputWhenFocusTarget , getVetoableChangeListeners , getVisibleRect , getWidth , getX , getY , grabFocus , isDoubleBuffered , isLightweightComponent , isManagingFocus , isOpaque , isOptimizedDrawingEnabled , isPaintingForPrint , isPaintingTile , isRequestFocusEnabled , isValidateRoot , paint , paintChildren , paintComponent , paintImmediately , paintImmediately , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processKeyBinding , processMouseEvent , processMouseMotionEvent , putClientProperty , registerKeyboardAction , registerKeyboardAction , removeAncestorListener , removeNotify , removeVetoableChangeListener , repaint , repaint , requestDefaultFocus , requestFocus , requestFocus , requestFocusInWindow , requestFocusInWindow , resetKeyboardActions , reshape , revalidate , scrollRectToVisible , setActionMap , setAlignmentX , setAlignmentY , setAutoscrolls , setBackground , setBorder , setComponentPopupMenu , setDebugGraphicsOptions , setDefaultLocale , setDoubleBuffered , setEnabled , setFocusTraversalKeys , setFont , setForeground , setInheritsPopupMenu , setInputMap , setInputVerifier , setMaximumSize , setMinimumSize , setNextFocusableComponent , setOpaque , setPreferredSize , setRequestFocusEnabled , setToolTipText , setTransferHandler , setUI , setVerifyInputWhenFocusTarget , unregisterKeyboardAction , update
 
클래스 java.awt. Container 로부터 상속된 메소드
add , add , add , add , add , addContainerListener , addImpl , addPropertyChangeListener , addPropertyChangeListener , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getComponentZOrder , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , getMousePosition , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicyProvider , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , removeAll , removeContainerListener , setComponentZOrder , setFocusCycleRoot , setFocusTraversalPolicy , setFocusTraversalPolicyProvider , setLayout , transferFocusBackward , transferFocusDownCycle , validate , validateTree
 
클래스 java.awt. Component 로부터 상속된 메소드
action , add , addComponentListener , addFocusListener , addHierarchyBoundsListener , addHierarchyListener , addInputMethodListener , addKeyListener , addMouseListener , addMouseMotionListener , addMouseWheelListener , bounds , checkImage , checkImage , coalesceEvents , contains , createImage , createImage , createVolatileImage , createVolatileImage , disableEvents , dispatchEvent , enable , enableEvents , enableInputMethods , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , getBackground , getBounds , getColorModel , getComponentListeners , getComponentOrientation , getCursor , getDropTarget , getFocusCycleRootAncestor , getFocusListeners , getFocusTraversalKeysEnabled , getFont , getForeground , getGraphicsConfiguration , getHierarchyBoundsListeners , getHierarchyListeners , getIgnoreRepaint , getInputContext , getInputMethodListeners , getInputMethodRequests , getKeyListeners , getLocale , getLocation , getLocationOnScreen , getMouseListeners , getMouseMotionListeners , getMousePosition , getMouseWheelListeners , getName , getParent , getPeer , getPropertyChangeListeners , getPropertyChangeListeners , getSize , getToolkit , getTreeLock , gotFocus , handleEvent , hasFocus , imageUpdate , inside , isBackgroundSet , isCursorSet , isDisplayable , isEnabled , isFocusable , isFocusOwner , isFontSet , isForegroundSet , isLightweight , isMaximumSizeSet , isMinimumSizeSet , isPreferredSizeSet , isShowing , isValid , keyDown , keyUp , list , list , list , location , lostFocus , mouseDown , mouseDrag , mouseEnter , mouseExit , mouseMove , mouseUp , move , nextFocus , paintAll , postEvent , prepareImage , prepareImage , processComponentEvent , processHierarchyBoundsEvent , processHierarchyEvent , processInputMethodEvent , processMouseWheelEvent , remove , removeComponentListener , removeFocusListener , removeHierarchyBoundsListener , removeHierarchyListener , removeInputMethodListener , removeKeyListener , removeMouseListener , removeMouseMotionListener , removeMouseWheelListener , removePropertyChangeListener , removePropertyChangeListener , repaint , repaint , repaint , resize , resize , setBounds , setBounds , setComponentOrientation , setCursor , setDropTarget , setFocusable , setFocusTraversalKeysEnabled , setIgnoreRepaint , setLocale , setLocation , setName , setSize , setSize , show , size , toString , transferFocus , transferFocusUpCycle
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 
인터페이스 javax.swing.plaf.basic. ComboPopup 로부터 상속된 메소드
isVisible
 

필드의 상세

comboBox

protected JComboBox  comboBox

list

protected JList  list
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 액세스용의 메소드를 대신에 사용합니다.

관련 항목:
getList() , createList()

scroller

protected JScrollPane  scroller
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 생성 메소드를 사용해 주세요.

관련 항목:
createScroller()

valueIsAdjusting

protected boolean valueIsAdjusting
문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.4 에서는 사용되지 않습니다.


mouseMotionListener

protected MouseMotionListener  mouseMotionListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 액세스용 메소드 또는 생성용 메소드를 사용해 주세요.

관련 항목:
getMouseMotionListener() , createMouseMotionListener()

mouseListener

protected MouseListener  mouseListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 액세스용 메소드 또는 생성용 메소드를 사용해 주세요.

관련 항목:
getMouseListener() , createMouseListener()

keyListener

protected KeyListener  keyListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 액세스용 메소드 또는 생성용 메소드를 사용해 주세요.

관련 항목:
getKeyListener() , createKeyListener()

listSelectionListener

protected ListSelectionListener  listSelectionListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에 create 메소드를 사용합니다.

관련 항목:
createListSelectionListener()

listMouseListener

protected MouseListener  listMouseListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에 create 메소드를 사용합니다.

관련 항목:
createListMouseListener()

listMouseMotionListener

protected MouseMotionListener  listMouseMotionListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 생성 메소드를 사용해 주세요.

관련 항목:
createListMouseMotionListener()

propertyChangeListener

protected PropertyChangeListener  propertyChangeListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 생성 메소드를 사용해 주세요.

관련 항목:
createPropertyChangeListener()

listDataListener

protected ListDataListener  listDataListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 생성 메소드를 사용해 주세요.

관련 항목:
createListDataListener()

itemListener

protected ItemListener  itemListener
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요. 대신에, 생성 메소드를 사용해 주세요.

관련 항목:
createItemListener()

autoscrollTimer

protected Timer  autoscrollTimer
이 protected 필드는 구현 고유의 것입니다. 직접적인 액세스나 오버라이드(override)는 하지 말아 주세요.


hasEntered

protected boolean hasEntered

isAutoScrolling

protected boolean isAutoScrolling

scrollDirection

protected int scrollDirection

SCROLL_UP

protected static final int SCROLL_UP
관련 항목:
정수 필드치

SCROLL_DOWN

protected static final int SCROLL_DOWN
관련 항목:
정수 필드치
생성자 의 상세

BasicComboPopup

public BasicComboPopup(JComboBox  combo)
메소드의 상세

show

public void show()
ComboPopup.show()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 show
오버라이드(override):
클래스 Component 내의 show

hide

public void hide()
ComboPopup.hide()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 hide
오버라이드(override):
클래스 Component 내의 hide

getList

public JList  getList()
ComboPopup.getList()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 getList

getMouseListener

public MouseListener  getMouseListener()
ComboPopup.getMouseListener()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 getMouseListener
반환값:
MouseListener 또는 null
관련 항목:
ComboPopup.getMouseListener()

getMouseMotionListener

public MouseMotionListener  getMouseMotionListener()
ComboPopup.getMouseMotionListener()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 getMouseMotionListener
반환값:
MouseMotionListener 또는 null
관련 항목:
ComboPopup.getMouseMotionListener()

getKeyListener

public KeyListener  getKeyListener()
ComboPopup.getKeyListener()의 구현입니다.

정의:
인터페이스 ComboPopup 내의 getKeyListener
반환값:
KeyListener 또는 null
관련 항목:
ComboPopup.getKeyListener()

uninstallingUI

public void uninstallingUI()
UI 의 언인스톨중에 불려 갑니다. 이 pop-up는 컴퍼넌트 트리에 포함되지 않기 때문에, 컴퍼넌트 트리의 uninstallUI()는 불려 가지 않습니다. addComboBoxListeners()에 추가된 청취자를 삭제합니다.

정의:
인터페이스 ComboPopup 내의 uninstallingUI

uninstallComboBoxModelListeners

protected void uninstallComboBoxModelListeners(ComboBoxModel  model)
combobox 모델로부터 청취자를 삭제합니다.

파라미터:
model - 청취자를 인스톨 하는 combobox 모델
관련 항목:
installComboBoxModelListeners(javax.swing.ComboBoxModel)

uninstallKeyboardActions

protected void uninstallKeyboardActions()

firePopupMenuWillBecomeVisible

protected void firePopupMenuWillBecomeVisible()
클래스 JPopupMenu 의 기술:
PopupMenuListener 에, pop-up menu가 가시가 되는 것을 통지합니다.

오버라이드(override):
클래스 JPopupMenu 내의 firePopupMenuWillBecomeVisible

firePopupMenuWillBecomeInvisible

protected void firePopupMenuWillBecomeInvisible()
클래스 JPopupMenu 의 기술:
PopupMenuListener 에, pop-up menu가 불가시가 되는 것을 통지합니다.

오버라이드(override):
클래스 JPopupMenu 내의 firePopupMenuWillBecomeInvisible

firePopupMenuCanceled

protected void firePopupMenuCanceled()
클래스 JPopupMenu 의 기술:
PopupMenuListener 에, pop-up menu가 삭제된 것을 통지합니다.

오버라이드(override):
클래스 JPopupMenu 내의 firePopupMenuCanceled

createMouseListener

protected MouseListener  createMouseListener()
combobox상에서 mouse button를 누르거나 놓거나 하는 이벤트를 감시하는 청취자를 작성합니다. 경고:이 메소드를 오버라이드(override) 하는 경우, 반드시 현재의 동작을 유지하도록 해 주세요.

반환값:
combobox에 추가되는 MouseListener, 또는 null

createMouseMotionListener

protected MouseMotionListener  createMouseMotionListener()
combobox에 추가되는 마우스 동작 청취자를 작성합니다. 경고:이 메소드를 오버라이드(override) 하는 경우, 반드시 현재의 동작을 유지하도록 해 주세요.

반환값:
combobox에 추가되는 MouseMotionListener, 또는 null

createKeyListener

protected KeyListener  createKeyListener()
combobox에 추가되는 키 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.

반환값:
KeyListener 또는 null

createListSelectionListener

protected ListSelectionListener  createListSelectionListener()
pop-up의 리스트의 선택 변경을 감시하는 리스트 선택 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, pop-up 리스트에는 추가되지 않습니다.

반환값:
ListSelectionListener 의 인스턴스, 또는 null

createListDataListener

protected ListDataListener  createListDataListener()
ComboBoxModel 에 추가되는 리스트 데이터 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox 모델에게는 추가되지 않습니다.

반환값:
ListDataListener 의 인스턴스, 또는 null

createListMouseListener

protected MouseListener  createListMouseListener()
pop-up의 리스트의 마우스 이벤트를 감시하는 마우스 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.

반환값:
MouseListener 의 인스턴스, 또는 null

createListMouseMotionListener

protected MouseMotionListener  createListMouseMotionListener()
pop-up의 리스트의 마우스 동작 이벤트를 감시하는 마우스 동작 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.

반환값:
MouseMotionListener 의 인스턴스, 또는 null

createPropertyChangeListener

protected PropertyChangeListener  createPropertyChangeListener()
combobox에 추가되는 PropertyChangeListener 를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.

반환값:
PropertyChangeListener 의 인스턴스, 또는 null

createItemListener

protected ItemListener  createItemListener()
combobox에 추가되는 ItemListener 를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.

서브 클래스는, 이 메소드를 오버라이드(override) 해, 독자적인 ItemEvent 핸들러의 인스턴스를 돌려줄 수가 있습니다.

반환값:
ItemListener 의 인스턴스, 또는 null

createList

protected JList  createList()
combobox 모델의 항목을 표시하기 위해서, pop-up로 사용되는 JList 를 작성합니다. UI 클래스 작성시에, 이 메소드는 불려 갑니다.

반환값:
combobox 항목의 표시에 사용되는 JList

configureList

protected void configureList()
pop-up의 combobox 항목의 보존에 사용되는 리스트를 설정합니다. UI 클래스 작성시에, 이 메소드는 불려 갑니다.

관련 항목:
createList()

installListListeners

protected void installListListeners()
리스트 컨트롤에 청취자를 추가합니다.


createScroller

protected JScrollPane  createScroller()
스크롤 가능한 리스트를 가지는 스크롤 구획을 작성합니다.


configureScroller

protected void configureScroller()
combobox pop-up내에 리스트를 가지는, 스크롤 가능한 부분을 설정합니다. UI 클래스 작성시에, 이 메소드는 불려 갑니다.


configurePopup

protected void configurePopup()
combobox의 pop-up 부분을 설정합니다. UI 클래스 작성시에, 이 메소드는 불려 갑니다.


installComboBoxListeners

protected void installComboBoxListeners()
JComboBox 에 필요한 청취자를 추가합니다.


installComboBoxModelListeners

protected void installComboBoxModelListeners(ComboBoxModel  model)
combobox 모델상에 청취자를 인스톨 합니다. combobox 모델상에 인스톨 된 청취자는 모두,uninstallComboBoxModelListeners 로부터 삭제할 필요가 있습니다.

파라미터:
model - 청취자를 인스톨 하는 combobox 모델
관련 항목:
uninstallComboBoxModelListeners(javax.swing.ComboBoxModel)

installKeyboardActions

protected void installKeyboardActions()

isFocusTraversable

public boolean isFocusTraversable()
오버라이드(override) 되어 무조건으로 false 를 돌려줍니다.

오버라이드(override):
클래스 Component 내의 isFocusTraversable
반환값:
Component 가 포커스를 취득할 수 있는 경우는 true, 그렇지 않은 경우는 false
관련 항목:
Component.setFocusable(boolean)

startAutoScrolling

protected void startAutoScrolling(int direction)
protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다. 호출해 또는 오버라이드(override) 하지 말아 주세요.


stopAutoScrolling

protected void stopAutoScrolling()
protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다. 호출해 또는 오버라이드(override) 하지 말아 주세요.


autoScrollUp

protected void autoScrollUp()
protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다. 호출해 또는 오버라이드(override) 하지 말아 주세요.


autoScrollDown

protected void autoScrollDown()
protected 메소드는 구현 고유의 것으로, private 일 필요가 있습니다. 호출해 또는 오버라이드(override) 하지 말아 주세요.


getAccessibleContext

public AccessibleContext  getAccessibleContext()
BasicComboPopup 에 관련지을 수 있었던 AccessibleContext 를 가져옵니다. AccessibleContext 의 부모는 ComboBox 로 설정되어 있습니다.

정의:
인터페이스 Accessible 내의 getAccessibleContext
오버라이드(override):
클래스 JPopupMenu 내의 getAccessibleContext
반환값:
BasicComboPopup 의 AccessibleContext
도입된 버젼:
1.5

delegateFocus

protected void delegateFocus(MouseEvent  e)
pop-up가 열릴 때, 포커스의 발송지를 이벤트 핸들러가 결정되는 것을 보조하는 유틸리티 메소드입니다. 표준적인 구현에서는, combobox가 편집 가능한 경우는 에디터에 포커스를 위양 해, 편집 불가능한 경우는 JComboBox 에 위양 합니다.


togglePopup

protected void togglePopup()
pop-up가 비표시가 되어 있는 경우는 표시해, 표시되고 있으면 비표시로 합니다.


convertMouseEvent

protected MouseEvent  convertMouseEvent(MouseEvent  e)

getPopupHeightForRowCount

protected int getPopupHeightForRowCount(int maxRowCount)
현재의 ListCellRenderer 에 근거하는 pop-up의 높이와 최대행수를 검출합니다.


computePopupBounds

protected Rectangle  computePopupBounds(int px,
                                       int py,
                                       int pw,
                                       int ph)
combobox의 위치와 화면의 포위 경계에 근거해, combobox의 pop-up 부분의 배치와 사이즈를 계산합니다. 변환이 필요없는 경우, 반환되는 구형의 값은 파라미터와 같게 됩니다.

파라미터:
px - 개시의 x 위치
py - 개시의 y 위치
pw - 개시의 폭
ph - 개시의 높이
반환값:
pop-up의 배치와 사이즈를 나타내는 구형

updateListBoxSelectionForEvent

protected void updateListBoxSelectionForEvent(MouseEvent  anEvent,
                                              boolean shouldScroll)
이벤트 청취자가 사용하는 유틸리티 메소드입니다. 마우스 이벤트를 받아, 마우스아래에 있는 리스트 항목의 리스트 선택을 변경합니다.


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 도 참조해 주세요.