javafx.beans.property.ReadOnlyBooleanProperty Java Examples

The following examples show how to use javafx.beans.property.ReadOnlyBooleanProperty. 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: SetMultimapBinding.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	if (emptyProperty == null) {
		emptyProperty = new EmptyProperty();
	}
	return emptyProperty;
}
 
Example #2
Source File: MultisetBinding.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	if (emptyProperty == null) {
		emptyProperty = new EmptyProperty();
	}
	return emptyProperty;
}
 
Example #3
Source File: Connection.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	if (emptyProperty == null) {
		emptyProperty = new EmptyProperty();
	}
	return emptyProperty;
}
 
Example #4
Source File: MultisetPropertyBase.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	if (emptyProperty == null) {
		emptyProperty = new EmptyProperty();
	}
	return emptyProperty;
}
 
Example #5
Source File: SettingsController.java    From VocabHunter with Apache License 2.0 5 votes vote down vote up
private void initialiseField(final TextField field, final Supplier<Object> settingGetter) {
    StringProperty textProperty = field.textProperty();
    ReadOnlyBooleanProperty focusedProperty = field.focusedProperty();

    field.setText(settingGetter.get().toString());
    textProperty.addListener((o, oldValue, newValue) -> cleanNonNegativeInteger(field::setText, newValue, oldValue));
    focusedProperty.addListener((o, old, isFocused) -> applyDefaultIfEmpty(field::setText, field::getText, settingGetter));
}
 
Example #6
Source File: VncRenderService.java    From jfxvnc with Apache License 2.0 4 votes vote down vote up
public ReadOnlyBooleanProperty bellProperty() {
  return bell.getReadOnlyProperty();
}
 
Example #7
Source File: HistoryBasedDirtyStateProvider.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyBooleanProperty dirtyProperty() {
	return dirtyProperty.getReadOnlyProperty();
}
 
Example #8
Source File: VncRenderService.java    From jfxvnc with Apache License 2.0 4 votes vote down vote up
public ReadOnlyBooleanProperty onlineProperty() {
  return online.getReadOnlyProperty();
}
 
Example #9
Source File: DockNode.java    From AnchorFX with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ReadOnlyBooleanProperty floatingProperty() {
    return floatingProperty.getReadOnlyProperty();
}
 
Example #10
Source File: DockNode.java    From AnchorFX with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ReadOnlyBooleanProperty maximizingProperty() {
    return maximizingProperty.getReadOnlyProperty();
}
 
Example #11
Source File: VncConnection.java    From jfxvnc with Apache License 2.0 4 votes vote down vote up
public ReadOnlyBooleanProperty connectingProperty() {
  return connecting.getReadOnlyProperty();
}
 
Example #12
Source File: ChatMessage.java    From bisq with GNU Affero General Public License v3.0 4 votes vote down vote up
public ReadOnlyBooleanProperty storedInMailboxProperty() {
    return storedInMailboxProperty;
}
 
Example #13
Source File: FileEditorTabPane.java    From markdown-writer-fx with BSD 2-Clause "Simplified" License 4 votes vote down vote up
ReadOnlyBooleanProperty anyFileEditorModifiedProperty() {
	return anyFileEditorModified.getReadOnlyProperty();
}
 
Example #14
Source File: VncRenderService.java    From jfxvnc with Apache License 2.0 4 votes vote down vote up
public ReadOnlyBooleanProperty connectingProperty() {
  return con.connectingProperty();
}
 
Example #15
Source File: StagePopup.java    From arma-dialog-creator with MIT License 4 votes vote down vote up
@NotNull
public ReadOnlyBooleanProperty getShowingProperty() {
	return myStage.showingProperty();
}
 
Example #16
Source File: AbstractGesture.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public final ReadOnlyBooleanProperty activeProperty() {
	return acs.activeProperty();
}
 
Example #17
Source File: InfiniteCanvasViewer.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public final ReadOnlyBooleanProperty activeProperty() {
	return acs.activeProperty();
}
 
Example #18
Source File: AbstractVisualPart.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyBooleanProperty activeProperty() {
	return acs.activeProperty();
}
 
Example #19
Source File: ValidatorBase.java    From JFoenix with Apache License 2.0 4 votes vote down vote up
/**
 * @see #hasErrors
 */
public ReadOnlyBooleanProperty hasErrorsProperty() {
    return hasErrors.getReadOnlyProperty();
}
 
Example #20
Source File: ReadOnlyListWrapperEx.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	return ReadOnlyListWrapperEx.this.emptyProperty();
}
 
Example #21
Source File: TxConfidenceIndicator.java    From bisq with GNU Affero General Public License v3.0 4 votes vote down vote up
public final ReadOnlyBooleanProperty indeterminateProperty() {
    return indeterminatePropertyImpl().getReadOnlyProperty();
}
 
Example #22
Source File: ProgressCircleIndicator.java    From fx-progress-circle with Apache License 2.0 4 votes vote down vote up
public ReadOnlyBooleanProperty indeterminateProperty() {
    return indeterminate.getReadOnlyProperty();
}
 
Example #23
Source File: DashboardTile.java    From pdfsam with GNU Affero General Public License v3.0 4 votes vote down vote up
public final ReadOnlyBooleanProperty armedProperty() {
    return armed.getReadOnlyProperty();
}
 
Example #24
Source File: ReadOnlyMapWrapperEx.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	return ReadOnlyMapWrapperEx.this.emptyProperty();
}
 
Example #25
Source File: ReadOnlySetWrapperEx.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public ReadOnlyBooleanProperty emptyProperty() {
	return ReadOnlySetWrapperEx.this.emptyProperty();
}
 
Example #26
Source File: AbstractEditorFactory.java    From constellation with Apache License 2.0 4 votes vote down vote up
public final ReadOnlyBooleanProperty getEditDisabledProperty() {
    return disableEditProperty;
}
 
Example #27
Source File: XdatEditor.java    From xdat_editor with MIT License 4 votes vote down vote up
public ReadOnlyBooleanProperty workingProperty() {
    return working.getReadOnlyProperty();
}
 
Example #28
Source File: DynamicIconSupport.java    From jmonkeybuilder with Apache License 2.0 4 votes vote down vote up
@FxThread
private static void updateListener(@NotNull final Node node, @NotNull final ImageView imageView,
                                   @NotNull final ReadOnlyBooleanProperty condition,
                                   @NotNull final Object listenerKey, @NotNull final Object notSelectedKey,
                                   @NotNull final Object selectedKey) {

    final EditorConfig editorConfig = EditorConfig.getInstance();
    final CssColorTheme theme = editorConfig.getEnum(PREF_UI_THEME, PREF_DEFAULT_THEME);

    if (!theme.needRepaintIcons()) {
        return;
    }

    final ObservableMap<Object, Object> properties = node.getProperties();
    final Image newImage = imageView.getImage();

    if (newImage == null) {
        properties.remove(listenerKey);
        return;
    }

    final Image original = FILE_ICON_MANAGER.getOriginal(newImage);

    properties.put(notSelectedKey, newImage);
    properties.put(selectedKey, original);

    final ChangeListener<Boolean> listener = (observable, oldValue, newValue) -> {
        if (newValue) {
            imageView.setImage((Image) properties.get(selectedKey));
        } else {
            imageView.setImage((Image) properties.get(notSelectedKey));
        }
    };

    condition.addListener(listener);

    properties.put(listenerKey, listener);

    if (condition.get()) {
        imageView.setImage(original);
    } else {
        imageView.setImage(newImage);
    }
}
 
Example #29
Source File: FormulaPane.java    From phoebus with Eclipse Public License 1.0 4 votes vote down vote up
/** Property that indicates if the formula is valid */
public ReadOnlyBooleanProperty okProperty()
{
    return ok.getReadOnlyProperty();
}
 
Example #30
Source File: LogEntryModel.java    From phoebus with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Get the ready to submit property. True when all required fields have been filled.
 */
public ReadOnlyBooleanProperty getReadyToSubmitProperty() {
    return readyToSubmitProperty;
}