public class BlameModel
extends java.lang.Object
Constructor and Description |
---|
BlameModel()
Default constructor.
|
BlameModel(org.gjt.sp.jedit.textarea.JEditTextArea textarea,
java.util.List<java.lang.String> blame) |
BlameModel(org.gjt.sp.jedit.textarea.JEditTextArea textarea,
java.util.List<java.lang.String> blame,
java.util.List<java.lang.String> tooltips) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getBlame() |
java.lang.String |
getItem(int index) |
org.gjt.sp.jedit.textarea.JEditTextArea |
getTextArea() |
java.util.List<java.lang.String> |
getToolTips() |
java.lang.String |
getToolTipText(int index) |
boolean |
outOfDate() |
void |
setBlame(java.util.List<java.lang.String> blame) |
void |
setOutOfDate(boolean b)
Use this to indicate that the blame model no longer accurately represents
the lines in the text area, for example, it could be that lines were added
to the text area after the model was produced.
|
void |
setTextArea(org.gjt.sp.jedit.textarea.JEditTextArea textarea) |
void |
setToolTips(java.util.List<java.lang.String> tooltips) |
public BlameModel()
public BlameModel(org.gjt.sp.jedit.textarea.JEditTextArea textarea, java.util.List<java.lang.String> blame)
textarea
- The JEditTextArea that this blame is for.blame
- A list of strings containing the blame per line in the text area.
This doesn't have to be "blame", just something that is desired to be displayed
for each line. There should be one item in this list for each line in the
text area.public BlameModel(org.gjt.sp.jedit.textarea.JEditTextArea textarea, java.util.List<java.lang.String> blame, java.util.List<java.lang.String> tooltips)
textarea
- The JEditTextArea that this blame is for.blame
- A list of strings containing the blame per line in the text area.
This doesn't have to be "blame", just something that is desired to be displayed
for each line. There should be one item in this list for each line in the
text area.tooltips
- A list of strings for tooltips, again, one per line in the
text area.public void setTextArea(org.gjt.sp.jedit.textarea.JEditTextArea textarea)
public org.gjt.sp.jedit.textarea.JEditTextArea getTextArea()
public void setBlame(java.util.List<java.lang.String> blame)
public java.util.List<java.lang.String> getBlame()
public void setToolTips(java.util.List<java.lang.String> tooltips)
public java.util.List<java.lang.String> getToolTips()
public void setOutOfDate(boolean b)
b
- true
indicates the model is out of date.public boolean outOfDate()
public java.lang.String getItem(int index)
index
- A line number or other index to fetch a specific blame string.public java.lang.String getToolTipText(int index)
index
- A line number or index to fetch a specific tooltip string.