Interface StyledInput
- All Superinterfaces:
AutoCloseable
,Closeable
This interface represents a source of styled text segments for the purposes of
pasting, importing, or loading from an input stream.
- Since:
- 24
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the next segment, or null if no more segments.static StyledInput
Creates a plain text styled input withStyleAttributeMap.EMPTY
.static StyledInput
of
(String text, StyleAttributeMap attrs) Creates a plain text styled input with the specified style.
-
Field Details
-
EMPTY
An empty StyledInput.
-
-
Method Details
-
nextSegment
StyledSegment nextSegment()Returns the next segment, or null if no more segments.- Returns:
- the next segment, or null if no more segments
-
of
Creates a plain text styled input with the specified style.- Parameters:
text
- the source textattrs
- the source style attributes- Returns:
- the StyledInput instance
-
of
Creates a plain text styled input withStyleAttributeMap.EMPTY
.- Parameters:
text
- the source text- Returns:
- the StyledInput instance
-