|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.rsyntaxtextarea.templates.AbstractCodeTemplate
public abstract class AbstractCodeTemplate
A base class to build code templates on top of.
| Constructor Summary | |
|---|---|
AbstractCodeTemplate()
This no-arg constructor is required for serialization purposes. |
|
AbstractCodeTemplate(java.lang.String id)
Creates a new template. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a deep copy of this template. |
int |
compareTo(CodeTemplate o)
Compares the StaticCodeTemplate to another. |
boolean |
equals(java.lang.Object obj)
Overridden to return " true" iff
compareTo(CodeTemplate) returns 0. |
java.lang.String |
getID()
Returns the ID of this code template. |
int |
hashCode()
Returns the hash code for this template. |
void |
setID(java.lang.String id)
Sets the ID for this template. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fife.ui.rsyntaxtextarea.templates.CodeTemplate |
|---|
invoke |
| Constructor Detail |
|---|
public AbstractCodeTemplate()
public AbstractCodeTemplate(java.lang.String id)
id - The ID for this template.
java.lang.IllegalArgumentException - If id is null.| Method Detail |
|---|
public java.lang.Object clone()
clone in interface CodeTemplateclone in class java.lang.Objectpublic int compareTo(CodeTemplate o)
StaticCodeTemplate to another.
compareTo in interface java.lang.Comparable<CodeTemplate>o - Another StaticCodeTemplate object.
java.lang.ClassCastException - If o is
not an instance of CodeTemplate.public boolean equals(java.lang.Object obj)
true" iff
compareTo(CodeTemplate) returns 0.
equals in class java.lang.Objectpublic java.lang.String getID()
getID in interface CodeTemplatesetID(String)public int hashCode()
hashCode in class java.lang.Objectpublic void setID(java.lang.String id)
id - The ID for this template.
java.lang.IllegalArgumentException - If id is null.getID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||