javafx.beans.property.ReadOnlyListProperty Java Examples

The following examples show how to use javafx.beans.property.ReadOnlyListProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReadOnlyListWrapperExTests.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Test
public void readOnlyWrapperChangeNotifications() {
	ReadOnlyListWrapperEx<Integer> listWrapper = new ReadOnlyListWrapperEx<>(
			FXCollections.observableArrayList());
	ReadOnlyListProperty<Integer> roProperty = listWrapper
			.getReadOnlyProperty();
	ListChangeExpector<Integer> listChangeListener = new ListChangeExpector<>(
			roProperty);
	roProperty.addListener(listChangeListener);
	listChangeListener.addAtomicExpectation();
	listChangeListener.addElementaryExpectation(null,
			Collections.singletonList(1), null, 0, 1);
	roProperty.add(1);
	listChangeListener.check();
}
 
Example #2
Source File: Connection.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Returns an unmodifiable read-only list property, which contains the
 * points (start, control, end) that constitute this connection.
 *
 * @return An unmodifiable read-only list property containing this
 *         {@link Connection}'s points.
 */
public ReadOnlyListProperty<Point> pointsUnmodifiableProperty() {
	// property is created lazily to save memory
	if (pointsUnmodifiableProperty == null) {
		pointsUnmodifiableProperty = new PointsUnmodifiableProperty();
	}
	return pointsUnmodifiableProperty;
}
 
Example #3
Source File: ReadOnlyListWrapperEx.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyListProperty<E> getReadOnlyProperty() {
	if (readOnlyProperty == null) {
		readOnlyProperty = new ReadOnlyPropertyImpl();
	}
	return readOnlyProperty;
}
 
Example #4
Source File: AbstractContentPart.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyListProperty<Object> contentChildrenUnmodifiableProperty() {
	if (contentChildrenUnmodifiableProperty == null) {
		contentChildrenUnmodifiableProperty = new ReadOnlyListWrapperEx<>(
				this, CONTENT_CHILDREN_PROPERTY,
				getContentChildrenUnmodifiable());
	}
	return contentChildrenUnmodifiableProperty.getReadOnlyProperty();
}
 
Example #5
Source File: AbstractVisualPart.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyListProperty<IVisualPart<? extends Node>> childrenUnmodifiableProperty() {
	if (childrenUnmodifiableProperty == null) {
		childrenUnmodifiableProperty = new ReadOnlyListWrapperEx<>(this,
				CHILDREN_PROPERTY, getChildrenUnmodifiable());
	}
	return childrenUnmodifiableProperty.getReadOnlyProperty();
}
 
Example #6
Source File: DefaultAudioRecordingService.java    From attach with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ReadOnlyListProperty<String> getAudioChunkFiles() {
    return chunkList.getReadOnlyProperty();
}
 
Example #7
Source File: BadaboomCollector.java    From latexdraw with GNU General Public License v3.0 4 votes vote down vote up
public @NotNull ReadOnlyListProperty<Throwable> errorsProperty() {
	return errors;
}
 
Example #8
Source File: RunnerResult.java    From curly with Apache License 2.0 4 votes vote down vote up
public ReadOnlyListProperty<T> getDetails() {
    return new ReadOnlyListWrapper<>(details);
}
 
Example #9
Source File: GeometricCurve.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
public ReadOnlyListProperty<Point> wayPointsProperty() {
	return wayPointsProperty.getReadOnlyProperty();
}
 
Example #10
Source File: GeometricCurve.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
public ReadOnlyListProperty<Double> dashesProperty() {
	return dashesProperty.getReadOnlyProperty();
}
 
Example #11
Source File: InfiniteCanvasViewer.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyListProperty<Object> contentsProperty() {
	return contentsProperty.getReadOnlyProperty();
}
 
Example #12
Source File: Catalog.java    From xltsearch with Apache License 2.0 4 votes vote down vote up
ReadOnlyListProperty<SearchResult> searchResultsProperty() {
    return searchResults.getReadOnlyProperty();
}
 
Example #13
Source File: Change.java    From PreferencesFX with Apache License 2.0 4 votes vote down vote up
public ReadOnlyListProperty<P> newListProperty() {
  return newList;
}
 
Example #14
Source File: Change.java    From PreferencesFX with Apache License 2.0 4 votes vote down vote up
public ReadOnlyListProperty<P> oldListProperty() {
  return oldList;
}
 
Example #15
Source File: Connection.java    From gef with Eclipse Public License 2.0 3 votes vote down vote up
/**
 * Returns an unmodifiable read-only list property, which contains the
 * {@link IAnchor}s that determine the start point, control points, and end
 * point of this {@link Connection}.
 *
 * @return An unmodifiable read-only list property containing this
 *         {@link Connection}'s anchors.
 */
public ReadOnlyListProperty<IAnchor> anchorsUnmodifiableProperty() {
	// property is created lazily to save memory
	if (anchorsUnmodifiableProperty == null) {
		anchorsUnmodifiableProperty = new AnchorsUnmodifiableProperty();
	}
	return anchorsUnmodifiableProperty;
}
 
Example #16
Source File: Graph.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns a read-only list property containing the {@link Node}s of this
 * {@link Graph}.
 *
 * @return A read-only list property.
 */
public ReadOnlyListProperty<Node> nodesProperty() {
	return nodesProperty.getReadOnlyProperty();
}
 
Example #17
Source File: IVisualPart.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns an unmodifiable read-only property containing the children of
 * this {@link IVisualPart}.
 *
 * @see #getChildrenUnmodifiable()
 * @see #addChild(IVisualPart)
 * @see #addChild(IVisualPart, int)
 * @see #addChildren(List)
 * @see #addChildren(List, int)
 * @see #removeChild(IVisualPart)
 * @see #removeChildren(List)
 * @see #reorderChild(IVisualPart, int)
 *
 * @return An unmodifiable read-only property named
 *         {@link #CHILDREN_PROPERTY}.
 */
public ReadOnlyListProperty<IVisualPart<? extends Node>> childrenUnmodifiableProperty();
 
Example #18
Source File: IContentPart.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns an unmodfiable read-only property containing the content
 * children.
 *
 * @return An unmodifiable read-only property named
 *         {@link #CONTENT_CHILDREN_PROPERTY}.
 */
public ReadOnlyListProperty<Object> contentChildrenUnmodifiableProperty();
 
Example #19
Source File: SelectionModel.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns an unmodifiable read-only list property that represents the
 * current selection.
 *
 * @return An unmodifiable read-only property named
 *         {@link #SELECTION_PROPERTY}.
 */
public ReadOnlyListProperty<IContentPart<? extends Node>> selectionUnmodifiableProperty() {
	return selectionUnmodifiableProperty.getReadOnlyProperty();
}
 
Example #20
Source File: SnappingModel.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * A read-only property containing the current {@link SnappingLocation}s.
 *
 * @return A read-only list property named
 *         {@link #SNAPPING_LOCATIONS_PROPERTY}.
 */
public ReadOnlyListProperty<SnappingLocation> snappingLocationsProperty() {
	return snappingLocationsProperty.getReadOnlyProperty();
}
 
Example #21
Source File: SnappingModel.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * A read-only property containing the current {@link ISnapToStrategy
 * ISnapToStrategies}.
 *
 * @return A read-only list property named
 *         {@link #SNAP_TO_STRATEGIES_PROPERTY}.
 */
public ReadOnlyListProperty<ISnapToStrategy> snapToStrategiesProperty() {
	return snapToStrategiesProperty.getReadOnlyProperty();
}
 
Example #22
Source File: IViewer.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * A read-only property containing the current content objects.
 *
 * @return A read-only list property named {@link #CONTENTS_PROPERTY}.
 */
public ReadOnlyListProperty<Object> contentsProperty();
 
Example #23
Source File: Graph.java    From gef with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns a read-only list property containing the {@link Edge}s of this
 * {@link Graph}.
 *
 * @return The list of {@link Edge}s of this {@link Graph}.
 */
public ReadOnlyListProperty<Edge> edgesProperty() {
	return edgesProperty.getReadOnlyProperty();
}
 
Example #24
Source File: AudioRecordingService.java    From attach with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns a read only observable list of file names. It contains a list of file chunks that
 * are saved in the {@link #getAudioFolder() audio folder}. It can be used during recording
 * to track when new audio chunks are made available in the audio folder.
 *
 * @return A {@code ReadOnlyListProperty} of file names
 */
ReadOnlyListProperty<String> getAudioChunkFiles();