当前位置: 首页>>代码示例>>Java>>正文


Java ReadOnlyStringProperty类代码示例

本文整理汇总了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");
        }
    });
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:24,代码来源:TitleTest.java

示例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);
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:25,代码来源:RefexDataTypeNodeDetails.java

示例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;
}
 
开发者ID:factoryfx,项目名称:factoryfx,代码行数:10,代码来源:Data.java

示例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();
}
 
开发者ID:openbase,项目名称:bco.bcozy,代码行数:14,代码来源:LanguageSelection.java

示例5: keyValidityProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty keyValidityProperty() {
	if (keyValidity.get() == null && getKeyValidity() != null) {
		hookTrustDbPropertyChangeListener();
		updateKeyValidityAndOwnerTrust();
	}
	return keyValidity;
}
 
开发者ID:subshare,项目名称:subshare,代码行数:8,代码来源:PgpKeyTreeItem.java

示例6: ownerTrustProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty ownerTrustProperty() {
	if (ownerTrust.get() == null && getOwnerTrust() != null) {
		hookTrustDbPropertyChangeListener();
		updateKeyValidityAndOwnerTrust();
	}
	return ownerTrust;
}
 
开发者ID:subshare,项目名称:subshare,代码行数:8,代码来源:PgpKeyTreeItem.java

示例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;
}
 
开发者ID:MenoData,项目名称:Time4J,代码行数:14,代码来源:CalendarPicker.java

示例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;
}
 
开发者ID:MenoData,项目名称:Time4J,代码行数:16,代码来源:CalendarPicker.java

示例9: textProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public final ReadOnlyStringProperty textProperty() {
    return text.getReadOnlyProperty();
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:4,代码来源:PrintablePageSkin.java

示例10: messageProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public static ReadOnlyStringProperty messageProperty(String name) {
	return get(name).messageProperty();
}
 
开发者ID:HearthProject,项目名称:OneClient,代码行数:4,代码来源:DownloadManager.java

示例11: stringRepresentationProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty stringRepresentationProperty() {
  return new SimpleStringProperty(toString());
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:4,代码来源:Expression.java

示例12: stringRepresentationProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
@Override
public ReadOnlyStringProperty stringRepresentationProperty() {
  return stringProperty;
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:5,代码来源:ConcreteCell.java

示例13: sessionTokenProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
public ReadOnlyStringProperty sessionTokenProperty () {
	return sessionTokenProperty.getReadOnlyProperty();
}
 
开发者ID:FrancisG-Massey,项目名称:Capstone2016,代码行数:4,代码来源:LoginService.java

示例14: attributeProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
ReadOnlyStringProperty attributeProperty() {
  return attributeWrapper.getReadOnlyProperty();
}
 
开发者ID:comtel2000,项目名称:opc-ua-client,代码行数:4,代码来源:AttributeItem.java

示例15: valueProperty

import javafx.beans.property.ReadOnlyStringProperty; //导入依赖的package包/类
ReadOnlyStringProperty valueProperty() {
  return valueWrapper.getReadOnlyProperty();
}
 
开发者ID:comtel2000,项目名称:opc-ua-client,代码行数:4,代码来源:AttributeItem.java


注:本文中的javafx.beans.property.ReadOnlyStringProperty类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。