|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.text.Annotatable
org.openide.text.Line
org.openide.text.DocumentLine
Implementation of a line in a StyledDocument.
One object
of this class represents a line in the document by holding
a PositionRef, which can represent a position in an open or
closed document.
| Nested Class Summary | |
static class |
DocumentLine.Set
Abstract implementation of Line.Set. |
| Field Summary | |
protected PositionRef |
pos
reference to one position on the line |
| Fields inherited from class org.openide.text.Line |
PROP_LINE_NUMBER, SHOW_GOTO, SHOW_SHOW, SHOW_TOFRONT, SHOW_TRY_SHOW |
| Fields inherited from class org.openide.text.Annotatable |
PROP_ANNOTATION_COUNT, PROP_DELETED, PROP_TEXT |
| Constructor Summary | |
DocumentLine(Lookup obj,
PositionRef pos)
Constructor. |
|
| Method Summary | |
protected void |
addAnnotation(Annotation anno)
Add annotation to this Annotatable class |
boolean |
equals(Object o)
|
int |
getLineNumber()
Get the line number. |
String |
getText()
Get content of the annotatable. |
int |
hashCode()
|
boolean |
isBreakpoint()
Test if there is a breakpoint set at this line. |
void |
markCurrentLine()
Mark this line as current. |
void |
markError()
Mark an error at this line. |
protected void |
removeAnnotation(Annotation anno)
Remove annotation to this Annotatable class |
void |
setBreakpoint(boolean b)
Set or clear a (debugger) breakpoint at this line. |
abstract void |
show(int kind,
int column)
Show the line. |
void |
unmarkCurrentLine()
Unmark this line as current. |
void |
unmarkError()
Unmark error at this line. |
| Methods inherited from class org.openide.text.Line |
canBeMarkedCurrent, createPart, getDisplayName, getLookup, show |
| Methods inherited from class org.openide.text.Annotatable |
addPropertyChangeListener, firePropertyChange, getAnnotationCount, isDeleted, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PositionRef pos
| Constructor Detail |
public DocumentLine(Lookup obj, PositionRef pos)
obj - context we belong topos - position on the line| Method Detail |
public int getLineNumber()
LineLine.Set lineSet =Line l = l.equals (lineSet.getCurrent (l.getLineNumber ()))
getLineNumber in class Line
public abstract void show(int kind,
int column)
Line
kind - one of Line.SHOW_TRY_SHOW, Line.SHOW_SHOW, or Line.SHOW_GOTOcolumn - the column of this line which should be selectedpublic void setBreakpoint(boolean b)
Line
setBreakpoint in class Lineb - true to turn onpublic boolean isBreakpoint()
Line
isBreakpoint in class Linetrue is there ispublic void markError()
Line
public void unmarkError()
Line
unmarkError in class Linepublic void markCurrentLine()
Line
markCurrentLine in class Linepublic void unmarkCurrentLine()
Line
unmarkCurrentLine in class Linepublic int hashCode()
public boolean equals(Object o)
protected void addAnnotation(Annotation anno)
addAnnotation in class Annotatableanno - annotation which will be attached to this classprotected void removeAnnotation(Annotation anno)
removeAnnotation in class Annotatableanno - annotation which will be detached from this classpublic String getText()
Annotatable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||