public class TextContent
extends java.lang.Object
<b> - bold <i> - italic <u> - underline <so> - strikeout <red> - red font color <green> - green font color <blue> - blue font color
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.graphics.Color |
black |
protected org.eclipse.swt.graphics.Color |
blue |
protected java.lang.String |
content |
protected org.eclipse.swt.custom.StyleRange |
curRange |
protected org.eclipse.swt.graphics.Color |
green |
protected int |
nesting |
protected int |
rangeStyle |
protected org.eclipse.swt.graphics.Color |
red |
protected java.util.List<org.eclipse.swt.custom.StyleRange> |
styleRanges |
protected org.eclipse.swt.graphics.Color |
white |
Constructor and Description |
---|
TextContent(org.eclipse.swt.widgets.Display display) |
Modifier and Type | Method and Description |
---|---|
protected void |
endRange(int posn) |
java.lang.String |
getContent() |
org.eclipse.swt.custom.StyleRange[] |
getStyleRanges() |
void |
setContent(java.lang.String content) |
protected void |
startRange(int posn) |
java.lang.String |
toPlainText() |
protected java.lang.String content
protected int nesting
protected java.util.List<org.eclipse.swt.custom.StyleRange> styleRanges
protected org.eclipse.swt.graphics.Color black
protected org.eclipse.swt.graphics.Color white
protected org.eclipse.swt.graphics.Color red
protected org.eclipse.swt.graphics.Color green
protected org.eclipse.swt.graphics.Color blue
protected org.eclipse.swt.custom.StyleRange curRange
protected int rangeStyle
public java.lang.String getContent()
public void setContent(java.lang.String content)
content
- The content to set.protected void startRange(int posn)
protected void endRange(int posn)
public java.lang.String toPlainText()
public org.eclipse.swt.custom.StyleRange[] getStyleRanges()