|
|||||||||
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(String id)
Creates a new template. |
Method Summary | |
---|---|
Object |
clone()
Creates a deep copy of this template. |
int |
compareTo(Object o)
Compares the StaticCodeTemplate to another. |
boolean |
equals(Object obj)
Overridden to return " true " iff compareTo(Object)
returns 0 . |
String |
getID()
Returns the ID of this code template. |
int |
hashCode()
Returns the hash code for this template. |
void |
setID(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(String id)
id
- The ID for this template.
IllegalArgumentException
- If id
is null
.Method Detail |
---|
public Object clone()
clone
in interface CodeTemplate
clone
in class Object
public int compareTo(Object o)
StaticCodeTemplate
to another.
compareTo
in interface Comparable
o
- Another StaticCodeTemplate
object.
ClassCastException
- If o
is
not an instance of CodeTemplate
.public boolean equals(Object obj)
true
" iff compareTo(Object)
returns 0
.
equals
in class Object
public String getID()
getID
in interface CodeTemplate
setID(String)
public int hashCode()
hashCode
in class Object
public void setID(String id)
id
- The ID for this template.
IllegalArgumentException
- If id
is null
.getID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |