Java 类javafx.beans.property.ReadOnlyStringProperty 实例源码

项目:openjfx-8u-dev-tests    文件:TitleTest.java   
@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");
        }
    });
}
项目:ISAAC    文件:RefexDataTypeNodeDetails.java   
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);
}
项目:factoryfx    文件:Data.java   
@JsonIgnore
private ReadOnlyStringProperty getDisplayTextObservable() {
    if (simpleStringProperty==null){
        simpleStringProperty = new SimpleStringProperty();
        simpleStringProperty.set(getDisplayText());
        addDisplayTextListeners(this,(attributeParam, value) -> simpleStringProperty.set(getDisplayText()));
    }
    return simpleStringProperty;
}
项目:bco.bcozy    文件:LanguageSelection.java   
/**
 * 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();
}
项目:subshare    文件:PgpKeyTreeItem.java   
public ReadOnlyStringProperty keyValidityProperty() {
    if (keyValidity.get() == null && getKeyValidity() != null) {
        hookTrustDbPropertyChangeListener();
        updateKeyValidityAndOwnerTrust();
    }
    return keyValidity;
}
项目:subshare    文件:PgpKeyTreeItem.java   
public ReadOnlyStringProperty ownerTrustProperty() {
    if (ownerTrust.get() == null && getOwnerTrust() != null) {
        hookTrustDbPropertyChangeListener();
        updateKeyValidityAndOwnerTrust();
    }
    return ownerTrust;
}
项目:Time4J    文件:CalendarPicker.java   
/**
 * 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;
}
项目:Time4J    文件:CalendarPicker.java   
/**
 * 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;
}
项目:CalendarFX    文件:PrintablePageSkin.java   
public final ReadOnlyStringProperty textProperty() {
    return text.getReadOnlyProperty();
}
项目:OneClient    文件:DownloadManager.java   
public static ReadOnlyStringProperty messageProperty(String name) {
    return get(name).messageProperty();
}
项目:stvs    文件:Expression.java   
public ReadOnlyStringProperty stringRepresentationProperty() {
  return new SimpleStringProperty(toString());
}
项目:stvs    文件:ConcreteCell.java   
@Override
public ReadOnlyStringProperty stringRepresentationProperty() {
  return stringProperty;
}
项目:Capstone2016    文件:LoginService.java   
public ReadOnlyStringProperty sessionTokenProperty () {
    return sessionTokenProperty.getReadOnlyProperty();
}
项目:opc-ua-client    文件:AttributeItem.java   
ReadOnlyStringProperty attributeProperty() {
  return attributeWrapper.getReadOnlyProperty();
}
项目:opc-ua-client    文件:AttributeItem.java   
ReadOnlyStringProperty valueProperty() {
  return valueWrapper.getReadOnlyProperty();
}
项目:dolphin-platform-master-detail-example    文件:MasterView.java   
public ReadOnlyStringProperty selectedStockIdentProperty() {
    return selectedStockIdent.getReadOnlyProperty();
}
项目:xltsearch    文件:Catalog.java   
ReadOnlyStringProperty indexDetailsProperty() {
    return indexDetails.getReadOnlyProperty();
}
项目:xltsearch    文件:Catalog.java   
ReadOnlyStringProperty indexMessageProperty() {
    return indexMessage.getReadOnlyProperty();
}
项目:xltsearch    文件:Catalog.java   
ReadOnlyStringProperty searchDetailsProperty() {
    return searchDetails.getReadOnlyProperty();
}
项目:factoryfx    文件:Data.java   
public ReadOnlyStringProperty getDisplayTextObservable(){
    return data.getDisplayTextObservable();
}
项目:qupath    文件:CommandFinderTools.java   
public ReadOnlyStringProperty textProperty() {
    return text;
}
项目:qupath    文件:CommandFinderTools.java   
public ReadOnlyStringProperty menuPathProperty() {
    return menuPath;
}
项目:qupath    文件:FeatureSelectionPanel.java   
public ReadOnlyStringProperty featureNameProperty() {
    return featureName;
}
项目:todomvcFX    文件:TodoItem.java   
public ReadOnlyStringProperty textProperty() {
    return text.getReadOnlyProperty();
}
项目:HlaListener    文件:TransportationFDD.java   
public ReadOnlyStringProperty nameProperty() {
    return name.getReadOnlyProperty();
}
项目:HlaListener    文件:ObjectInstanceFDD.java   
public ReadOnlyStringProperty nameProperty() {
    return name.getReadOnlyProperty();
}
项目:HlaListener    文件:RequestAttributeValueUpdateServiceController.java   
public ReadOnlyStringProperty attributeNameProperty() {
    return attributeName.getReadOnlyProperty();
}
项目:HlaListener    文件:RegionListController.java   
public ReadOnlyStringProperty regionNameProperty() {
    return regionName.getReadOnlyProperty();
}
项目:HlaListener    文件:ObjectInstanceAttributesController.java   
public ReadOnlyStringProperty attributeNameProperty() {
    return attributeName.getReadOnlyProperty();
}
项目:HlaListener    文件:DimensionsListController.java   
public ReadOnlyStringProperty dimensionNameProperty() {
    return DimensionName.getReadOnlyProperty();
}
项目:HlaListener    文件:ParameterListController.java   
public ReadOnlyStringProperty parameterNameProperty() {
    return parameterName.getReadOnlyProperty();
}
项目:HlaListener    文件:InteractionsListController.java   
public ReadOnlyStringProperty interactionNameProperty() {
    return interactionName.getReadOnlyProperty();
}
项目:HlaListener    文件:AttributeRegionCollectionController.java   
public ReadOnlyStringProperty attributeNameProperty() {
    return attributeName.getReadOnlyProperty();
}
项目:HlaListener    文件:AttributeRegionCollectionController.java   
public ReadOnlyStringProperty regionNameProperty() {
    return regionName.getReadOnlyProperty();
}
项目:HlaListener    文件:InstanceAttributeRegionCollectionController.java   
public ReadOnlyStringProperty attributeNameProperty() {
    return attributeName.getReadOnlyProperty();
}
项目:HlaListener    文件:InstanceAttributeRegionCollectionController.java   
public ReadOnlyStringProperty regionNameProperty() {
    return regionName.getReadOnlyProperty();
}
项目:HlaListener    文件:AttributeListController.java   
public ReadOnlyStringProperty attributeNameProperty() {
    return attributeName.getReadOnlyProperty();
}
项目:mars-sim    文件:DatePicker.java   
/** @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();
}
项目:FluxFX    文件:TodoItem.java   
public ReadOnlyStringProperty textProperty() {
    return text.getReadOnlyProperty();
}
项目:polTool    文件:PolApplication.java   
public static void bindStatusText(ReadOnlyStringProperty statusProperty) {
    statusBar.textProperty().bind(statusProperty);
}