|
NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems
ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en:
http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com. |
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂtulo en concreto puede realizar una donación directa mediante Paypal:
|
In the table that follows, the first column gives the name of the listener interface, with either a link to the tutorial page that discusses the listener or, if the tutorial doesn't discuss the listener, a link to the API docs. The second column names the corresponding adapter class, if any. (For a discussion of using adapters, see Using Adapters and Inner Classes to Handle Events.) The third column lists the methods that the listener interface contains and shows the type of the event object passed into the method. Typically, the listener, the adapter, and the event type have the same name prefix, but this is not always the case.To see which Swing components can fire which kinds of events, see Listeners Supported by Swing Components.
Listener Interface Adapter Class Listener Methods ActionListenernone actionPerformed(ActionEvent)AncestorListenernone ancestorAdded(AncestorEvent)
ancestorMoved(AncestorEvent)
ancestorRemoved(AncestorEvent)CaretListenernone caretUpdate(CaretEvent)CellEditorListenernone editingStopped(ChangeEvent)
editingCanceled(ChangeEvent)ChangeListenernone stateChanged(ChangeEvent)ComponentListenerComponentAdaptercomponentHidden(ComponentEvent)
componentMoved(ComponentEvent)
componentResized(ComponentEvent)
componentShown(ComponentEvent)ContainerListenerContainerAdaptercomponentAdded(ContainerEvent)
componentRemoved(ContainerEvent)DocumentListenernone changedUpdate(DocumentEvent)
insertUpdate(DocumentEvent)
removeUpdate(DocumentEvent)ExceptionListenernone exceptionThrown(Exception)FocusListenerFocusAdapterfocusGained(FocusEvent)
focusLost(FocusEvent)HierarchyBoundsListenerHierarchyBoundsAdapterancestorMoved(HierarchyEvent)
ancestorResized(HierarchyEvent)HierarchyListenernone hierarchyChanged(HierarchyEvent)HyperlinkListenernone hyperlinkUpdate(HyperlinkEvent)InputMethodListenernone caretPositionChanged(InputMethodEvent)
inputMethodTextChanged(InputMethodEvent)InternalFrameListenerInternalFrameAdapterinternalFrameActivated(InternalFrameEvent)
internalFrameClosed(InternalFrameEvent)
internalFrameClosing(InternalFrameEvent)
internalFrameDeactivated(InternalFrameEvent)
internalFrameDeiconified(InternalFrameEvent)
internalFrameIconified(InternalFrameEvent)
internalFrameOpened(InternalFrameEvent)ItemListenernone itemStateChanged(ItemEvent)KeyListenerKeyAdapterkeyPressed(KeyEvent)
keyReleased(KeyEvent)
keyTyped(KeyEvent)ListDataListenernone contentsChanged(ListDataEvent)
intervalAdded(ListDataEvent)
intervalRemoved(ListDataEvent)ListSelectionListenernone valueChanged(ListSelectionEvent)MenuDragMouseListenernone menuDragMouseDragged(MenuDragMouseEvent)
menuDragMouseEntered(MenuDragMouseEvent)
menuDragMouseExited(MenuDragMouseEvent)
menuDragMouseReleased(MenuDragMouseEvent)MenuKeyListenernone menuKeyPressed(MenuKeyEvent)
menuKeyReleased(MenuKeyEvent)
menuKeyTyped(MenuKeyEvent)MenuListenernone menuCanceled(MenuEvent)
menuDeselected(MenuEvent)
menuSelected(MenuEvent)MouseInputListener(extendsMouseListenerandMouseMotionListenerMouseInputAdapter
MouseAdaptermouseClicked(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mousePressed(MouseEvent)
mouseReleased(MouseEvent)
mouseDragged(MouseEvent)
mouseMoved(MouseEvent)
MouseAdapter(MouseEvent)MouseListenerMouseAdapter,MouseInputAdaptermouseClicked(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mousePressed(MouseEvent)
mouseReleased(MouseEvent)MouseMotionListenerMouseMotionAdapter,MouseInputAdaptermouseDragged(MouseEvent)
mouseMoved(MouseEvent)MouseWheelListenerMouseAdaptermouseWheelMoved(MouseWheelEvent)
MouseAdapterPopupMenuListenernone popupMenuCanceled(PopupMenuEvent)
popupMenuWillBecomeInvisible(PopupMenuEvent)
popupMenuWillBecomeVisible(PopupMenuEvent)PropertyChangeListenernone propertyChange(PropertyChangeEvent)TableColumnModelListenernone columnAdded(TableColumnModelEvent)
columnMoved(TableColumnModelEvent)
columnRemoved(TableColumnModelEvent)
columnMarginChanged(ChangeEvent)
columnSelectionChanged(ListSelectionEvent)TableModelListenernone tableChanged(TableModelEvent)TreeExpansionListenernone treeCollapsed(TreeExpansionEvent)
treeExpanded(TreeExpansionEvent)TreeModelListenernone treeNodesChanged(TreeModelEvent)
treeNodesInserted(TreeModelEvent)
treeNodesRemoved(TreeModelEvent)
treeStructureChanged(TreeModelEvent)TreeSelectionListenernone valueChanged(TreeSelectionEvent)TreeWillExpandListenernone treeWillCollapse(TreeExpansionEvent)
treeWillExpand(TreeExpansionEvent)UndoableEditListenernone undoableEditHappened(UndoableEditEvent)VetoableChangeListenernone vetoableChange(PropertyChangeEvent)WindowFocusListenerWindowAdapterwindowGainedFocus(WindowEvent)
windowLostFocus(WindowEvent)WindowListenerWindowAdapterwindowActivated(WindowEvent)
windowClosed(WindowEvent)
windowClosing(WindowEvent)
windowDeactivated(WindowEvent)
windowDeiconified(WindowEvent)
windowIconified(WindowEvent)
windowOpened(WindowEvent)WindowStateListenerWindowAdapterwindowStateChanged(WindowEvent)