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

项目:tenhou-visualizer    文件:HighlightCell.java   
public HighlightCell(StringProperty textToHighlight) {
    super();

    this.backgroundProperty().bind(Bindings.when(Bindings.and(Bindings.isNotNull(textToHighlight), Bindings.equal(itemProperty(), textToHighlight)))
            .then(HIGHLIGHT_BACKGROUND)
            .otherwise(Background.EMPTY));
}
项目:charts    文件:ChartItemBuilder.java   
public final ChartItem build() {
    final ChartItem ITEM = new ChartItem();
    for (String key : properties.keySet()) {
        if ("name".equals(key)) {
            ITEM.setName(((StringProperty) properties.get(key)).get());
        } else if ("value".equals(key)) {
            ITEM.setValue(((DoubleProperty) properties.get(key)).get());
        } else if("fill".equals(key)) {
            ITEM.setFill(((ObjectProperty<Color>) properties.get(key)).get());
        } else if("stroke".equals(key)) {
            ITEM.setStroke(((ObjectProperty<Color>) properties.get(key)).get());
        } else if("textColor".equals(key)) {
            ITEM.setTextColor(((ObjectProperty<Color>) properties.get(key)).get());
        } else if("timestamp".equals(key)) {
            ITEM.setTimestamp(((ObjectProperty<Instant>) properties.get(key)).get());
        } else if ("timestampDateTime".equals(key)) {
            ITEM.setTimestamp(((ObjectProperty<ZonedDateTime>) properties.get(key)).get());
        } else if("symbol".equals(key)) {
            ITEM.setSymbol(((ObjectProperty<Symbol>) properties.get(key)).get());
        } else if("animated".equals(key)) {
            ITEM.setAnimated(((BooleanProperty) properties.get(key)).get());
        } else if("animationDuration".equals(key)) {
            ITEM.setAnimationDuration(((LongProperty) properties.get(key)).get());
        }
    }
    return ITEM;
}
项目:worldheatmap    文件:LocationBuilder.java   
public final Location build() {
    final Location LOCATION = new Location();

    for (String key : properties.keySet()) {
        if ("name".equals(key)) {
            LOCATION.setName(((StringProperty) properties.get(key)).get());
        } else if ("latitude".equals(key)) {
            LOCATION.setLatitude(((DoubleProperty) properties.get(key)).get());
        } else if ("longitude".equals(key)) {
            LOCATION.setLongitude(((DoubleProperty) properties.get(key)).get());
        } else if ("info".equals(key)) {
            LOCATION.setInfo(((StringProperty) properties.get(key)).get());
        } else if ("color".equals(key)) {
            LOCATION.setColor(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("iconCode".equals(key)) {
            LOCATION.setIconCode(((ObjectProperty<Ikon>) properties.get(key)).get());
        } else if ("iconSize".equals(key)) {
            LOCATION.setIconSize(((IntegerProperty) properties.get(key)).get());
        } else if ("mouseEnterHandler".equals(key)) {
            LOCATION.setMouseEnterHandler(((ObjectProperty<EventHandler<MouseEvent>>) properties.get(key)).get());
        } else if ("mousePressHandler".equals(key)) {
            LOCATION.setMousePressHandler(((ObjectProperty<EventHandler<MouseEvent>>) properties.get(key)).get());
        } else if ("mouseReleaseHandler".equals(key)) {
            LOCATION.setMouseReleaseHandler(((ObjectProperty<EventHandler<MouseEvent>>) properties.get(key)).get());
        } else if ("mouseExitHandler".equals(key)) {
            LOCATION.setMouseExitHandler(((ObjectProperty<EventHandler<MouseEvent>>) properties.get(key)).get());
        }

    }
    return LOCATION;
}
项目:charts    文件:XYSeriesBuilder.java   
public final XYSeries build() {
    final XYSeries SERIES = new XYSeries();

    if (properties.keySet().contains("itemsArray")) {
        SERIES.setItems(((ObjectProperty<XYItem[]>) properties.get("itemsArray")).get());
    }
    if(properties.keySet().contains("itemsList")) {
        SERIES.setItems(((ObjectProperty<List<XYItem>>) properties.get("itemsList")).get());
    }

    for (String key : properties.keySet()) {
        if ("name".equals(key)) {
            SERIES.setName(((StringProperty) properties.get(key)).get());
        } else if ("fill".equals(key)) {
            SERIES.setFill(((ObjectProperty<Paint>) properties.get(key)).get());
        } else if ("stroke".equals(key)) {
            SERIES.setStroke(((ObjectProperty<Paint>) properties.get(key)).get());
        } else if ("symbolFill".equals(key)) {
            SERIES.setSymbolFill(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("symbolStroke".equals(key)) {
            SERIES.setSymbolStroke(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("symbol".equals(key)) {
            SERIES.setSymbol(((ObjectProperty<Symbol>) properties.get(key)).get());
        } else if ("chartType".equals(key)) {
            SERIES.setChartType(((ObjectProperty<ChartType>) properties.get(key)).get());
        } else if ("symbolsVisible".equals(key)) {
            SERIES.setSymbolsVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("symbolSize".equals(key)) {
            SERIES.setSymbolSize(((DoubleProperty) properties.get(key)).get());
        } else if ("strokeWidth".equals(key)) {
            SERIES.setStrokeWidth(((DoubleProperty) properties.get(key)).get());
        }
    }
    return SERIES;
}
项目:mokka7    文件:SessionManager.java   
public void bind(final StringProperty property, final String propertyName) {
    String value = props.getProperty(propertyName);
    if (value != null) {
        property.set(value);
    }

    property.addListener(new InvalidationListener() {
        @Override
        public void invalidated(Observable o) {
            props.setProperty(propertyName, property.getValue());
        }
    });
}
项目:xbrowser    文件:Chart.java   
public StringProperty titleProperty()throws InterruptedException, ExecutionException{
    if(Platform.isFxApplicationThread()){
        return body.titleProperty();
    }
    final FutureTask<StringProperty> task = new FutureTask<>(()-> body.titleProperty());
    Platform.runLater(task);
    return task.get();

}
项目:GameAuthoringEnvironment    文件:FormData.java   
public FormData (String key, List<String> values) {
    List<StringProperty> valuesP = new ArrayList<StringProperty>();
    for (String value : values) {
        valuesP.add(new SimpleStringProperty(value));
    }
    init(key, valuesP);

}
项目:EpiStats    文件:GenerationPanel.java   
public StringProperty getEditor() {
    return this.editor.textProperty();
}
项目:infxnity    文件:IFXContentBindingTest.java   
public final StringProperty textProperty()
{
    return text;
}
项目:stvs    文件:SpecificationColumn.java   
@Override
public StringProperty commentProperty() {
  return this.comment;
}
项目:xbrowser    文件:Form.java   
public StringProperty idProperty() {
    return id;
}
项目:ExtremeGuiMakeover    文件:Feature.java   
public StringProperty idProperty() {
    return id;
}
项目:MediathekView14Concept    文件:EntryModel.java   
public StringProperty themaProperty() {
  return thema;
}
项目:ExtremeGuiMakeover    文件:Movie.java   
public final StringProperty titleProperty() {
    return title;
}
项目:CDN-FX-2.2    文件:Ticket.java   
public StringProperty typeProperty(){
    return type;
}
项目:dynamo    文件:Load.java   
public StringProperty nameProperty() {
    return name;
}
项目:WebPLP    文件:SimpleASMFile.java   
@Override
public StringProperty contentProperty()
{
    return contentProperty;
}
项目:drd    文件:LabeledText.java   
public StringProperty textProperty() {
    return text.textProperty();
}
项目:drd    文件:InventoryRecord.java   
public StringProperty itemIdProperty() {
    return itemId;
}
项目:maven-package-gui-installer    文件:MavenBean.java   
public StringProperty artifactIdProperty() {
    return artifactId;
}
项目:drd    文件:ShopEntry.java   
public StringProperty descriptionProperty() {
    return description;
}
项目:ServerBrowser    文件:SampServer.java   
public StringProperty playersAndMaxPlayersProperty() {
    return actualPlayersProperty;
}
项目:shuffleboard    文件:AbstractDataSource.java   
@Override
public StringProperty nameProperty() {
  return name;
}
项目:CSLMusicModStationCreator    文件:FilePicker.java   
public StringProperty textProperty() {
    return path.textProperty();
}
项目:voogasalad-ltub    文件:LevelData.java   
public StringProperty getNameTextProperty() {
    return null;
}
项目:xbrowser    文件:Label.java   
public StringProperty textproperty()throws InterruptedException,ExecutionException {
    return textProperty();
}
项目:MultiAxisCharts    文件:MultiAxisChart.java   
public final StringProperty nameProperty() {
    return name;
}
项目:ExtremeGuiMakeover    文件:Movie.java   
public final StringProperty youTubeProperty() {
    return youTube;
}
项目:drd    文件:LabeledProgressBar.java   
public StringProperty labelProperty() {
    return label.textProperty();
}
项目:redisfx    文件:KeyTabController.java   
public StringProperty typeProperty() {
    return this.type;
}
项目:stvs    文件:Code.java   
public StringProperty sourcecodeProperty() {
  return sourceCodeProperty;
}
项目:marathonv5    文件:CheckBoxListViewSample.java   
public final StringProperty nameProperty() {
    return this.name;
}
项目:aem-epic-tool    文件:Login.java   
/**
 * @return the host
 */
public StringProperty hostProperty() {
    return host;
}
项目:MediathekView14Concept    文件:EntryModel.java   
public StringProperty senderProperty() {
  return sender;
}
项目:aem-epic-tool    文件:Login.java   
/**
 * @return the password
 */
public StringProperty passwordProperty() {
    return password;
}
项目:WebtoonDownloadManager    文件:NaverWebtoonSelectService.java   
public StringProperty sundayProperty() {
    return sunday;
}
项目:HotaruFX    文件:LibraryItem.java   
public StringProperty codeProperty() {
    return code;
}
项目:ExtremeGuiMakeover    文件:Movie.java   
public final StringProperty posterFileNameProperty() {
    return posterFileName;
}
项目:drd    文件:Test.java   
public StringProperty name2Property() {
return name2;
}
项目:ExtremeGuiMakeover    文件:MovieView.java   
public StringProperty filterTextProperty() {
    return filterText;
}