48 |
import javax.swing.Action; |
import javax.swing.Action; |
49 |
import javax.swing.JEditorPane; |
import javax.swing.JEditorPane; |
50 |
|
|
51 |
public abstract class EditorKit |
public abstract class EditorKit implements Cloneable, Serializable |
|
implements Cloneable, Serializable |
|
52 |
{ |
{ |
53 |
private static final long serialVersionUID = -5044124649345887822L; |
private static final long serialVersionUID = -5044124649345887822L; |
54 |
|
|
55 |
public EditorKit() |
public EditorKit() |
56 |
{ |
{ |
57 |
|
// Nothing to do here. |
58 |
} |
} |
59 |
|
|
60 |
public Object clone() |
public Object clone() |
61 |
{ |
{ |
62 |
try |
try |
63 |
{ |
{ |
64 |
return super.clone(); |
return super.clone(); |
65 |
} |
} |
66 |
catch (CloneNotSupportedException e) |
catch (CloneNotSupportedException e) |
67 |
{ |
{ |
68 |
return null; |
return null; |
69 |
} |
} |
70 |
} |
} |
71 |
|
|
74 |
*/ |
*/ |
75 |
public void deinstall(JEditorPane c) |
public void deinstall(JEditorPane c) |
76 |
{ |
{ |
77 |
|
// This default implementation does nothing. |
78 |
} |
} |
79 |
|
|
80 |
public void install(JEditorPane c) |
public void install(JEditorPane c) |
81 |
{ |
{ |
82 |
|
// This default implementation does nothing. |
83 |
} |
} |
84 |
|
|
85 |
public abstract Caret createCaret(); |
public abstract Caret createCaret(); |