APIdia Launch Partner
Top Description Fields Methods
jfx.incubator.scene.control.richtext.model

public Interface StyledInput

extends Closeable
Known Direct Implementers
com.sun.jfx.incubator.scene.control.richtext.SegmentStyledInput, com.sun.jfx.incubator.scene.control.richtext.StringStyledInput, jfx.incubator.scene.control.richtext.model.FileListFormatHandler.FileListStyledInput, jfx.incubator.scene.control.richtext.model.RichTextFormatHandler.RichStyledInput
Imports
java.io.Closeable, .IOException, com.sun.jfx.incubator.scene.control.richtext.StringStyledInput

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

Modifier and TypeField and Description
public static final StyledInput
EMPTY

An empty StyledInput.

Method Summary

Modifier and TypeMethod and Description
public StyledSegment

Returns:

the next segment, or null if no more segments
nextSegment
()

Returns the next segment, or null if no more segments.

public static StyledInput

Returns:

the StyledInput instance
of
(String
the source text
text
,
StyleAttributeMap
the source style attributes
attrs
)

Creates a plain text styled input with the specified style.

public static StyledInput

Returns:

the StyledInput instance
of
(String
the source text
text
)

Creates a plain text styled input with StyleAttributeMap#EMPTY.

Inherited from java.io.Closeable:
close

Field Detail

EMPTYback to summary
public static final StyledInput EMPTY

An empty StyledInput.

Method Detail

nextSegmentback to summary
public StyledSegment nextSegment()

Returns the next segment, or null if no more segments.

Returns:StyledSegment

the next segment, or null if no more segments

ofback to summary
public static StyledInput of(String text, StyleAttributeMap attrs)

Creates a plain text styled input with the specified style.

Parameters
text:String

the source text

attrs:StyleAttributeMap

the source style attributes

Returns:StyledInput

the StyledInput instance

ofback to summary
public static StyledInput of(String text)

Creates a plain text styled input with StyleAttributeMap#EMPTY.

Parameters
text:String

the source text

Returns:StyledInput

the StyledInput instance