|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPopupMenu
javax.swing.plaf.basic.BasicComboPopup
public class BasicComboPopup
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 |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
인터페이스 javax.swing.plaf.basic. ComboPopup 로부터 상속된 메소드 |
---|
isVisible |
필드의 상세 |
---|
protected JComboBox comboBox
protected JList list
getList()
,
createList()
protected JScrollPane scroller
createScroller()
protected boolean valueIsAdjusting
protected MouseMotionListener mouseMotionListener
getMouseMotionListener()
,
createMouseMotionListener()
protected MouseListener mouseListener
getMouseListener()
,
createMouseListener()
protected KeyListener keyListener
getKeyListener()
,
createKeyListener()
protected ListSelectionListener listSelectionListener
createListSelectionListener()
protected MouseListener listMouseListener
createListMouseListener()
protected MouseMotionListener listMouseMotionListener
createListMouseMotionListener()
protected PropertyChangeListener propertyChangeListener
createPropertyChangeListener()
protected ListDataListener listDataListener
createListDataListener()
protected ItemListener itemListener
createItemListener()
protected Timer autoscrollTimer
protected boolean hasEntered
protected boolean isAutoScrolling
protected int scrollDirection
protected static final int SCROLL_UP
protected static final int SCROLL_DOWN
생성자 의 상세 |
---|
public BasicComboPopup(JComboBox combo)
메소드의 상세 |
---|
public void show()
ComboPopup
내의 show
Component
내의 show
public void hide()
ComboPopup
내의 hide
Component
내의 hide
public JList getList()
ComboPopup
내의 getList
public MouseListener getMouseListener()
ComboPopup
내의 getMouseListener
MouseListener
또는 nullComboPopup.getMouseListener()
public MouseMotionListener getMouseMotionListener()
ComboPopup
내의 getMouseMotionListener
MouseMotionListener
또는 nullComboPopup.getMouseMotionListener()
public KeyListener getKeyListener()
ComboPopup
내의 getKeyListener
KeyListener
또는 nullComboPopup.getKeyListener()
public void uninstallingUI()
ComboPopup
내의 uninstallingUI
protected void uninstallComboBoxModelListeners(ComboBoxModel model)
model
- 청취자를 인스톨 하는 combobox 모델installComboBoxModelListeners(javax.swing.ComboBoxModel)
protected void uninstallKeyboardActions()
protected void firePopupMenuWillBecomeVisible()
JPopupMenu
의 기술:PopupMenuListener
에, pop-up menu가 가시가 되는 것을 통지합니다.
JPopupMenu
내의 firePopupMenuWillBecomeVisible
protected void firePopupMenuWillBecomeInvisible()
JPopupMenu
의 기술:PopupMenuListener
에, pop-up menu가 불가시가 되는 것을 통지합니다.
JPopupMenu
내의 firePopupMenuWillBecomeInvisible
protected void firePopupMenuCanceled()
JPopupMenu
의 기술:PopupMenuListener
에, pop-up menu가 삭제된 것을 통지합니다.
JPopupMenu
내의 firePopupMenuCanceled
protected MouseListener createMouseListener()
MouseListener
,
또는 nullprotected MouseMotionListener createMouseMotionListener()
MouseMotionListener
,
또는 nullprotected KeyListener createKeyListener()
KeyListener
또는 nullprotected ListSelectionListener createListSelectionListener()
ListSelectionListener
의 인스턴스, 또는 nullprotected ListDataListener createListDataListener()
ComboBoxModel
에 추가되는 리스트 데이터 청취자를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox 모델에게는 추가되지 않습니다.
ListDataListener
의 인스턴스, 또는 nullprotected MouseListener createListMouseListener()
MouseListener
의 인스턴스, 또는 nullprotected MouseMotionListener createListMouseMotionListener()
MouseMotionListener
의 인스턴스, 또는 nullprotected PropertyChangeListener createPropertyChangeListener()
PropertyChangeListener
를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.
PropertyChangeListener
의 인스턴스, 또는 nullprotected ItemListener createItemListener()
ItemListener
를 작성합니다. 이 메소드가 null 를 돌려주는 경우, combobox에는 추가되지 않습니다.
서브 클래스는, 이 메소드를 오버라이드(override) 해, 독자적인 ItemEvent 핸들러의 인스턴스를 돌려줄 수가 있습니다.
ItemListener
의 인스턴스, 또는 nullprotected JList createList()
JList
protected void configureList()
createList()
protected void installListListeners()
protected JScrollPane createScroller()
protected void configureScroller()
protected void configurePopup()
protected void installComboBoxListeners()
protected void installComboBoxModelListeners(ComboBoxModel model)
uninstallComboBoxModelListeners
로부터 삭제할 필요가 있습니다.
model
- 청취자를 인스톨 하는 combobox 모델uninstallComboBoxModelListeners(javax.swing.ComboBoxModel)
protected void installKeyboardActions()
public boolean isFocusTraversable()
Component
내의 isFocusTraversable
Component
가 포커스를 취득할 수 있는 경우는 true
,
그렇지 않은 경우는 false
Component.setFocusable(boolean)
protected void startAutoScrolling(int direction)
protected void stopAutoScrolling()
protected void autoScrollUp()
protected void autoScrollDown()
public AccessibleContext getAccessibleContext()
Accessible
내의 getAccessibleContext
JPopupMenu
내의 getAccessibleContext
protected void delegateFocus(MouseEvent e)
protected void togglePopup()
protected MouseEvent convertMouseEvent(MouseEvent e)
protected int getPopupHeightForRowCount(int maxRowCount)
protected Rectangle computePopupBounds(int px, int py, int pw, int ph)
px
- 개시의 x 위치py
- 개시의 y 위치pw
- 개시의 폭ph
- 개시의 높이
protected void updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.