Package javafx.beans.property

Examples of javafx.beans.property.SimpleBooleanProperty


    setCursor(Cursor.HAND);
    setCache(true);
    setCacheHint(CacheHint.SPEED);
    this.onText = onText;
    this.offText = offText;
    this.boolProperty = new SimpleBooleanProperty(on);
    selectedProperty().addListener(new ChangeListener<Boolean>() {
      @Override
      public void changed(ObservableValue<? extends Boolean> observable,
          Boolean oldValue, Boolean newValue) {
        update();
View Full Code Here


    this.intensityIndicatorRegionsProperty = new SimpleObjectProperty<Gauge.IntensityIndicatorRegions>(
        intensityRegions == null ? INTENSITY_REGIONS_DEFAULT : intensityRegions);
    this.lightingAzimuthProperty = new SimpleDoubleProperty(270d);
    this.lightingElevationProperty = new SimpleDoubleProperty(50d);
    this.highlightFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.snapToTicksProperty = new SimpleBooleanProperty(false);
    createChildren();
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
        angleProperty.set(1d);
View Full Code Here

public class SuspendWhenTest {

    @Test
    public void test() {
        Property<Integer> p = new SimpleObjectProperty<>(0);
        BooleanProperty suspended = new SimpleBooleanProperty(true);
        List<Integer> emitted = new ArrayList<>();
        SuspendableEventStream<Integer> pausable = EventStreams.valuesOf(p).pausable();
        Subscription sub = pausable.suspendWhen(suspended).subscribe(emitted::add);

        // test that the stream started suspended
        assertEquals(Arrays.asList(), emitted);

        suspended.set(false);
        assertEquals(Arrays.asList(0), emitted);

        p.setValue(1);
        assertEquals(Arrays.asList(0, 1), emitted);

        suspended.set(true);
        p.setValue(2);
        p.setValue(3);
        p.setValue(4);
        assertEquals(Arrays.asList(0, 1), emitted);

        List<Integer> emitted2 = new ArrayList<>();
        pausable.subscribe(emitted2::add);
        assertEquals(Arrays.asList(), emitted2);

        suspended.set(false);
        assertEquals(Arrays.asList(0, 1, 2, 3, 4), emitted);
        assertEquals(Arrays.asList(2, 3, 4), emitted2);

        suspended.set(true);
        p.setValue(5);
        p.setValue(6);
        assertEquals(Arrays.asList(2, 3, 4), emitted2);
        sub.unsubscribe(); // testing resume on unsubscribe
        assertEquals(Arrays.asList(0, 1, 2, 3, 4), emitted);
View Full Code Here

  public final MaxCountFilterModel maxCountFilterModel = new MaxCountFilterModel();
 
 
  public EngineLoadFilterModel(){
    for (WorkflowInstanceState workflowInstanceState: WorkflowInstanceState.values()){
      stateFilters.put(workflowInstanceState,new SimpleBooleanProperty(true));
    }
  }
View Full Code Here

        properties.put("character", new SimpleStringProperty(CHARACTER));
        return this;
    }

    public final MatrixSegmentBuilder backgroundVisible(final boolean BACKGROUND_VISIBLE) {
        properties.put("backgroundVisible", new SimpleBooleanProperty(BACKGROUND_VISIBLE));
        return this;
    }
View Full Code Here

        properties.put("backgroundVisible", new SimpleBooleanProperty(BACKGROUND_VISIBLE));
        return this;
    }

    public final MatrixSegmentBuilder highlightsVisible(final boolean HIGHLIGHTS_VISIBLE) {
        properties.put("highlightsVisible", new SimpleBooleanProperty(HIGHLIGHTS_VISIBLE));
        return this;
    }
View Full Code Here

        properties.put("highlightsVisible", new SimpleBooleanProperty(HIGHLIGHTS_VISIBLE));
        return this;
    }

    public final MatrixSegmentBuilder glowEnabled(final boolean GLOW_ENABLED) {
        properties.put("glowEnabled", new SimpleBooleanProperty(GLOW_ENABLED));
        return this;
    }
View Full Code Here

        properties.put("dateColor", new SimpleObjectProperty<>(DATE_COLOR));
        return this;
    }

    public final RoundLcdClockBuilder alarmOn(final boolean ALARM_ON) {
        properties.put("alarmOn", new SimpleBooleanProperty(ALARM_ON));
        return this;
    }
View Full Code Here

        properties.put("alarm", new SimpleObjectProperty<>(ALARM));
        return this;
    }

    public final RoundLcdClockBuilder alarmVisible(final boolean ALARM_VISIBLE) {
        properties.put("alarmVisible", new SimpleBooleanProperty(ALARM_VISIBLE));
        return this;
    }
View Full Code Here

        properties.put("alarmVisible", new SimpleBooleanProperty(ALARM_VISIBLE));
        return this;
    }

    public final RoundLcdClockBuilder dateVisible(final boolean DATE_VISIBLE) {
        properties.put("dateVisible", new SimpleBooleanProperty(DATE_VISIBLE));
        return this;
    }
View Full Code Here

TOP

Related Classes of javafx.beans.property.SimpleBooleanProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.