40 |
|
|
41 |
import java.awt.Color; |
import java.awt.Color; |
42 |
import java.awt.event.ActionEvent; |
import java.awt.event.ActionEvent; |
|
import java.beans.PropertyChangeEvent; |
|
|
import java.beans.PropertyChangeListener; |
|
|
import java.io.Serializable; |
|
43 |
|
|
44 |
import javax.swing.Action; |
import javax.swing.Action; |
45 |
import javax.swing.JEditorPane; |
import javax.swing.JEditorPane; |
|
import javax.swing.JTextPane; |
|
46 |
import javax.swing.event.CaretEvent; |
import javax.swing.event.CaretEvent; |
47 |
import javax.swing.event.CaretListener; |
import javax.swing.event.CaretListener; |
48 |
|
|
456 |
* <code>StyledEditorKit</code>, namely the following types of Elements: |
* <code>StyledEditorKit</code>, namely the following types of Elements: |
457 |
* |
* |
458 |
* <ul> |
* <ul> |
459 |
* <li>{@link AbstractDocument.ContentElementName}</li> |
* <li>{@link AbstractDocument#ContentElementName}</li> |
460 |
* <li>{@link AbstractDocument.ParagraphElementName}</li> |
* <li>{@link AbstractDocument#ParagraphElementName}</li> |
461 |
* <li>{@link AbstractDocument.SectionElementName}</li> |
* <li>{@link AbstractDocument#SectionElementName}</li> |
462 |
* <li>{@link StyleContext.ComponentElementName}</li> |
* <li>{@link StyleConstants#ComponentElementName}</li> |
463 |
* <li>{@link StyleContext.IconElementName}</li> |
* <li>{@link StyleConstants#IconElementName}</li> |
464 |
* </ul> |
* </ul> |
465 |
*/ |
*/ |
466 |
static class StyledViewFactory |
static class StyledViewFactory |
663 |
* namely the following types of <code>Element</code>s: |
* namely the following types of <code>Element</code>s: |
664 |
* |
* |
665 |
* <ul> |
* <ul> |
666 |
* <li>{@link AbstractDocument.ContentElementName}</li> |
* <li>{@link AbstractDocument#ContentElementName}</li> |
667 |
* <li>{@link AbstractDocument.ParagraphElementName}</li> |
* <li>{@link AbstractDocument#ParagraphElementName}</li> |
668 |
* <li>{@link AbstractDocument.SectionElementName}</li> |
* <li>{@link AbstractDocument#SectionElementName}</li> |
669 |
* <li>{@link StyleContext.ComponentElementName}</li> |
* <li>{@link StyleConstants#ComponentElementName}</li> |
670 |
* <li>{@link StyleContext.IconElementName}</li> |
* <li>{@link StyleConstants#IconElementName}</li> |
671 |
* </ul> |
* </ul> |
672 |
* |
* |
673 |
* @return a {@link ViewFactory} that is able to create {@link View}s |
* @return a {@link ViewFactory} that is able to create {@link View}s |