本文整理汇总了Java中org.reactfx.collection.LiveList类的典型用法代码示例。如果您正苦于以下问题:Java LiveList类的具体用法?Java LiveList怎么用?Java LiveList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LiveList类属于org.reactfx.collection包,在下文中一共展示了LiveList类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Navigator
import org.reactfx.collection.LiveList; //导入依赖的package包/类
public Navigator(
CellListManager<T, C> cellListManager,
CellPositioner<T, C> positioner,
OrientationHelper orientation,
ObjectProperty<Gravity> gravity,
SizeTracker sizeTracker) {
this.cellListManager = cellListManager;
this.cells = cellListManager.getLazyCellList();
this.positioner = positioner;
this.orientation = orientation;
this.gravity = gravity;
this.sizeTracker = sizeTracker;
this.itemsSubscription = LiveList.observeQuasiChanges(cellListManager.getLazyCellList(), this::itemsChanged);
Bindings.bindContent(getChildren(), cellListManager.getNodes());
// When gravity changes, we must redo our layout:
gravity.addListener((prop, oldVal, newVal) -> requestLayout());
}
开发者ID:FXMisc,项目名称:Flowless,代码行数:19,代码来源:Navigator.java
示例2: Navigator
import org.reactfx.collection.LiveList; //导入依赖的package包/类
public Navigator(CellListManager<C> cellListManager,
CellPositioner<C> positioner, SizeTracker sizeTracker) {
this.cellListManager = cellListManager;
this.cells = cellListManager.getLazyCellList();
this.positioner = positioner;
this.sizeTracker = sizeTracker;
this.itemsSubscription = LiveList.observeQuasiChanges(cellListManager.getLazyCellList(),
this::itemsChanged);
Bindings.bindContent(getChildren(), cellListManager.getNodes());
}
开发者ID:ChiralBehaviors,项目名称:Kramer,代码行数:12,代码来源:Navigator.java
示例3: CellListManager
import org.reactfx.collection.LiveList; //导入依赖的package包/类
public CellListManager(ObservableList<JsonNode> items,
Function<? super JsonNode, ? extends C> cellFactory) {
this.cellPool = new CellPool<>(cellFactory);
this.cells = LiveList.map(items, this::cellForItem)
.memoize();
this.presentCells = cells.memoizedItems();
this.cellNodes = presentCells.map(Cell::getNode);
this.presentCellsSubscription = presentCells.observeQuasiModifications(this::presentCellsChanged);
}
开发者ID:ChiralBehaviors,项目名称:Kramer,代码行数:10,代码来源:CellListManager.java
示例4: MarkedLineNumberFactory
import org.reactfx.collection.LiveList; //导入依赖的package包/类
private MarkedLineNumberFactory(StyledTextArea<?, ?> area, IntFunction<String> format) {
this.area = area;
nParagraphs = LiveList.sizeOf(area.getParagraphs());
this.format = format;
lineMarkFactory.set(defaultLineMarkFactory());
graphicsMapperFactory.set(defaultGraphicsMapperFactory());
}
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:8,代码来源:MarkedLineNumberFactory.java
示例5: DiffLineNumberFactory
import org.reactfx.collection.LiveList; //导入依赖的package包/类
private DiffLineNumberFactory(
StyledTextArea<?, ?> area,
IntFunction<String> format,
List<Pair<Integer, Integer>> highlightList) {
nParagraphs = LiveList.sizeOf(area.getParagraphs());
this.format = format;
this.highlightList = highlightList;
}
开发者ID:iazarny,项目名称:gitember,代码行数:9,代码来源:DiffLineNumberFactory.java
示例6: CellListManager
import org.reactfx.collection.LiveList; //导入依赖的package包/类
public CellListManager(
ObservableList<T> items,
Function<? super T, ? extends C> cellFactory) {
this.cellPool = new CellPool<>(cellFactory);
this.cells = LiveList.map(items, this::cellForItem).memoize();
this.presentCells = cells.memoizedItems();
this.cellNodes = presentCells.map(Cell::getNode);
this.presentCellsSubscription = presentCells.observeQuasiModifications(this::presentCellsChanged);
}
开发者ID:FXMisc,项目名称:Flowless,代码行数:10,代码来源:CellListManager.java
示例7: simpleChangesOf
import org.reactfx.collection.LiveList; //导入依赖的package包/类
/**
* Use only when the subscriber does not cause {@code list} modification
* of the underlying list.
*/
public static <T> EventStream<ListModification<? extends T>> simpleChangesOf(ObservableList<T> list) {
return new EventStreamBase<ListModification<? extends T>>() {
@Override
protected Subscription observeInputs() {
return LiveList.observeChanges(list, c -> {
for(ListModification<? extends T> mod: c) {
emit(mod);
}
});
}
};
}
开发者ID:TomasMikula,项目名称:ReactFX,代码行数:17,代码来源:EventStreams.java
示例8: LineNumberFunction
import org.reactfx.collection.LiveList; //导入依赖的package包/类
private LineNumberFunction(StyledTextArea<?, ?> area, IntFunction<String> format) {
paragraphs = LiveList.sizeOf(area.getParagraphs());
this.format = format;
}
开发者ID:kasirgalabs,项目名称:ETUmulator,代码行数:5,代码来源:LineNumberFunction.java
示例9: LineNumberGutterFactory
import org.reactfx.collection.LiveList; //导入依赖的package包/类
LineNumberGutterFactory(MarkdownTextArea textArea) {
this.textArea = textArea;
lineCount = LiveList.sizeOf(textArea.getParagraphs());
}
开发者ID:JFormDesigner,项目名称:markdown-writer-fx,代码行数:5,代码来源:LineNumberGutterFactory.java
示例10: LineNumberFactory
import org.reactfx.collection.LiveList; //导入依赖的package包/类
private LineNumberFactory(
GenericStyledArea<?, ?, ?> area,
IntFunction<String> format) {
nParagraphs = LiveList.sizeOf(area.getParagraphs());
this.format = format;
}
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:7,代码来源:LineNumberFactory.java
示例11: getParagraphs
import org.reactfx.collection.LiveList; //导入依赖的package包/类
@Override
public LiveList<Paragraph<PS, SEG, S>> getParagraphs() {
return paragraphs;
}
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:5,代码来源:GenericEditableStyledDocumentBase.java
示例12: getParagraphs
import org.reactfx.collection.LiveList; //导入依赖的package包/类
@Override
LiveList<Paragraph<PS, SEG, S>> getParagraphs();
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:3,代码来源:EditableStyledDocument.java
示例13: listNotifications
import org.reactfx.collection.LiveList; //导入依赖的package包/类
static <E> NotificationAccumulator<LiveList.Observer<? super E, ?>, QuasiListChange<? extends E>, ListModificationSequence<E>> listNotifications() {
return new ListNotifications<>();
}
开发者ID:TomasMikula,项目名称:ReactFX,代码行数:4,代码来源:NotificationAccumulator.java
示例14: getVisibleParagraphs
import org.reactfx.collection.LiveList; //导入依赖的package包/类
/**
* Gets the visible paragraphs, even the ones that are barely displayed.
*/
LiveList<Paragraph<PS, SEG, S>> getVisibleParagraphs();
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:5,代码来源:ViewActions.java
示例15: wrap
import org.reactfx.collection.LiveList; //导入依赖的package包/类
/**
* Creates an ObservableList wrapper that is able to temporarily block
* list change notifications.
* @param delegate the underlying observable list.
* @deprecated Use {@link LiveList#suspendable(javafx.collections.ObservableList)} instead.
*/
@Deprecated
public static <E> ObservableList<E> wrap(javafx.collections.ObservableList<E> delegate) {
return LiveList.suspendable(delegate);
}
开发者ID:TomasMikula,项目名称:ReactFX,代码行数:11,代码来源:Collections.java
示例16: asList
import org.reactfx.collection.LiveList; //导入依赖的package包/类
/**
* Returns a {@linkplain LiveList} view of this {@linkplain Val}. The
* returned list will have size 1 when this {@linkplain Val} is present
* (i.e. not {@code null}) and size 0 otherwise.
*/
default LiveList<T> asList() {
return LiveList.wrapVal(this);
}
开发者ID:TomasMikula,项目名称:ReactFX,代码行数:9,代码来源:Val.java
示例17: getParagraphs
import org.reactfx.collection.LiveList; //导入依赖的package包/类
@Override public LiveList<Paragraph<PS, SEG, S>> getParagraphs() { return content.getParagraphs(); }
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:2,代码来源:GenericStyledArea.java
示例18: getVisibleParagraphs
import org.reactfx.collection.LiveList; //导入依赖的package包/类
@Override public final LiveList<Paragraph<PS, SEG, S>> getVisibleParagraphs() { return visibleParagraphs; }
开发者ID:FXMisc,项目名称:RichTextFX,代码行数:2,代码来源:GenericStyledArea.java
注:本文中的org.reactfx.collection.LiveList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论