當前位置: 首頁>>代碼示例>>Java>>正文


Java SuspendableNo類代碼示例

本文整理匯總了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());
}
 
開發者ID:FXMisc,項目名稱:RichTextFX,代碼行數:29,代碼來源:CaretSelectionBindImpl.java

示例2: busyProperty

import org.reactfx.SuspendableNo; //導入依賴的package包/類
public SuspendableNo busyProperty() {
    return busy;
}
 
開發者ID:TomasMikula,項目名稱:BackCheckFX,代碼行數:4,代碼來源:AnalysisManager.java

示例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));
}
 
開發者ID:FXMisc,項目名稱:RichTextFX,代碼行數:4,代碼來源:SelectionImpl.java

示例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();
 
開發者ID:FXMisc,項目名稱:RichTextFX,代碼行數:6,代碼來源:TextEditingArea.java

示例5: beingUpdatedProperty

import org.reactfx.SuspendableNo; //導入依賴的package包/類
@Override public final SuspendableNo beingUpdatedProperty() { return beingUpdated; } 
開發者ID:FXMisc,項目名稱:RichTextFX,代碼行數:2,代碼來源:GenericStyledArea.java

示例6: beingUpdatedProperty

import org.reactfx.SuspendableNo; //導入依賴的package包/類
SuspendableNo beingUpdatedProperty(); 
開發者ID:FXMisc,項目名稱:RichTextFX,代碼行數:2,代碼來源:EditableStyledDocument.java


注:本文中的org.reactfx.SuspendableNo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。