Package javafx.beans.property

Examples of javafx.beans.property.SimpleStringProperty


    public NodeStatusView(final ControlBar controlBar) {
      super();
      getStyleClass().add("remote-node-listcell");
      this.controlBar = controlBar;
      this.statusIcon = new StatusIcon(16d, 16d, GuiUtil.COLOR_CLOSED);
      this.helpTextStringProperty = new SimpleStringProperty();
      setHelpText("LOADING...");
      setCursor(Cursor.HAND);
      controlBar.addHelpTextTrigger(this, this.helpTextStringProperty);
    }
View Full Code Here


    if (!encryptResult) {
      this.beanPathAdapter.bindBidirectional(this.modelKey.getKey(),
          tf.textProperty());
    } else {
      try {
        final StringProperty msp = new SimpleStringProperty(
            tf.getText()) {
          @Override
          public void set(final String value) {
            super.set(value);
            if (value == null || value.isEmpty()) {
              tf.setText(value);
              return;
            }
            encrypt = false;
            try {
              final String clearText = getEncryptionProvider()
                  .decrypt(value);
              tf.setText(clearText);
            } catch (final Throwable t) {
              throw new RuntimeException("Unable to decrypt", t);
            } finally {
              encrypt = true;
            }
          }
        };
        this.beanPathAdapter.bindBidirectional(this.modelKey.getKey(),
            msp);
        tf.focusedProperty().addListener(new ChangeListener<Boolean>() {
          private String ltv = tf.getText();
          @Override
          public void changed(
              final ObservableValue<? extends Boolean> observable,
              final Boolean oldValue, final Boolean newValue) {
            if (encrypt && (newValue == null || !newValue)
                && tf.getText() != null
                && !tf.getText().isEmpty()
                && !tf.getText().equals(ltv)) {
              try {
                final String encrypted = getEncryptionProvider()
                    .encrypt(tf.getText());
                ltv = tf.getText();
                msp.set(encrypted);
              } catch (final Throwable t) {
                throw new RuntimeException("Unable to encrypt",
                    t);
              }
            }
View Full Code Here

    @Before
    public void init() {
        this.cut = new MonitoringLevelActivation();
        this.cut.init();
        this.cut.model = mock(DashboardModel.class);
        StringProperty property = new SimpleStringProperty("http://localhost:8080/lightfish");
        when(this.cut.model.serverUriProperty()).thenReturn(property);
    }
View Full Code Here

    @Before
    public void init() {
        this.cut = new PollingSetup();
        this.cut.init();
        this.cut.model = mock(DashboardModel.class);
        StringProperty property = new SimpleStringProperty("http://localhost:8080/lightfish");
        when(this.cut.model.serverUriProperty()).thenReturn(property);
    }
View Full Code Here

    @Before
    public void init() {
        this.cut = new EJBPoolMonitoring();
        this.cut.init();
        this.cut.model = mock(DashboardModel.class);
        StringProperty property = new SimpleStringProperty("http://localhost:8080/lightfish");
        when(this.cut.model.serverUriProperty()).thenReturn(property);
    }
View Full Code Here

    public void init() {
        this.blockSupport = new CountDownLatch(1);
        this.cut = new MethodMonitoring();
        this.cut.init();
        this.cut.model = mock(DashboardModel.class);
        StringProperty property = new SimpleStringProperty("http://localhost:8080/lightfish");
        when(this.cut.model.serverUriProperty()).thenReturn(property);
    }
View Full Code Here

    private IntegerProperty waitqueuelength;
    private IntegerProperty numpotentialconnleak;
    private IntegerProperty numconnused;

    private ConnectionPoolBindings() {
        this.jndiName = new SimpleStringProperty();
        this.numconnfree = new SimpleIntegerProperty();
        this.waitqueuelength = new SimpleIntegerProperty();
        this.numpotentialconnleak = new SimpleIntegerProperty();
        this.numconnused = new SimpleIntegerProperty();
    }
View Full Code Here

        this.activeSessions = new SimpleIntegerProperty();
        this.expiredSessions = new SimpleIntegerProperty();
        this.id = new SimpleLongProperty();
        this.commitsPerSecond = new SimpleDoubleProperty();
        this.rollbacksPerSecond = new SimpleDoubleProperty();
        this.deadlockedThreads = new SimpleStringProperty();
        this.initializeListeners();
    }
View Full Code Here


    @PostConstruct
    public void init() {
        this.current = new SimpleObjectProperty<>();
        this.serverUri = new SimpleStringProperty();
        this.serverUri.setValue("http://localhost:8080/lightfish/");
        this.applications = FXCollections.observableSet(new HashSet<Application>());

    }
View Full Code Here

  public final ObservableList<LogsRowModel> logs = FXCollections.observableArrayList();
 
 
  public LogsResultModel(String config, List<LogEvent> logevents) {
    super();
    this.config = new SimpleStringProperty(config);
    for (LogEvent logEvent: logevents){
      logs.add(new LogsRowModel(logEvent));
    }
  }
View Full Code Here

TOP

Related Classes of javafx.beans.property.SimpleStringProperty

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.