@Test(timeout=10000) public void titlePropertyTest() { Platform.runLater(new Runnable() { public void run() { initWebEngine(); engine.load(getPath(this.getClass(), "resource/example1.html")); prepareWaitPageLoading(); } }); doWaitPageLoading(); final ReadOnlyStringProperty titleProperty = engine.titleProperty(); Assert.assertEquals(titleProperty.get(), "Testing page 1"); Platform.runLater(new Runnable() { public void run() { engine.executeScript("window.document.title = \"Test Title 2\";"); } }); doWait (new Tester() { public boolean isPassed () { return titleProperty.get().equals("Test Title 2"); } }); }
public void addUpdateParentListListener(List<ReadOnlyStringProperty> listToUpdate) { if (changeListener != null) { boundToAllValid.removeListener(changeListener); } changeListener = new ListChangeListener<ReadOnlyStringProperty>() { @Override public void onChanged(Change<? extends ReadOnlyStringProperty> listChange) { while (listChange.next()) { for (ReadOnlyStringProperty sp : listChange.getRemoved()) { listToUpdate.remove(sp); } listToUpdate.addAll(listChange.getAddedSubList()); } } }; boundToAllValid.addListener(changeListener); }
@JsonIgnore private ReadOnlyStringProperty getDisplayTextObservable() { if (simpleStringProperty==null){ simpleStringProperty = new SimpleStringProperty(); simpleStringProperty.set(getDisplayText()); addDisplayTextListeners(this,(attributeParam, value) -> simpleStringProperty.set(getDisplayText())); } return simpleStringProperty; }
/** * Returns an Observable Property which contains the localized string for the given identifier. * * @param identifier the identifier * @return a property with the localized string */ public static ReadOnlyStringProperty getProperty(final String identifier) { ReadOnlyStringWrapper localizedProperty = new ReadOnlyStringWrapper(); addObserverFor(identifier, (locale, text) -> localizedProperty.set(text)); return localizedProperty.getReadOnlyProperty(); }
public ReadOnlyStringProperty keyValidityProperty() { if (keyValidity.get() == null && getKeyValidity() != null) { hookTrustDbPropertyChangeListener(); updateKeyValidityAndOwnerTrust(); } return keyValidity; }
public ReadOnlyStringProperty ownerTrustProperty() { if (ownerTrust.get() == null && getOwnerTrust() != null) { hookTrustDbPropertyChangeListener(); updateKeyValidityAndOwnerTrust(); } return ownerTrust; }
/** * The current error information associated with this component. * * @return read-only-property */ /*[deutsch] * Die assoziierte Fehlerinformation. * * @return read-only-property */ public ReadOnlyStringProperty errorProperty() { return this.errorProperty; }
/** * The customized editor prompt text. * * @return read-property * @see #setPromptText(String) */ /*[deutsch] * Der mit dem Texteditor assoziierte Aufforderungstext. * * @return read-property * @see #setPromptText(String) */ public ReadOnlyStringProperty promptTextProperty() { return this.promptProperty; }
public final ReadOnlyStringProperty textProperty() { return text.getReadOnlyProperty(); }
public static ReadOnlyStringProperty messageProperty(String name) { return get(name).messageProperty(); }
public ReadOnlyStringProperty stringRepresentationProperty() { return new SimpleStringProperty(toString()); }
@Override public ReadOnlyStringProperty stringRepresentationProperty() { return stringProperty; }
public ReadOnlyStringProperty sessionTokenProperty () { return sessionTokenProperty.getReadOnlyProperty(); }
ReadOnlyStringProperty attributeProperty() { return attributeWrapper.getReadOnlyProperty(); }
ReadOnlyStringProperty valueProperty() { return valueWrapper.getReadOnlyProperty(); }
public ReadOnlyStringProperty selectedStockIdentProperty() { return selectedStockIdent.getReadOnlyProperty(); }
ReadOnlyStringProperty indexDetailsProperty() { return indexDetails.getReadOnlyProperty(); }
ReadOnlyStringProperty indexMessageProperty() { return indexMessage.getReadOnlyProperty(); }
ReadOnlyStringProperty searchDetailsProperty() { return searchDetails.getReadOnlyProperty(); }
public ReadOnlyStringProperty getDisplayTextObservable(){ return data.getDisplayTextObservable(); }
public ReadOnlyStringProperty textProperty() { return text; }
public ReadOnlyStringProperty menuPathProperty() { return menuPath; }
public ReadOnlyStringProperty featureNameProperty() { return featureName; }
public ReadOnlyStringProperty textProperty() { return text.getReadOnlyProperty(); }
public ReadOnlyStringProperty nameProperty() { return name.getReadOnlyProperty(); }
public ReadOnlyStringProperty attributeNameProperty() { return attributeName.getReadOnlyProperty(); }
public ReadOnlyStringProperty regionNameProperty() { return regionName.getReadOnlyProperty(); }
public ReadOnlyStringProperty dimensionNameProperty() { return DimensionName.getReadOnlyProperty(); }
public ReadOnlyStringProperty parameterNameProperty() { return parameterName.getReadOnlyProperty(); }
public ReadOnlyStringProperty interactionNameProperty() { return interactionName.getReadOnlyProperty(); }
/** @return a string based date property, formatted by a settable formatter (default format will be an the default platform locale short date (e.g. MM/dd/yy). */ public ReadOnlyStringProperty dateStringProperty() { return dateString.getReadOnlyProperty(); }
public static void bindStatusText(ReadOnlyStringProperty statusProperty) { statusBar.textProperty().bind(statusProperty); }