当前位置: 首页>>代码示例>>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;未经允许,请勿转载。