當前位置: 首頁>>代碼示例>>Java>>正文


Java StringProperty類代碼示例

本文整理匯總了Java中javafx.beans.property.StringProperty的典型用法代碼示例。如果您正苦於以下問題:Java StringProperty類的具體用法?Java StringProperty怎麽用?Java StringProperty使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


StringProperty類屬於javafx.beans.property包,在下文中一共展示了StringProperty類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: HighlightCell

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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));
}
 
開發者ID:CrazyBBB,項目名稱:tenhou-visualizer,代碼行數:8,代碼來源:HighlightCell.java

示例2: build

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:28,代碼來源:ChartItemBuilder.java

示例3: build

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:worldheatmap,代碼行數:32,代碼來源:LocationBuilder.java

示例4: build

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:36,代碼來源:XYSeriesBuilder.java

示例5: bind

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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());
        }
    });
}
 
開發者ID:comtel2000,項目名稱:mokka7,代碼行數:14,代碼來源:SessionManager.java

示例6: titleProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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();

}
 
開發者ID:whitewoodcity,項目名稱:xbrowser,代碼行數:10,代碼來源:Chart.java

示例7: FormData

import javafx.beans.property.StringProperty; //導入依賴的package包/類
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);

}
 
開發者ID:tomrom95,項目名稱:GameAuthoringEnvironment,代碼行數:9,代碼來源:FormData.java

示例8: getEditor

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public StringProperty getEditor() {
	return this.editor.textProperty();
}
 
開發者ID:Yeregorix,項目名稱:EpiStats,代碼行數:4,代碼來源:GenerationPanel.java

示例9: textProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public final StringProperty textProperty()
{
    return text;
}
 
開發者ID:ben12,項目名稱:infxnity,代碼行數:5,代碼來源:IFXContentBindingTest.java

示例10: commentProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
@Override
public StringProperty commentProperty() {
  return this.comment;
}
 
開發者ID:VerifAPS,項目名稱:stvs,代碼行數:5,代碼來源:SpecificationColumn.java

示例11: idProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public StringProperty idProperty() {
    return id;
}
 
開發者ID:whitewoodcity,項目名稱:xbrowser,代碼行數:4,代碼來源:Form.java

示例12: themaProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public StringProperty themaProperty() {
  return thema;
}
 
開發者ID:JonasDralle,項目名稱:MediathekView14Concept,代碼行數:4,代碼來源:EntryModel.java

示例13: titleProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public final StringProperty titleProperty() {
    return title;
}
 
開發者ID:hendrikebbers,項目名稱:ExtremeGuiMakeover,代碼行數:4,代碼來源:Movie.java

示例14: typeProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public StringProperty typeProperty(){
	return type;
}
 
開發者ID:Ptrk25,項目名稱:CDN-FX-2.2,代碼行數:4,代碼來源:Ticket.java

示例15: nameProperty

import javafx.beans.property.StringProperty; //導入依賴的package包/類
public StringProperty nameProperty() {
    return name;
}
 
開發者ID:assemblits,項目名稱:dynamo,代碼行數:4,代碼來源:Load.java


注:本文中的javafx.beans.property.StringProperty類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。