本文整理汇总了Java中javafx.beans.property.ReadOnlyStringProperty类的典型用法代码示例。如果您正苦于以下问题:Java ReadOnlyStringProperty类的具体用法?Java ReadOnlyStringProperty怎么用?Java ReadOnlyStringProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReadOnlyStringProperty类属于javafx.beans.property包,在下文中一共展示了ReadOnlyStringProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: titlePropertyTest
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
@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");
}
});
}
示例2: addUpdateParentListListener
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
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);
}
示例3: getDisplayTextObservable
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
@JsonIgnore
private ReadOnlyStringProperty getDisplayTextObservable() {
if (simpleStringProperty==null){
simpleStringProperty = new SimpleStringProperty();
simpleStringProperty.set(getDisplayText());
addDisplayTextListeners(this,(attributeParam, value) -> simpleStringProperty.set(getDisplayText()));
}
return simpleStringProperty;
}
示例4: getProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
/**
* 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();
}
示例5: keyValidityProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty keyValidityProperty() {
if (keyValidity.get() == null && getKeyValidity() != null) {
hookTrustDbPropertyChangeListener();
updateKeyValidityAndOwnerTrust();
}
return keyValidity;
}
示例6: ownerTrustProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty ownerTrustProperty() {
if (ownerTrust.get() == null && getOwnerTrust() != null) {
hookTrustDbPropertyChangeListener();
updateKeyValidityAndOwnerTrust();
}
return ownerTrust;
}
示例7: errorProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
/**
* 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;
}
示例8: promptTextProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
/**
* 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;
}
示例9: textProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public final ReadOnlyStringProperty textProperty() {
return text.getReadOnlyProperty();
}
示例10: messageProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public static ReadOnlyStringProperty messageProperty(String name) {
return get(name).messageProperty();
}
示例11: stringRepresentationProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty stringRepresentationProperty() {
return new SimpleStringProperty(toString());
}
示例12: stringRepresentationProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
@Override
public ReadOnlyStringProperty stringRepresentationProperty() {
return stringProperty;
}
示例13: sessionTokenProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty sessionTokenProperty () {
return sessionTokenProperty.getReadOnlyProperty();
}
示例14: attributeProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
ReadOnlyStringProperty attributeProperty() {
return attributeWrapper.getReadOnlyProperty();
}
示例15: valueProperty
import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
ReadOnlyStringProperty valueProperty() {
return valueWrapper.getReadOnlyProperty();
}