public class OutputTextPane extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OutputTextPane.Interaction
This allows us to interact with our parent control.
|
| Constructor and Description |
|---|
OutputTextPane(OutputTextPane.Interaction interaction,
boolean allowsClickingFiles,
Font font,
FileLinkDefinitionLord fileLinkDefinitionLord) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsClickingFiles() |
void |
appendText(String text)
This appends the text to gradle's output window.
|
JComponent |
asComponent() |
AttributeSet |
getDefaultStyle() |
FileLink |
getFileLinkAt(Point point)
Returns the FileLink at the specified point.
|
FileLink |
getNextFileLink()
Returns the next file link relative to the specified file link.
|
FileLink |
getPreviousFileLink()
Returns the previous file link relative to the specified file link.
|
String |
getText() |
JTextPane |
getTextComponent() |
boolean |
hasClickableLinks() |
void |
resetHighlights()
Call this if you've changed any styles of our text and want to revert it back to the defaults.
|
void |
selectFileLink(FileLink fileLink)
Selects and scrolls to the specified file link
|
void |
setFont(Font font) |
void |
setText(String text)
This sets the full text of this control, removing existing text.
|
public OutputTextPane(OutputTextPane.Interaction interaction, boolean allowsClickingFiles, Font font, FileLinkDefinitionLord fileLinkDefinitionLord)
public AttributeSet getDefaultStyle()
public JComponent asComponent()
public JTextPane getTextComponent()
public String getText()
public void appendText(String text)
public void setText(String text)
text - the new text of this controlpublic FileLink getFileLinkAt(Point point)
point - the point where a FileLink may or may not bepublic void setFont(Font font)
public boolean hasClickableLinks()
public boolean allowsClickingFiles()
public void selectFileLink(FileLink fileLink)
public FileLink getPreviousFileLink()
public FileLink getNextFileLink()
public void resetHighlights()
Copyright © 2013. All rights reserved