Top Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class SegmentStyledInput

extends Object
implements StyledInput
Class Inheritance
All Implemented Interfaces
jfx.incubator.scene.control.richtext.model.StyledInput, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, java.util.List, jfx.incubator.scene.control.richtext.model.StyledInput, .StyledSegment

Field Summary

Modifier and TypeField and Description
private int
private final StyledSegment[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public StyledSegment
nextSegment()

Implements jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

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

public static SegmentStyledInput
of(List<StyledSegment> segments)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private int index
segmentsback to summary
private final StyledSegment[] segments

Constructor Detail

SegmentStyledInputback to summary
public SegmentStyledInput(StyledSegment[] segments)

Method Detail

closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
nextSegmentback to summary
public StyledSegment nextSegment()

Implements jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

Doc from jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

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

Returns:StyledSegment

the next segment, or null if no more segments

Annotations
@Override
ofback to summary
public static SegmentStyledInput of(List<StyledSegment> segments)