public void propertyChange(PropertyChangeEvent evt) { String name = evt.getPropertyName(); if (name.equals("document")) { Document doc = (Document)evt.getOldValue(); if (doc != null) { doc.removeUndoableEditListener(getUndoableEditListener()); } doc = (Document)evt.getNewValue(); if (doc != null) { doc.addUndoableEditListener(getUndoableEditListener()); } } }
@Override public void propertyChange(PropertyChangeEvent evt) { String name = evt.getPropertyName(); if (name.equals("document")) { Document doc = (Document)evt.getOldValue(); if (doc != null) { doc.removeUndoableEditListener(getUndoableEditListener()); } doc = (Document)evt.getNewValue(); if (doc != null) { doc.addUndoableEditListener(getUndoableEditListener()); } } }
@Override public void propertyChange(PropertyChangeEvent evt) { String name = evt.getPropertyName(); if (name.equals("document")) { Document doc = (Document)evt.getOldValue(); if (doc != null) { doc.removeUndoableEditListener(getUndoableEditListener()); } doc = (Document)evt.getNewValue(); if (doc != null) { doc.addUndoableEditListener(getUndoableEditListener()); } } }
@Override public void propertyChange(PropertyChangeEvent evt) { String name = evt.getPropertyName(); if (name.equals("document")) { Document doc = (Document)evt.getOldValue(); if (doc != null) { doc.removeUndoableEditListener(getUndoableEditListener()); } doc = (Document)evt.getNewValue(); if (doc != null) { doc.addUndoableEditListener(getUndoableEditListener()); } } }
@Override public void propertyChange(PropertyChangeEvent evt) { String name = evt.getPropertyName(); if (name.equals("document")) { Document doc = (Document)evt.getOldValue(); if (doc != null) { doc.removeUndoableEditListener(getUndoableEditListener()); } doc = (Document)evt.getNewValue(); if (doc != null) { doc.addUndoableEditListener(getUndoableEditListener()); } } }
private void init() { setEditorKitForContentType("text/html", new SloppyHTMLEditorKit()); addPropertyChangeListener(new PropertyHandler()); getDocument().addUndoableEditListener(getUndoableEditListener()); initActions(); }
private void init() { putClientProperty(HONOR_DISPLAY_PROPERTIES, true); setEditorKitForContentType("text/html", new SloppyHTMLEditorKit()); addPropertyChangeListener(new PropertyHandler()); getDocument().addUndoableEditListener(getUndoableEditListener()); initActions(); }
private void init() { putClientProperty(HONOR_DISPLAY_PROPERTIES, true); setEditorKitForContentType("text/html", new SloppyHTMLEditorKit()); addPropertyChangeListener(new PropertyHandler()); getDocument().addUndoableEditListener(getUndoableEditListener()); initActions(); }
private void init() { putClientProperty(HONOR_DISPLAY_PROPERTIES, true); setEditorKitForContentType("text/html", new SloppyHTMLEditorKit()); addPropertyChangeListener(new PropertyHandler()); getDocument().addUndoableEditListener(getUndoableEditListener()); initActions(); }
private void init() { putClientProperty(HONOR_DISPLAY_PROPERTIES, true); setEditorKitForContentType("text/html", new SloppyHTMLEditorKit()); addPropertyChangeListener(new PropertyHandler()); getDocument().addUndoableEditListener(getUndoableEditListener()); initActions(); }