Package org.fxmisc.richtext.model
Interface TextOps<SEG,S>
-
- Type Parameters:
SEG
- the type of segmentS
- the type of style
- All Superinterfaces:
SegmentOps<SEG,S>
- All Known Implementing Classes:
TextOpsBase
public interface TextOps<SEG,S> extends SegmentOps<SEG,S>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R> TextOps<Either<SEG,R>,S>
_or(SegmentOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will use this object'screate(String)
method, notrOps
' version.SEG
create(java.lang.String text)
Creates a segment using the given text.static <L,R,S>
TextOps<Either<L,R>,S>eitherL(TextOps<L,S> lOps, SegmentOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will uselOps
'create(String)
method, notrOps
' version.static <L,R,S>
TextOps<Either<L,R>,S>eitherR(SegmentOps<L,S> lOps, TextOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will userOps
'create(String)
method, notlOps
' version.-
Methods inherited from interface org.fxmisc.richtext.model.SegmentOps
charAt, createEmptySeg, getText, joinSeg, joinStyle, length, or, orStyled, subSequence, subSequence
-
-
-
-
Method Detail
-
create
SEG create(java.lang.String text)
Creates a segment using the given text. One could think of this as a mapping function fromString
toTextOps
-
_or
default <R> TextOps<Either<SEG,R>,S> _or(SegmentOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will use this object'screate(String)
method, notrOps
' version.
-
eitherL
static <L,R,S> TextOps<Either<L,R>,S> eitherL(TextOps<L,S> lOps, SegmentOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will uselOps
'create(String)
method, notrOps
' version.
-
eitherR
static <L,R,S> TextOps<Either<L,R>,S> eitherR(SegmentOps<L,S> lOps, TextOps<R,S> rOps, java.util.function.BiFunction<S,S,java.util.Optional<S>> mergeStyle)
Same asSegmentOps.either(SegmentOps, SegmentOps, BiFunction)
, except thatcreate(String)
will userOps
'create(String)
method, notlOps
' version.
-
-