public class ComposedStyledString extends Object implements IStyledString.IComposedStyledString
ArrayList
.Constructor and Description |
---|
ComposedStyledString()
Creates a new empty instance.
|
ComposedStyledString(String text)
Creates a new instance with the given text without style.
|
ComposedStyledString(String text,
IStyledString.Style style)
Creates a new instance with the given text and the given style.
|
Modifier and Type | Method and Description |
---|---|
IStyledString.IComposedStyledString |
append(IStyledString.IComposedStyledString composedStyledString)
Appends the given composed styled string to this.
|
IStyledString.IComposedStyledString |
append(String str)
Append the given string with no style.
|
IStyledString.IComposedStyledString |
append(String str,
IStyledString.Style style)
Append the given string with the given style.
|
String |
getString()
Returns the Java string for this composed styled string.
|
Iterator<IStyledString> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ComposedStyledString()
public ComposedStyledString(String text)
text
- the text.public ComposedStyledString(String text, IStyledString.Style style)
text
- the text.style
- the style of the text.public String getString()
getString
in interface IStyledString.IComposedStyledString
IStyledString.IComposedStyledString.getString()
public IStyledString.IComposedStyledString append(String str)
append
in interface IStyledString.IComposedStyledString
str
- the string to append.org.eclipse.emf.compare.ide.ui.internal.util.IComposedStyledString#append(java.lang.String)
public IStyledString.IComposedStyledString append(String str, IStyledString.Style style)
append
in interface IStyledString.IComposedStyledString
str
- the string to append.style
- the style of the appended string.org.eclipse.emf.compare.ide.ui.internal.util.IComposedStyledString#append(java.lang.String,
org.eclipse.emf.compare.ide.ui.internal.util.IComposedStyledString.Style)
public IStyledString.IComposedStyledString append(IStyledString.IComposedStyledString composedStyledString)
append
in interface IStyledString.IComposedStyledString
composedStyledString
- the styled string to append.IStyledString.IComposedStyledString.append(org.eclipse.emf.compare.provider.utils.IStyledString.IComposedStyledString)
public Iterator<IStyledString> iterator()
iterator
in interface Iterable<IStyledString>
Iterable.iterator()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.