swing Event-Listener-Adapter 对照表
Source |
Event |
Event Listener |
AbstractButton (JButton,JToggleButton, JCheckBox,JRadioButton |
ActionEvent ChangEvent ItemEvent |
ActionListener ChangeListener ItemListener |
JTextField JPasswordField |
ActionEvent CaretEvent DocumentEvent UndoableEvent |
ActionListener CaretListener DocumentListener UndoableListener |
JTextArea |
CaretEvent DocumentEvent UndoableEvent |
CaretListener DocumentListener UndoableListener |
JTextPane JEditorPane |
CaretEvent DocumentEvent UndoableEvent HyperlinkEvent |
CaretListener DocumentListener UndoableListener HyperlinkListener |
JComboBox |
ActionEvent ItemEvent |
ActionListener ItemListener |
JList |
ListSelectionEvent ListDataEvent |
ListSelectionListener ListDataListener |
JFileChooser |
ActionEvent |
ActionListener |
JMenuItem |
ActionEvent ChangeEvent ItemEvent MenuKeyEvent MenuDragMouseEvent |
ActionListener ChangeListener ItemListener MenuKeyListener MenuDragMouseListener |
JMenu |
MenuEvent |
MenuListener |
JPopupMenu |
PopupMenuEvent |
PopupMenuListener |
JProgressBar |
ChangeEvent |
ChangeListener |
JSlider |
ChangeEvent |
ChangeListener |
JScrollBar |
AdjustmentEvent |
AdjustmentListener |
JTable |
ListSelectionEvent TableModeEvent TableColumModelEvent CellEditorEvent |
ListSelectionListener TableModeListener TableColumModelListener CellEditorListener |
JTabbedPane |
ChangeEvent |
ChangeListener |
JTree |
TreeSelectionEvent TreeExpansionEvent TreeWillExpandEvent TreeModeEvent |
TreeSelectionListener TreeExpansionEvent TreeWillExpandListener TreeModeListener |
JTimer |
ActionEvent |
ActionListener |
Event |
Listener |
ComponentEvent |
ComponentListener |
ContainerEvent |
ContainerListener |
FocusEvent |
FocusListener |
KeyEvent |
KeyListener |
MouseEvent |
MouseListener |
MouseMotionEvent |
MouseMotionListener |
WindowEvent |
WindowListener |
Swing EventListener |
Method |
CaretListener |
caretUpdate(CaretEvent e) |
CellEditorListener |
editingCanceled(ChangeEvent e) editingStopped(ChangeEvent e) |
ChangeListener |
stateChanged(ChangeEvent e) |
DocumentListener |
changedUpdate(DocumentEvent e) insertUpdate(DocumentEvent e) removeUpdate(DocumentEvent e) |
HyperlinkListener |
hyperlinkUpdate(HyperlinkEvent e) |
ListDataListener |
contentsChanged(ListDataEvent e) intervalAdded(ListDataEvent e) intervalRemoved(ListDataEvent e) |
ListSelectionListener |
valueChanged(ListSelectionEvent e) |
MenuDragMouseListener |
menuDragMouseDragged(MenuDragMouseEvent e) menuDragMouseEntered(MenuDragMouseEvent e) menuDragMouseExited(MenuDragMouseEvent e) menuDragMouseReleased(MenuDragMouseEvent e) |
MenuKeyListener |
menuKeyPressed(MenuKeyEvent e) menuKeyReleased(MenuKeyEvent e) menuKeyTyped(MenuKeyEvent e) |
MenuListener |
menuCanceled(MenuEvent e) menuDeselected(MenuEvent e) menuSelected(MenuEvent e) |
PopupMenuListener |
popupMenuCanceled(PopupMenuEvent e) popupMenuWillBecomeInvisible(PopupMenuEvent e) popupMenuWillBecomeVisible(PopupMenuEvent e) |
TableColumnModelListener |
columnAdded(TableColumnModelEvent e) columnMarginChaged(ChangeEvent e) columnMovedTableColumnModelEvent e) columnRemoved(TAbleColumnModelEvent e) columnSelectionChanged(ListSelectionEvent e) |
TableModelListener |
tableChanged(TableModelEvent e) |
TreeExpansionListener |
treeCollapsed(TreeExpansionEvent e) treeExpanded(TreeExpansionEvent e) |
TreeModelListener |
treeNodesChanged(TreeModelEvent e) treeNodesInserted(TreeModelEvent e) treeNodesRemoved(TreeModelEvent e) treeStructrueChanged(TreeModelEvent e) |
TreeSelectionListener |
valueChanged(TreeSelectionEvent e) |
TreeWillExpandListener |
treeWillCollapse(TreeExpansionEvent e) treeWillExpand(TreeExpansionEvent e) |
UndoableEventListener |
undoableEditHappened(UndoableEditEVent e) |
AWT EventListener |
Method |
ActionListener |
actionPerformed(ActionEvent e) |
AdjustmentListener |
adjustmentValueChanged(AdjustmentEvent e) |
ComponentListener |
componentHidden(ComponentEvent e) componentMoved(ComponentEvent e) componentResized(ComponentEvent e) componentShown(ComponentEvent e) |
ContainerListener |
componentAdded(ContainerEvent e) componentRemoved(ContainerEvent e) |
FocusListener |
focusGained(FocusEvent e) focusLost(FocusEvent e) |
ItemListener |
itemStateChanged(ItemEvent e) |
KeyListener |
keyPressed(KeyEvent e) keyReleased(KeyEvent e) keyTyped(KeyEvent e) |
MouseListener |
mouseClicked(MouseEvent e) mouseEntered(MouseEvent e) mouseExited(MouseEvent e) mousePressed(MouseEvent e) mouseReleased(MouseEvent e) |
MouseMotionListener |
mouseDragged(MouseEvent e) mouseMoved(MouseEvent e) |
WindowListener |
windowActivated(WindowEvent e) windowClosed(WindowEvent e) windowClosing(WindowEvent e) windowDeactivated(WindowEvent e) windowDeiconified(WindowEvent e) windowIconified(WindowEvent e) windowOpened(WindowEvent e) |
Adapter |
EventLister |
ComponentAdapter |
ComponentListener |
ContainterAdapter |
ContainerListener |
FocusAdapter |
FocusListener |
KeyAdapter |
KeyListener |
MouseAdapter |
MouseListener |
MouseMotionAdapter |
MouseMotionListener |
WindowAdapter |
WindowListener |
swing Event-Listener-Adapter 对照表的更多相关文章
- Android事件监听器Event Listener
在 Android 中,我们可以通过事件处理使UI与用户互动(UI Events). UI的用户事件处理,即View处理用户的操作,在应用程序中几乎不可避免.View是重要的类,它是与用户互动的前线: ...
- Unable to preventDefault inside passive event listener due to target being treated as passive
Unable to preventDefault inside passive event listener due to target being treated as passive 今天在做项目 ...
- Unable to preventDefault inside passive event listener
最近做项目经常在 chrome 的控制台看到如下提示: Unable to preventDefault inside passive event listener due to target bei ...
- 滑动时候警告:Unable to preventDefault inside passive event listener
1 前言 在制作2048时,需要在手机端添加滑动检测事件,然后发现控制台有警告,如下: main2048.js:218 [Intervention] Unable to preventDefault ...
- 移动端页面滑动时候警告:Unable to preventDefault inside passive event listener due to target being treated as passive.
移动端项目中,在滚动的时候,会报出以下提示: [Intervention] Unable to preventDefault inside passive event listener due to ...
- [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
相信如果用谷歌浏览器做移动端页面的时候 用touch事件的时候应该遇到过这个东东吧 documet.addEventListener("touchstart",function() ...
- [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
1.滑动时候警告[Intervention] Unable to preventDefault inside passive event listener due to target being tr ...
- Presto Event Listener开发
简介 同Hive Hook一样,Presto也支持自定义实现Event Listener,用于侦听Presto引擎执行查询时发生的事件,并作出相应的处理.我们可以利用该功能实现诸如自定义日志记录.调试 ...
- IScroll Unable to preventDefault inside passive event listener due to target being treated as passive
最近两天企业微信下IScroll突然无法滚动了,特别慢,之前好好的,发现主要是有红色的Unable to preventDefault inside passive event listener du ...
- 引用fastclick.js或使用触屏监听 滑动屏幕报错:解决[Intervention] Unable to preventDefault inside passive event listener
使用fastClick.js所产生的一些问题 开发h5活动页时想到移动端会有300ms的延迟,于是便打算用fastClick.js解决. 页面引入fastClick.js后,滑动H5页面的时候发现谷歌 ...
随机推荐
- @requestBody注解的使用
1.@requestBody注解常用来处理content-type不是默认的application/x-www-form-urlcoded编码的内容,比如说:application/json或者是ap ...
- Windows 内存架构
理解 Virtual Memory, Physical Memory, Committed Memory, Page File, Working Set, Modified Pages, Standb ...
- Selenium处理时间控件
Web网页的时间控件往往嵌入到一个iframe里,抓取页面元素时,总是失败? 不要慌,WebDriver已经有相应的处理方法了. driver.switchTo().frame(driver.find ...
- PC上安装多个操作系统
目 录 第1章 绪论 1 1.1 目标 1 1.2 适宜的读者 1 第2章 制作启动U盘 2 2.1 初级安装 2 2.2 启动分析 3 2.3 高级安装 1 ...
- webpack安装配置使用教程详解
webpack安装配置使用教程详解 www.111cn.net 更新:2015-09-01 编辑:swteen 来源:转载 本文章来为各位详细的介绍一下关于webpack安装配置使用教程吧,这篇文章对 ...
- 将cantk runtime嵌入到现有的APP中
1,先取cantk-runtime-demos到本地: git clone https://github.com/drawapp8/cantk-runtime-demos 2,创建一个Android ...
- 【CITE】DrawImage方法详解(转)
Image和Bitmap类概述 GDI+的Image类封装了对BMP.GIF.JPEG.PNG.TIFF.WMF(Windows元文件)和EMF(增强WMF)图像文件的调入.格式转换以及简单处理的功能 ...
- js的with语句使用方法
1)简要说明 with 语句可以方便地用来引用某个特定对象中已有的属性,但是不能用来给对象添加属性.要给对象创建新的属性,必须明确地引用该对象. 2)语法格式 with(object ...
- css -- 题目汇总
1.描述下浮动和它的工作原理.模块浮动,使其脱离文档流,并且生成一个块级框.(所以父级撑不开就得到了很好的解释) 2.清除浮动的方法有那些,分别适用于什么情形.clear , 父级元素overfl ...
- 工程技巧Linux上建立工程项目
程序中用到的核心代码用库的形式进行封装,并且给出示例程序,下面给出一个程序文件夹的建立脚本. 如运行sh MakeProject.sh PersonNameIdentification PNILib ...