appendix> event | TOPUPPREVNEXT |
AWTに用意されているリスナの一覧です。
発生元欄の[1.2]等は、SDK 1.2 以降 1.4 までに追加されたインターフェースであることを示しています。
リスナ インターフェース |
呼出されるメソッドと 渡されるイベント |
発生元 |
---|---|---|
ActionListener | actionPerformed(ActionEvent) | AbstractButton ボタンが押された時
JComboBoxJTextField Enter キーが押された時
Timer |
AjustmentListener | adjustmentValueChanged(AdustmentEvent) | JScrolbar |
AWTEventListener | eventDispatched(AWTEvent) | [1.2] |
ComponentListener | componentHidden(ComponentEvent) | Component |
componetMoved(ComponentEvent) | ||
componetResized(ComponentEvent) | ||
componetShown(ComponentEvent) | ||
ContainerListener | componentAdded(ContainerEvent) | Container |
componentRemoved(ContainerEvent) | ||
FocusListener | focusGained(focusEvent) | Component |
focusLost(focusEvent) | ||
HierarchyBountdsListener | ancestorMoved(HierarchyEvent) | [1.3] |
ancestorResized(HierarchyEvent) | ||
HierarchyListener | hierarchyChanged(HierarchyEvent) | [1.3] |
InputMethodListener | caretPositionChanged(InputMethodEvent) | [1.2] |
InputMethodTextChanged(InputMethodEvent) | ||
ItemListener | itemStateChanged(ItemEvent) | AbstractButton Checkbox CheckboxMenuItem Choice JcomboBox List |
KeyListener | keyPressed(KeyEvent) | Component |
keyReleased(KeyEvent) | ||
keyTyped(KeyEvent) | ||
MouseListener | mouseClicked(MouseEvent) | Component |
mouseEntered(MouseEvent) | ||
mouseExited(MouseEvent) | ||
mousePressed(MouseEvent) | ||
mouseReleased(MouseEvent) | ||
MouseMotionListener | mouseDragged(MouseEvent) | Component |
mouseMoved(MouseEvent) | ||
MouseWheelListener | mouseWheelMoved(MouseWheelEvent) | [1.4] |
TextListener | textValueChanged(TextEvent) | TextArea TextField |
WindowFocusListener | windowGainedFocus(WindowEvent) | [1.4] |
windowLostFocus(WindowEvent) | ||
WindowListener | windowActivated(WindowEvent) | Window |
windowClosed(WindowEvent) | ||
windowClosing(WindowEvent) | ||
windowDeactivated(WindowEvent) | ||
windowDeiconified(WindowEvent) | ||
windowIconified(WindowEvent) | ||
windowOpened(WindowEvent) | ||
WindowStateListener | windowStateChanged(WindowEvent) | [1.4] |
javax.swing.eventに用意されているリスナの一覧です。
リスナ インターフェース |
呼出されるメソッドと 渡されるイベント |
発生元 |
---|---|---|
AncestorListener | ancestorAdded(AncestorEvent) | JComponent およびその親 |
ancestorMoved(AncestorEvent) | ||
ancestorRemoved(AncestorEvent) | ||
CaretListener | caretUpdate(CaretEvent) | JEditorPane, JTextArea, JTextField |
CellEditorListener | editingCanceled(ChangeEvent) | |
editingStopped(ChangeEvent) | ||
ChangeListener | stateChanged(ChangeEvent) | AbstractButton, Menu, ProgressBar, ScrollBar, ScrollPane,Slider, TabbedPane, JMenuItem, JScrollPane, JSpinner,JTabbedPane, JTabbedPane |
DocumentListener | changedUpdate(DocumentEvent) | |
insertUpdate(DocumentEvent) | ||
removeUpdate(DocumentEvent) | ||
HyperlinkListener | hyperlinkUpdate(HyperlinkEvent) | |
InternalFrameListener | internalFrameActivated(InternalFrameEvent) | |
internalFrameClosed(InternalFrameEvent) | ||
internalFrameClosing(InternalFrameEvent) | ||
internalFrameDeactivated(InternalFrameEvent) | ||
internalFrameDeiconified(InternalFrameEvent) | ||
internalFrameIconified(InternalFrameEvent) | ||
internalFrameOpened(InternalFrameEvent) | ||
ListDataListener | contentsChanged(ListDataEvent) | |
intervalAdded(ListDataEvent) | ||
intervalRemoved(ListDataEvent) | ||
ListSelectionListener | valueChanged(ListSelectionEvent) | |
MenuDragMouseListener | menuDragMouseDragged(MenuDragMouseEvent) | |
menuDragMouseEntered(MenuDragMouseEvent) | ||
menuDragMouseExited(MenuDragMouseEvent) | ||
menuDragMouseReleased(MenuDragMouseEvent) | ||
MenuKeyListener | menuKeyPressed(MenuKeyEvent) | |
menuKeyReleased(MenuKeyEvent) | ||
menuKeyTyped(MenuKeyEvent) | ||
MenuListener | menuCanceled(MenuEvent) | |
menuDeselected(MenuEvent) | ||
menuSelected(MenuEvent) | ||
MouseInputListener | java.awt.MouseListener を継承 java.awt.MouseMotionListener を継承 |
(2つのクラスの合併) |
PopupMenuListener | popupMenuCanceled(PopupMenuEvent) | |
popupMenuWillBecomeInvisible(PopupMenuEvent) | ||
popupMenuWillBecomeVisible(PopupMenuEvent) | ||
TableColumnModelListener | columnAdded(TableColumnModelEvent) | |
columnMarginChanged(ChangeEvent) | ||
columnMoved(TableColumnModelEvent) | ||
columnRemoved(TableColumnModelEvent) | ||
columnSelectionChanged(ListSelectionEvent) | ||
TableModelListener | tableChanged(TableModelEvent) | TableModel |
TreeExpansionListener | treeCollapsed(TreeExpansionEvent) | JTree |
treeExpanded(TreeExpansionEvent) | ||
TreeModelListener | treeNodesChanged(TreeModelEvent) | JTree |
treeNodesInserted(TreeModelEvent) | ||
treeNodesRemoved(TreeModelEvent) | ||
treeStructureChanged(TreeModelEvent) | ||
TreeSelectionListener | valueChanged(TreeSelectionEvent) | JTree |
TreeWillExpandListener | treeWillCollapse(TreeExpansionEvent) | JTree |
treeWillExpand(TreeExpansionEvent) | ||
UndoableEditListener | undoableEditHappened(UndoableEditEvent ) | undo 処理 |
更新日:2004-06-04