LanguageSelection.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:bco.bcozy 作者:
/**
 * 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号