javax.swing.text.JTextComponent.removeComponentListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中javax.swing.text.JTextComponent.removeComponentListener()方法的一些代码示例,展示了JTextComponent.removeComponentListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextComponent.removeComponentListener()方法的具体详情如下:
包路径:javax.swing.text.JTextComponent
类名称:JTextComponent
方法名:removeComponentListener

JTextComponent.removeComponentListener介绍

暂无

代码示例

代码示例来源:origin: protegeproject/protege

  1. public void uninstall() {
  2. hidePopup();
  3. textComponent.removeKeyListener(keyListener);
  4. textComponent.removeComponentListener(componentListener);
  5. textComponent.removeFocusListener(focusListener);
  6. textComponent.removeHierarchyListener(hierarchyListener);
  7. }
  8. }

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

  1. public void uninstall() {
  2. hidePopup();
  3. textComponent.removeKeyListener(keyListener);
  4. textComponent.removeComponentListener(componentListener);
  5. textComponent.removeFocusListener(focusListener);
  6. textComponent.removeHierarchyListener(hierarchyListener);
  7. }
  8. }

代码示例来源:origin: org.protege/protege-editor-owl

  1. public void uninstall() {
  2. hidePopup();
  3. textComponent.removeKeyListener(keyListener);
  4. textComponent.removeComponentListener(componentListener);
  5. textComponent.removeFocusListener(focusListener);
  6. textComponent.removeHierarchyListener(hierarchyListener);
  7. }
  8. }

代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl

  1. public void uninstall() {
  2. hidePopup();
  3. textComponent.removeKeyListener(keyListener);
  4. textComponent.removeComponentListener(componentListener);
  5. textComponent.removeFocusListener(focusListener);
  6. textComponent.removeHierarchyListener(hierarchyListener);
  7. }
  8. }

代码示例来源:origin: net.java.abeille/abeille

  1. public void propertyChange(PropertyChangeEvent evt) {
  2. String propName = evt.getPropertyName();
  3. if (extEditorUI.COMPONENT_PROPERTY.equals(propName)) {
  4. JTextComponent component = (JTextComponent) evt.getNewValue();
  5. if (component != null) { // just installed
  6. component.addPropertyChangeListener(this);
  7. component.addComponentListener(componentL);
  8. checkAddToPane();
  9. disableSwingToolTip(component);
  10. component.addFocusListener(this);
  11. if (component.hasFocus()) {
  12. focusGained(new FocusEvent(component, FocusEvent.FOCUS_GAINED));
  13. }
  14. }
  15. else { // just deinstalled
  16. component = (JTextComponent) evt.getOldValue();
  17. component.removeFocusListener(this);
  18. component.removePropertyChangeListener(this);
  19. component.removeComponentListener(componentL);
  20. checkRemoveFromPane(component);
  21. }
  22. }
  23. if (JComponent.TOOL_TIP_TEXT_KEY.equals(propName)) {
  24. JComponent component = (JComponent) evt.getSource();
  25. disableSwingToolTip(component);
  26. componentToolTipTextChanged(evt);
  27. }
  28. }

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

  1. textComponent.removeComponentListener(this);
  2. doc.removeDocumentListener(this);
  3. caret.removeChangeListener(this);

相关文章

JTextComponent类方法