|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.AWTEventMulticaster
public class AWTEventMulticaster
AWTEventMulticaster
는,java.awt.event
패키지로 정의되는 AWT 이벤트에, 효율적으로, thread 세이프인, 마르치캐스트이벤트발송를 실시하는 구조를 구현합니다.
다음에, 이 클래스의 사용예를 나타냅니다.
public myComponent extends Component {
ActionListener actionListener = null;
public synchronized void addActionListener(ActionListener l) {
actionListener = AWTEventMulticaster.add(actionListener, l);
}
public synchronized void removeActionListener(ActionListener l) {
actionListener = AWTEventMulticaster.remove(actionListener, l);
}
public void processEvent(AWTEvent e) {
// when event occurs which causes "action" semantic
ActionListener listener = actionListener;
if (listener ! = null) {
listener.actionPerformed(new ActionEvent());
}
}
}
중요한 것은,add
메소드 및 remove
메소드의 최초의 인수는, 청취자를 보관 유지하는 필드이다고 하는 것입니다. 게다가 청취자를 보관 유지하는 필드에 add
메소드 및 remove
메소드의 결과를 할당할 필요가 있습니다.
AWTEventMulticaster
는, 구축시로 설정되는 EventListener
의 페어로서 구현됩니다. AWTEventMulticaster
는 불변입니다. add
메소드 및 remove
메소드에 의해,AWTEventMulticaster
가 변경될 것은 없습니다. 필요에 따라서 신규의 AWTEventMulticaster
가 작성됩니다. 이와 같이, 이벤트발송의 처리동안에 청취자를 추가 또는 삭제해도 안전합니다. 다만, 이벤트발송 조작동안에 추가된 이벤트 청취자에게는, 현재 발송 되고 있는 이벤트가 통지되지 않습니다.
모든 add
메소드로 null
인수를 사용할 수 있습니다. 최초의 인수가 null
의 경우, 2 번째의 인수가 돌려주어집니다. 최초의 인수가 null
는 아니고, 2 번째의 인수가 null
의 경우, 최초의 인수가 돌려주어집니다. 양쪽 모두의 인수가 null
가 아닌 경우는, 2 개의 인수를 사용해 신규의 AWTEventMulticaster
가 작성되어 그것이 돌려주어집니다.
2 개의 인수를 취하는 remove
메소드의 경우는, 다음의 항목이 돌려주어집니다.
null
인지,==
의 형식에서 인수가 동일한 경우는,null
.
AWTEventMulticaster
의 인스턴스가 아닌 경우는, 최초의 인수.
remove(EventListener)
메소드로 2 번째의 인수를 지정했을 경우는, 최초의 인수에 대해서 remove(EventListener)
를 호출한 결과.
Swing 에서는, 같은 논리로 EventListenerList
를 사용합니다. 자세한 것은, 이 메소드를 참조해 주세요.
EventListenerList
필드의 개요 | |
---|---|
protected EventListener |
a
|
protected EventListener |
b
|
생성자 의 개요 | |
---|---|
protected |
AWTEventMulticaster (EventListener a,
EventListener b)
청취자 a 와 청취자 b 를 이은, 이벤트 멀티 캐스터의 인스턴스를 생성합니다. |
메소드의 개요 | ||
---|---|---|
void |
actionPerformed (ActionEvent e)
청취자 a 와 청취자 b 의 actionPerformed 메소드를 호출하는 것에 의해, actionPerformed 이벤트를 처리합니다. |
|
static ActionListener |
add (ActionListener a,
ActionListener b)
액션 청취자 a 와 액션 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static AdjustmentListener |
add (AdjustmentListener a,
AdjustmentListener b)
조정 청취자 a 와 조정 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ComponentListener |
add (ComponentListener a,
ComponentListener b)
컴퍼넌트 청취자 a 와 컴퍼넌트 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ContainerListener |
add (ContainerListener a,
ContainerListener b)
컨테이너 청취자 a 와 컨테이너 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static FocusListener |
add (FocusListener a,
FocusListener b)
포커스 청취자 a 와 포커스 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static HierarchyBoundsListener |
add (HierarchyBoundsListener a,
HierarchyBoundsListener b)
계층 경계 청취자 a 와 계층 경계 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static HierarchyListener |
add (HierarchyListener a,
HierarchyListener b)
계층 청취자 a 와 계층 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static InputMethodListener |
add (InputMethodListener a,
InputMethodListener b)
입력 메소드 청취자 a 와 입력 메소드 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ItemListener |
add (ItemListener a,
ItemListener b)
항목 청취자 a 와 항목 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static KeyListener |
add (KeyListener a,
KeyListener b)
키 청취자 a 와 키 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseListener |
add (MouseListener a,
MouseListener b)
마우스 청취자 a 와 마우스 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseMotionListener |
add (MouseMotionListener a,
MouseMotionListener b)
마우스 모션 청취자 a 와 마우스 모션 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseWheelListener |
add (MouseWheelListener a,
MouseWheelListener b)
마우스 휠 청취자 a 와 마우스 휠 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static TextListener |
add (TextListener a,
TextListener b)
|
|
static WindowFocusListener |
add (WindowFocusListener a,
WindowFocusListener b)
윈도우 포커스 청취자 a 와 윈도우 포커스 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static WindowListener |
add (WindowListener a,
WindowListener b)
윈도우 청취자 a 와 윈도우 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static WindowStateListener |
add (WindowStateListener a,
WindowStateListener b)
윈도우 상태 청취자 a 와 윈도우 상태 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
protected static EventListener |
addInternal (EventListener a,
EventListener b)
청취자 a 와 청취자 b 를 더해 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
void |
adjustmentValueChanged (AdjustmentEvent e)
청취자 a 와 청취자 b 의 adjustmentValueChanged 메소드를 호출하는 것에 의해, adjustmentValueChanged 이벤트를 처리합니다. |
|
void |
ancestorMoved (HierarchyEvent e)
청취자 a 와 청취자 b 의 ancestorMoved 메소드를 호출하는 것에 의해, ancestorMoved 이벤트를 처리합니다. |
|
void |
ancestorResized (HierarchyEvent e)
청취자 a 와 청취자 b 의 ancestorResized 메소드를 호출하는 것에 의해, ancestorResized 이벤트를 처리합니다. |
|
void |
caretPositionChanged (InputMethodEvent e)
청취자 a 와 청취자 b 의 caretPositionChanged 메소드를 호출하는 것에 의해, caretPositionChanged 이벤트를 처리합니다. |
|
void |
componentAdded (ContainerEvent e)
청취자 a 와 청취자 b 의 componentAdded 메소드를 호출하는 것에 의해, componentAdded 컨테이너 이벤트를 처리합니다. |
|
void |
componentHidden (ComponentEvent e)
청취자 a 와 청취자 b 의 componentHidden 메소드를 호출하는 것에 의해, componentHidden 이벤트를 처리합니다. |
|
void |
componentMoved (ComponentEvent e)
청취자 a 와 청취자 b 의 componentMoved 메소드를 호출하는 것에 의해, componentMoved 이벤트를 처리합니다. |
|
void |
componentRemoved (ContainerEvent e)
청취자 a 와 청취자 b 의 componentRemoved 메소드를 호출하는 것에 의해, componentRemoved 컨테이너 이벤트를 처리합니다. |
|
void |
componentResized (ComponentEvent e)
청취자 a 와 청취자 b 의 componentResized 메소드를 호출하는 것에 의해, componentResized 이벤트를 처리합니다. |
|
void |
componentShown (ComponentEvent e)
청취자 a 와 청취자 b 의 componentShown 메소드를 호출하는 것에 의해, componentShown 이벤트를 처리합니다. |
|
void |
focusGained (FocusEvent e)
청취자 a 와 청취자 b 의 focusGained 메소드를 호출하는 것에 의해, focusGained 이벤트를 처리합니다. |
|
void |
focusLost (FocusEvent e)
청취자 a 와 청취자 b 의 focusLost 메소드를 호출하는 것에 의해, focusLost 이벤트를 처리합니다. |
|
static
|
getListeners (EventListener l,
Class <T> listenerType)
지정된 java.util.EventListener 로 연쇄되어FooListener 가 된 모든 객체의 배열을 돌려줍니다. |
|
void |
hierarchyChanged (HierarchyEvent e)
청취자 a 와 청취자 b 의 hierarchyChanged 메소드를 호출하는 것에 의해, hierarchyChanged 이벤트를 처리합니다. |
|
void |
inputMethodTextChanged (InputMethodEvent e)
청취자 a 와 청취자 b 의 inputMethodTextChanged 메소드를 호출하는 것에 의해, inputMethodTextChanged 이벤트를 처리합니다. |
|
void |
itemStateChanged (ItemEvent e)
청취자 a 와 청취자 b 의 itemStateChanged 메소드를 호출하는 것에 의해, itemStateChanged 이벤트를 처리합니다. |
|
void |
keyPressed (KeyEvent e)
청취자 a 와 청취자 b 의 keyPressed 메소드를 호출하는 것에 의해, keyPressed 이벤트를 처리합니다. |
|
void |
keyReleased (KeyEvent e)
청취자 a 와 청취자 b 의 keyReleased 메소드를 호출하는 것에 의해, keyReleased 이벤트를 처리합니다. |
|
void |
keyTyped (KeyEvent e)
청취자 a 와 청취자 b 의 keyTyped 메소드를 호출하는 것에 의해, keyTyped 이벤트를 처리합니다. |
|
void |
mouseClicked (MouseEvent e)
청취자 a 와 청취자 b 의 mouseClicked 메소드를 호출하는 것에 의해, mouseClicked 이벤트를 처리합니다. |
|
void |
mouseDragged (MouseEvent e)
청취자 a 와 청취자 b 의 mouseDragged 메소드를 호출하는 것에 의해, mouseDragged 이벤트를 처리합니다. |
|
void |
mouseEntered (MouseEvent e)
청취자 a 와 청취자 b 의 mouseEntered 메소드를 호출하는 것에 의해, mouseEntered 이벤트를 처리합니다. |
|
void |
mouseExited (MouseEvent e)
청취자 a 와 청취자 b 의 mouseExited 메소드를 호출하는 것에 의해, mouseExited 이벤트를 처리합니다. |
|
void |
mouseMoved (MouseEvent e)
청취자 a 와 청취자 b 의 mouseMoved 메소드를 호출하는 것에 의해, mouseMoved 이벤트를 처리합니다. |
|
void |
mousePressed (MouseEvent e)
청취자 a 와 청취자 b 의 mousePressed 메소드를 호출하는 것에 의해, mousePressed 이벤트를 처리합니다. |
|
void |
mouseReleased (MouseEvent e)
청취자 a 와 청취자 b 의 mouseReleased 메소드를 호출하는 것에 의해, mouseReleased 이벤트를 처리합니다. |
|
void |
mouseWheelMoved (MouseWheelEvent e)
청취자 a 와 청취자 b 의 mouseWheelMoved 메소드를 호출하는 것에 의해, mouseWheelMoved 이벤트를 처리합니다. |
|
static ActionListener |
remove (ActionListener l,
ActionListener oldl)
액션 청취자 l 로부터 낡은 액션 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static AdjustmentListener |
remove (AdjustmentListener l,
AdjustmentListener oldl)
조정 청취자 l 로부터 낡은 조정 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ComponentListener |
remove (ComponentListener l,
ComponentListener oldl)
컴퍼넌트 청취자 l 로부터 낡은 컴퍼넌트 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ContainerListener |
remove (ContainerListener l,
ContainerListener oldl)
컨테이너 청취자 l 로부터 낡은 컨테이너 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
protected EventListener |
remove (EventListener oldl)
이 멀티 캐스터로부터 청취자를 삭제합니다. |
|
static FocusListener |
remove (FocusListener l,
FocusListener oldl)
포커스 청취자 l 로부터 낡은 포커스 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static HierarchyBoundsListener |
remove (HierarchyBoundsListener l,
HierarchyBoundsListener oldl)
계층 경계 청취자 l 로부터 낡은 계층 경계 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static HierarchyListener |
remove (HierarchyListener l,
HierarchyListener oldl)
계층 청취자 l 로부터 낡은 계층 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static InputMethodListener |
remove (InputMethodListener l,
InputMethodListener oldl)
입력 메소드 청취자 l 로부터 낡은 입력 메소드 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static ItemListener |
remove (ItemListener l,
ItemListener oldl)
항목 청취자 l 로부터 낡은 항목 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static KeyListener |
remove (KeyListener l,
KeyListener oldl)
키 청취자 l 로부터 낡은 키 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseListener |
remove (MouseListener l,
MouseListener oldl)
마우스 청취자 l 로부터 낡은 마우스 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseMotionListener |
remove (MouseMotionListener l,
MouseMotionListener oldl)
마우스 모션 청취자 l 로부터 낡은 마우스 모션 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static MouseWheelListener |
remove (MouseWheelListener l,
MouseWheelListener oldl)
마우스 휠 청취자 l 로부터 낡은 마우스 휠 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static TextListener |
remove (TextListener l,
TextListener oldl)
|
|
static WindowFocusListener |
remove (WindowFocusListener l,
WindowFocusListener oldl)
윈도우 포커스 청취자 l 로부터 낡은 윈도우 포커스 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static WindowListener |
remove (WindowListener l,
WindowListener oldl)
윈도우 청취자 l 로부터 낡은 윈도우 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
static WindowStateListener |
remove (WindowStateListener l,
WindowStateListener oldl)
윈도우 상태 청취자 l 로부터 낡은 윈도우 상태 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
protected static EventListener |
removeInternal (EventListener l,
EventListener oldl)
청취자 l 로부터 낡은 청취자를 삭제해, 결과적으로 얻을 수 있는 멀티 캐스트 청취자를 돌려줍니다. |
|
protected static void |
save (ObjectOutputStream s,
String k,
EventListener l)
|
|
protected void |
saveInternal (ObjectOutputStream s,
String k)
|
|
void |
textValueChanged (TextEvent e)
텍스트의 값이 변경되면(자) 불려 갑니다. |
|
void |
windowActivated (WindowEvent e)
청취자 a 와 청취자 b 의 windowActivated 메소드를 호출하는 것에 의해, windowActivated 이벤트를 처리합니다. |
|
void |
windowClosed (WindowEvent e)
청취자 a 와 청취자 b 의 windowClosed 메소드를 호출하는 것에 의해, windowClosed 이벤트를 처리합니다. |
|
void |
windowClosing (WindowEvent e)
청취자 a 와 청취자 b 의 windowClosing 메소드를 호출하는 것에 의해, windowClosing 이벤트를 처리합니다. |
|
void |
windowDeactivated (WindowEvent e)
청취자 a 와 청취자 b 의 windowDeactivated 메소드를 호출하는 것에 의해, windowDeactivated 이벤트를 처리합니다. |
|
void |
windowDeiconified (WindowEvent e)
청취자 a 와 청취자 b 의 windowDeiconfied 메소드를 호출하는 것에 의해, windowDeiconified 이벤트를 처리합니다. |
|
void |
windowGainedFocus (WindowEvent e)
청취자 a 와 청취자 b 의 windowGainedFocus 메소드를 호출하는 것에 의해, windowGainedFocus 이벤트를 처리합니다. |
|
void |
windowIconified (WindowEvent e)
청취자 a 와 청취자 b 의 windowIconified 메소드를 호출하는 것에 의해, windowIconified 이벤트를 처리합니다. |
|
void |
windowLostFocus (WindowEvent e)
청취자 a 와 청취자 b 의 windowLostFocus 메소드를 호출하는 것에 의해, windowLostFocus 이벤트를 처리합니다. |
|
void |
windowOpened (WindowEvent e)
청취자 a 와 청취자 b 의 windowOpened 메소드를 호출하는 것에 의해, windowOpened 이벤트를 처리합니다. |
|
void |
windowStateChanged (WindowEvent e)
청취자 a 와 청취자 b 의 windowStateChanged 메소드를 호출하는 것에 의해, windowStateChanged 이벤트를 처리합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
protected final EventListener a
protected final EventListener b
생성자 의 상세 |
---|
protected AWTEventMulticaster(EventListener a, EventListener b)
a
와 b
에는 null
를 지정할 수 없습니다만, 그 경우에 NullPointerException
가 throw 될지 어떨지는 구현에 따라서 다릅니다.
a
- 청취자 ab
- 청취자 b메소드의 상세 |
---|
protected EventListener remove(EventListener oldl)
얻을 수 있는 멀티 캐스터에게는, 이 멀티 캐스터내의 모든 청취자가 포함됩니다만,oldl
의 출현은 모두 제외됩니다. 결과적으로 얻을 수 있는 멀티 캐스터에 일반적으로의 청취자가 1 개만 포함되는 경우는, 그 청취자가 돌려주어집니다. 결과적으로 얻을 수 있는 멀티 캐스터가 빈 상태(empty)인 경우는, 대신에 null
가 돌려주어집니다.
oldl
가 null
의 경우, 예외는 throw 되지 않습니다.
oldl
- 삭제되는 청취자
public void componentResized(ComponentEvent e)
ComponentListener
내의 componentResized
e
- 컴퍼넌트 이벤트public void componentMoved(ComponentEvent e)
ComponentListener
내의 componentMoved
e
- 컴퍼넌트 이벤트public void componentShown(ComponentEvent e)
ComponentListener
내의 componentShown
e
- 컴퍼넌트 이벤트public void componentHidden(ComponentEvent e)
ComponentListener
내의 componentHidden
e
- 컴퍼넌트 이벤트public void componentAdded(ContainerEvent e)
ContainerListener
내의 componentAdded
e
- 컴퍼넌트 이벤트public void componentRemoved(ContainerEvent e)
ContainerListener
내의 componentRemoved
e
- 컴퍼넌트 이벤트public void focusGained(FocusEvent e)
FocusListener
내의 focusGained
e
- 포커스 이벤트public void focusLost(FocusEvent e)
FocusListener
내의 focusLost
e
- 포커스 이벤트public void keyTyped(KeyEvent e)
KeyListener
내의 keyTyped
e
- 키 이벤트public void keyPressed(KeyEvent e)
KeyListener
내의 keyPressed
e
- 키 이벤트public void keyReleased(KeyEvent e)
KeyListener
내의 keyReleased
e
- 키 이벤트public void mouseClicked(MouseEvent e)
MouseListener
내의 mouseClicked
e
- 마우스 이벤트public void mousePressed(MouseEvent e)
MouseListener
내의 mousePressed
e
- 마우스 이벤트public void mouseReleased(MouseEvent e)
MouseListener
내의 mouseReleased
e
- 마우스 이벤트public void mouseEntered(MouseEvent e)
MouseListener
내의 mouseEntered
e
- 마우스 이벤트public void mouseExited(MouseEvent e)
MouseListener
내의 mouseExited
e
- 마우스 이벤트public void mouseDragged(MouseEvent e)
MouseMotionListener
내의 mouseDragged
e
- 마우스 이벤트public void mouseMoved(MouseEvent e)
MouseMotionListener
내의 mouseMoved
e
- 마우스 이벤트public void windowOpened(WindowEvent e)
WindowListener
내의 windowOpened
e
- 윈도우 이벤트public void windowClosing(WindowEvent e)
WindowListener
내의 windowClosing
e
- 윈도우 이벤트public void windowClosed(WindowEvent e)
WindowListener
내의 windowClosed
e
- 윈도우 이벤트public void windowIconified(WindowEvent e)
WindowListener
내의 windowIconified
e
- 윈도우 이벤트Frame.setIconImage(java.awt.Image)
public void windowDeiconified(WindowEvent e)
WindowListener
내의 windowDeiconified
e
- 윈도우 이벤트public void windowActivated(WindowEvent e)
WindowListener
내의 windowActivated
e
- 윈도우 이벤트public void windowDeactivated(WindowEvent e)
WindowListener
내의 windowDeactivated
e
- 윈도우 이벤트public void windowStateChanged(WindowEvent e)
WindowStateListener
내의 windowStateChanged
e
- 윈도우 이벤트public void windowGainedFocus(WindowEvent e)
WindowFocusListener
내의 windowGainedFocus
e
- 윈도우 이벤트public void windowLostFocus(WindowEvent e)
WindowFocusListener
내의 windowLostFocus
e
- 윈도우 이벤트public void actionPerformed(ActionEvent e)
ActionListener
내의 actionPerformed
e
- 액션 이벤트public void itemStateChanged(ItemEvent e)
ItemListener
내의 itemStateChanged
e
- 항목 이벤트public void adjustmentValueChanged(AdjustmentEvent e)
AdjustmentListener
내의 adjustmentValueChanged
e
- 조정 이벤트public void textValueChanged(TextEvent e)
TextListener
의 기술:
TextListener
내의 textValueChanged
public void inputMethodTextChanged(InputMethodEvent e)
InputMethodListener
내의 inputMethodTextChanged
e
- 항목 이벤트public void caretPositionChanged(InputMethodEvent e)
InputMethodListener
내의 caretPositionChanged
e
- 항목 이벤트public void hierarchyChanged(HierarchyEvent e)
HierarchyListener
내의 hierarchyChanged
e
- 항목 이벤트HierarchyEvent.getChangeFlags()
public void ancestorMoved(HierarchyEvent e)
HierarchyBoundsListener
내의 ancestorMoved
e
- 항목 이벤트public void ancestorResized(HierarchyEvent e)
HierarchyBoundsListener
내의 ancestorResized
e
- 항목 이벤트public void mouseWheelMoved(MouseWheelEvent e)
MouseWheelListener
내의 mouseWheelMoved
e
- 마우스 이벤트MouseWheelEvent
public static ComponentListener add(ComponentListener a, ComponentListener b)
a
- 컴퍼넌트 청취자 ab
- 컴퍼넌트 청취자 bpublic static ContainerListener add(ContainerListener a, ContainerListener b)
a
- 컨테이너 청취자 ab
- 컨테이너 청취자 bpublic static FocusListener add(FocusListener a, FocusListener b)
a
- 포커스 청취자 ab
- 포커스 청취자 bpublic static KeyListener add(KeyListener a, KeyListener b)
a
- 키 청취자 ab
- 키 청취자 bpublic static MouseListener add(MouseListener a, MouseListener b)
a
- 마우스 청취자 ab
- 마우스 청취자 bpublic static MouseMotionListener add(MouseMotionListener a, MouseMotionListener b)
a
- 마우스 모션 청취자 ab
- 마우스 모션 청취자 bpublic static WindowListener add(WindowListener a, WindowListener b)
a
- 윈도우 청취자 ab
- 윈도우 청취자 bpublic static WindowStateListener add(WindowStateListener a, WindowStateListener b)
a
- 윈도우 상태 청취자 ab
- 윈도우 상태 청취자 bpublic static WindowFocusListener add(WindowFocusListener a, WindowFocusListener b)
a
- 윈도우 포커스 청취자 ab
- 윈도우 포커스 청취자 bpublic static ActionListener add(ActionListener a, ActionListener b)
a
- 액션 청취자 ab
- 액션 청취자 bpublic static ItemListener add(ItemListener a, ItemListener b)
a
- 항목 청취자 ab
- 항목 청취자 bpublic static AdjustmentListener add(AdjustmentListener a, AdjustmentListener b)
a
- 조정 청취자 ab
- 조정 청취자 bpublic static TextListener add(TextListener a, TextListener b)
public static InputMethodListener add(InputMethodListener a, InputMethodListener b)
a
- 입력 메소드 청취자 ab
- 입력 메소드 청취자 bpublic static HierarchyListener add(HierarchyListener a, HierarchyListener b)
a
- 계층 청취자 ab
- 계층 청취자 bpublic static HierarchyBoundsListener add(HierarchyBoundsListener a, HierarchyBoundsListener b)
a
- 계층 경계 청취자 ab
- 계층 경계 청취자 bpublic static MouseWheelListener add(MouseWheelListener a, MouseWheelListener b)
a
- 마우스 휠 청취자 ab
- 마우스 휠 청취자 bpublic static ComponentListener remove(ComponentListener l, ComponentListener oldl)
l
- 컴퍼넌트 청취자 loldl
- 삭제되는 컴퍼넌트 청취자public static ContainerListener remove(ContainerListener l, ContainerListener oldl)
l
- 컨테이너 청취자 loldl
- 삭제되는 컨테이너 청취자public static FocusListener remove(FocusListener l, FocusListener oldl)
l
- 포커스 청취자 loldl
- 삭제되는 포커스 청취자public static KeyListener remove(KeyListener l, KeyListener oldl)
l
- 키 청취자 loldl
- 삭제되는 키 청취자public static MouseListener remove(MouseListener l, MouseListener oldl)
l
- 마우스 청취자 loldl
- 삭제되는 마우스 청취자public static MouseMotionListener remove(MouseMotionListener l, MouseMotionListener oldl)
l
- 마우스 모션 청취자 loldl
- 삭제되는 마우스 모션 청취자public static WindowListener remove(WindowListener l, WindowListener oldl)
l
- 윈도우 청취자 loldl
- 삭제되는 윈도우 청취자public static WindowStateListener remove(WindowStateListener l, WindowStateListener oldl)
l
- 윈도우 상태 청취자 loldl
- 삭제되는 윈도우 상태 청취자public static WindowFocusListener remove(WindowFocusListener l, WindowFocusListener oldl)
l
- 윈도우 포커스 청취자 loldl
- 삭제되는 윈도우 포커스 청취자public static ActionListener remove(ActionListener l, ActionListener oldl)
l
- 액션 청취자 loldl
- 삭제되는 액션 청취자public static ItemListener remove(ItemListener l, ItemListener oldl)
l
- 항목 청취자 loldl
- 삭제되는 항목 청취자public static AdjustmentListener remove(AdjustmentListener l, AdjustmentListener oldl)
l
- 조정 청취자 loldl
- 삭제되는 조정 청취자public static TextListener remove(TextListener l, TextListener oldl)
public static InputMethodListener remove(InputMethodListener l, InputMethodListener oldl)
l
- 입력 메소드 청취자 loldl
- 삭제되는 입력 메소드 청취자public static HierarchyListener remove(HierarchyListener l, HierarchyListener oldl)
l
- 계층 청취자 loldl
- 삭제되는 계층 청취자public static HierarchyBoundsListener remove(HierarchyBoundsListener l, HierarchyBoundsListener oldl)
l
- 계층 경계 청취자 loldl
- 삭제되는 계층 경계 청취자public static MouseWheelListener remove(MouseWheelListener l, MouseWheelListener oldl)
l
- 마우스 휠 청취자 Ioldl
- 삭제되는 마우스 휠 청취자protected static EventListener addInternal(EventListener a, EventListener b)
a
- 이벤트 청취자 ab
- 이벤트 청취자 bprotected static EventListener removeInternal(EventListener l, EventListener oldl)
l
- 삭제원의 청취자oldl
- 삭제되는 청취자protected void saveInternal(ObjectOutputStream s, String k) throws IOException
IOException
protected static void save(ObjectOutputStream s, String k, EventListener l) throws IOException
IOException
public static <T extends EventListener > T[] getListeners(EventListener l, Class <T> listenerType)
java.util.EventListener
로 연쇄되어FooListener
가 된 모든 객체의 배열을 돌려줍니다. FooListener
의 연쇄는,AWTEventMulticaster
에 의해 addFooListener
메소드를 사용해 행해집니다. null
청취자가 지정되고 있는 경우는, 빈 상태(empty)의 배열을 돌려줍니다. 지정된 청취자가 AWTEventMulticaster
의 인스턴스가 아닌 경우는, 지정된 청취자만을 포함한 배열을 돌려줍니다. 지정된 이러한 청취자가 연쇄되지 않는 경우는, 빈 상태(empty)의 배열을 돌려줍니다.
l
- 지정된 java.util.EventListener
listenerType
- 요구되는 청취자의 형태. java.util.EventListener
의 하위 인터페이스를 지정
FooListener
가 된 모든 객체의 배열.
청취자의 연쇄를 하지 않는 경우는
빈 상태(empty)의 배열
NullPointerException
- 지정된 listenertype
파라미터가 null
의 경우
ClassCastException
- listenerType
가 java.util.EventListener
를 구현하는 클래스 또는 인터페이스를 지정하지 않는 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.