javax.swing.JEditorPane.addPropertyChangeListener()方法的使用及代码示例

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

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

JEditorPane.addPropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void addValueChangeListener(PropertyChangeListener listener) {
  super.addPropertyChangeListener(VALUE_PROP_NAME, listener);
}

代码示例来源:origin: de.sciss/syntaxpane

@Override
public void install(JEditorPane editor, Configuration config, String name) {
  super.install(editor, config, name);
  if (this.editor != null) throw new IllegalStateException();
  this.editor = editor;
  editor.addPropertyChangeListener("document", docListener);
  // editor.addPropertyChangeListener("editorKit", docListener);
  // Document doc = editor.getDocument();
  // if (doc instanceof SyntaxDocument) {
  //     setDocument((SyntaxDocument) doc);
  // }
}

代码示例来源:origin: stackoverflow.com

JEditorPane eulaEP = new JEditorPane();
eulaEP.addPropertyChangeListener("page", e -> {
  HTMLDocument htm = (HTMLDocument) eulaEP.getDocument();
  Element el = htm.getElement("unique_id");
  // ...
});

try {
 eulaEP.setPage(url);
} catch (IOException e1) {
 // TODO Auto-generated catch block
 e1.printStackTrace();
}

代码示例来源:origin: de.sciss/scisslib

htmlPane.setPreferredSize(new Dimension(320, 320));
htmlPane.setAutoscrolls(true);
htmlPane.addPropertyChangeListener(this);
ggScroll = new JScrollPane(htmlPane);
ggScroll.putClientProperty("styleId", "undecorated");

代码示例来源:origin: de.sciss/jsyntaxpane

@Override
public void install(final JEditorPane editor) {
  this.editor = editor;
  setFont(editor.getFont());
  // setMinimumDisplayDigits(3);
  editor.getDocument().addDocumentListener(this);
  editor.addCaretListener(this);
  editor.addPropertyChangeListener(this);
  JScrollPane sp = getScrollPane(editor);
  sp.setRowHeaderView(this);
  mouseListener = new MouseAdapter() {
    @Override
    public void mouseClicked(MouseEvent e) {
      GotoLineDialog.showForEditor(editor);
    }
  };
  addMouseListener(mouseListener);
  status = Status.INSTALLING;
}

代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit

viewer.addHyperlinkListener(new LinkHandler());
viewer.setFont(new Font("Monospaced",Font.PLAIN,12));
viewer.addPropertyChangeListener(new PropertyChangeHandler());
viewer.addKeyListener(new KeyHandler());

代码示例来源:origin: de.sciss/syntaxpane

@Override
public void install(final JEditorPane editor) {
  this.editor = editor;
  setFont(editor.getFont());
  // setMinimumDisplayDigits(3);
  Insets ein = editor.getInsets();
  if (ein.top != 0 || ein.bottom != 0) {
    Insets curr = getInsets();
    setBorder(BorderFactory.createEmptyBorder(ein.top, curr.left, ein.bottom, curr.right));
  }
  editor.getDocument().addDocumentListener(this);
  editor.addCaretListener(this);
  editor.addPropertyChangeListener(this);
  JScrollPane sp = getScrollPane(editor);
  if (sp != null) sp.setRowHeaderView(this);
  mouseListener = new MouseAdapter() {
    @Override
    public void mouseClicked(MouseEvent e) {
      GotoLineDialog.showForEditor(editor);
    }
  };
  addMouseListener(mouseListener);
  setPreferredWidth(false);    // required for toggle-lines to correctly repaint
  status = Status.INSTALLING;
}

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

.addPropertyChangeListener(this.substancePropertyChangeListener);

代码示例来源:origin: com.github.insubstantial/substance

.addPropertyChangeListener(this.substancePropertyChangeListener);

代码示例来源:origin: javax.help/javahelp

html.addPropertyChangeListener(this);
html.getAccessibleContext().setAccessibleName(HelpUtilities.getString(HelpUtilities.getLocale(html), "access.contentViewer"));
html.setEditable(false);

代码示例来源:origin: Multibit-Legacy/multibit-hd

editorPane.addPropertyChangeListener(this);

相关文章

JEditorPane类方法