本文整理汇总了Java中org.reactfx.SuspendableNo类的典型用法代码示例。如果您正苦于以下问题:Java SuspendableNo类的具体用法?Java SuspendableNo怎么用?Java SuspendableNo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SuspendableNo类属于org.reactfx包,在下文中一共展示了SuspendableNo类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CaretSelectionBindImpl
import org.reactfx.SuspendableNo; //导入依赖的package包/类
CaretSelectionBindImpl(GenericStyledArea<PS, SEG, S> area, IndexRange startingRange) {
this.area = area;
SuspendableNo delegateUpdater = new SuspendableNo();
this.delegateCaret = new CaretImpl(area, delegateUpdater, startingRange.getStart());
delegateSelection = new SelectionImpl<>(area, delegateUpdater, startingRange);
Val<Tuple3<Integer, Integer, Integer>> anchorPositions = startedByAnchor.flatMap(b ->
b
? Val.constant(Tuples.t(getStartPosition(), getStartParagraphIndex(), getStartColumnPosition()))
: Val.constant(Tuples.t(getEndPosition(), getEndParagraphIndex(), getEndColumnPosition()))
);
anchorPosition = anchorPositions.map(Tuple3::get1);
anchorParIndex = anchorPositions.map(Tuple3::get2);
anchorColPosition = anchorPositions.map(Tuple3::get3);
Suspendable omniSuspendable = Suspendable.combine(
// first, so it's released last
beingUpdated,
startedByAnchor,
// last, so it's released before startedByAnchor, so that anchor's values are correct
delegateUpdater
);
subscription = omniSuspendable.suspendWhen(area.beingUpdatedProperty());
}
示例2: busyProperty
import org.reactfx.SuspendableNo; //导入依赖的package包/类
public SuspendableNo busyProperty() {
return busy;
}
示例3: SelectionImpl
import org.reactfx.SuspendableNo; //导入依赖的package包/类
public SelectionImpl(GenericStyledArea<PS, SEG, S> area, SuspendableNo dependentBeingUpdated, int startPosition, int endPosition) {
this(area, dependentBeingUpdated, new IndexRange(startPosition, endPosition));
}
示例4: beingUpdatedProperty
import org.reactfx.SuspendableNo; //导入依赖的package包/类
/**
* True when an update to the area's {@link #getContent() underling editable document} is still occurring
* or the viewport is being updated.
*/
SuspendableNo beingUpdatedProperty();
示例5: beingUpdatedProperty
import org.reactfx.SuspendableNo; //导入依赖的package包/类
@Override public final SuspendableNo beingUpdatedProperty() { return beingUpdated; }
示例6: beingUpdatedProperty
import org.reactfx.SuspendableNo; //导入依赖的package包/类
SuspendableNo beingUpdatedProperty();