|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.hunsicker.jalopy.plugin.jdeveloper.message.Message
A message that can be displayed in a log page.
| Field Summary | |
protected int |
endOffset
The end offset of an issue in a line. |
protected java.io.File |
file
The file this message belongs to. |
protected int |
line
The line number where an issue was found. |
protected javax.swing.tree.TreeCellRenderer |
renderer
The renderer used to draw messages in the tree. |
protected int |
startOffset
The start offset of an issue in a line. |
protected java.lang.String |
text
The message text. |
protected MessageType |
type
The message type |
| Constructor Summary | |
Message(java.lang.String text)
Creates a new Message object. |
|
Message(java.lang.String text,
java.io.File file,
int line)
Creates a new Message object. |
|
Message(java.lang.String text,
java.io.File file,
int line,
int startOffset,
int endOffset,
MessageType type)
Creates a new Message object. |
|
Message(java.lang.String text,
java.io.File file,
int line,
MessageType type)
Creates a new Message object. |
|
Message(java.lang.String text,
MessageType type)
Creates a new Message object. |
|
| Method Summary | |
java.io.File |
getFile()
Returns the file this message is associated with. |
int |
getLine()
Returns the line number of the document this message is related to. |
java.lang.String |
getText()
Returns the text of the message. |
MessageType |
getType()
Returns the type of the message. |
void |
setCellRenderer(javax.swing.tree.TreeCellRenderer renderer)
Sets the cell renderer that does the actual drawing of the message. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.io.File file
protected MessageType type
protected java.lang.String text
protected javax.swing.tree.TreeCellRenderer renderer
protected int endOffset
protected int line
protected int startOffset
| Constructor Detail |
public Message(java.lang.String text)
text - the message text.
public Message(java.lang.String text,
MessageType type)
text - the message text.type - the message type.
public Message(java.lang.String text,
java.io.File file,
int line)
text - the message text.file - the file this message belongs to.line - the line where the an issue was found (1-based).
public Message(java.lang.String text,
java.io.File file,
int line,
MessageType type)
text - the message text.file - the file this message belongs to.line - the line where the an issue was found (1-based).type - the message type.
public Message(java.lang.String text,
java.io.File file,
int line,
int startOffset,
int endOffset,
MessageType type)
text - the message text.file - the file this message belongs to.line - the line where the an issue was found (1-based).startOffset - the start offset of the issue (1-based).endOffset - the end offset of the issue (1-based).type - the message type.| Method Detail |
public void setCellRenderer(javax.swing.tree.TreeCellRenderer renderer)
renderer - a tree cell renderer. If none is set the default cell renderer
will be used.public java.io.File getFile()
null if this is a stand-alone
message.public int getLine()
<= 0 indicates that this message is not associated with a
specific position of a document.public java.lang.String getText()
public MessageType getType()
public java.lang.String toString()
toString in class java.lang.ObjectgetText()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||