本文整理匯總了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();