本文整理了Java中javafx.scene.control.Label.getText()
方法的一些代码示例,展示了Label.getText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getText()
方法的具体详情如下:
包路径:javafx.scene.control.Label
类名称:Label
方法名:getText
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
@Override
public String toString(Label object) {
return object==null? "" : object.getText();
}
代码示例来源:origin: jfoenixadmin/JFoenix
@Override
public String toString(Label object) {
return object==null? "" : object.getText();
}
@Override
代码示例来源:origin: jfoenixadmin/JFoenix
public String getToast() {
return toast.getText();
}
代码示例来源:origin: jfoenixadmin/JFoenix
private final void scrollToYear() {
int yearIndex = Integer.parseInt(selectedYearLabel.getText()) - 1900 - 2;
yearsListView.scrollTo(yearIndex >= 0 ? yearIndex : yearIndex + 2);
}
代码示例来源:origin: jfoenixadmin/JFoenix
void updateValue() {
if (is24HourView) {
LocalTimeStringConverter localTimeStringConverter =
new LocalTimeStringConverter(FormatStyle.SHORT, Locale.GERMAN);
timePicker.setValue(localTimeStringConverter.fromString(selectedHourLabel.getText()
+ ":" + selectedMinLabel.getText()));
} else {
timePicker.setValue(LocalTime.parse(selectedHourLabel.getText() + ":" + selectedMinLabel.getText() + " " + period.get(), DateTimeFormatter.ofPattern("h:mm a").withLocale(Locale.ENGLISH)));
}
}
代码示例来源:origin: speedment/speedment
@Override
public void initialize(URL location, ResourceBundle resources) {
brand.logoLarge().map(Image::new).ifPresent(titleImage::setImage);
license.setText(license.getText().replace("{title}", infoComponent.getTitle()));
version.setText(infoComponent.getImplementationVersion());
external.setText(infoComponent.getLicenseName());
close.setOnAction(newCloseHandler());
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
if (newVal == TimeUnit.HOURS) {
angle.set(Math.toDegrees(2 * Math.PI / 12));
int tmp = Integer.parseInt(selectedHourLabel.getText());
if (is24HourView) {
if (tmp == 0 || tmp > 12) {
代码示例来源:origin: jfoenixadmin/JFoenix
Color.rgb(255, 255, 255, 0.87) : Color.rgb(0, 0, 0, 0.87));
selectedMinLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.87));
} else {
代码示例来源:origin: jfoenixadmin/JFoenix
Color.rgb(255, 255, 255, 0.87) : Color.rgb(0, 0, 0, 0.87));
selectedHourLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.87));
} else {
Color.rgb(255, 255, 255, 0.54) : Color.rgb(0, 0, 0, 0.54));
selectedHourLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.54));
} else {
代码示例来源:origin: jfoenixadmin/JFoenix
setTooltip(new Tooltip(((Label) item).getText()));
} else if (getText() != null) {
setTooltip(new Tooltip(getText()));
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
/**
*
* @return Selected simulation path.
*/
public String getSimulationFilePath() {
return this.pathYaml.getText();
}
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
/**
*
* @return Selected output folder
*/
private String getOutputFolder() {
return this.pathOut.getText();
}
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
@Override
public String toString() {
return "NoticeBoardMenu{" +
"title=" + title.getText() +
", type=" + type +
'}';
}
}
代码示例来源:origin: com.github.vatbub/common.view.tagarea
/**
* Get the current value of the tag
*
* @return the current value of the tag
*/
public String getValue() {
return textLabel.getText();
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* Can be used when forward editing the attribute for example
*
* @return
*/
public String getLabel() {
return editLabel.getText();
}
代码示例来源:origin: torakiki/pdfsam
copyButton.setOnAction(a -> {
ClipboardContent content = new ClipboardContent();
writeContent(Arrays.asList(pdfsam.name(), pdfsam.property(VERSION), runtime.getText(), memory.getText()))
.to(content);
Clipboard.getSystemClipboard().setContent(content);
代码示例来源:origin: com.jfoenix/jfoenix
void updateValue() {
if (is24HourView) {
LocalTimeStringConverter localTimeStringConverter =
new LocalTimeStringConverter(FormatStyle.SHORT, Locale.GERMAN);
timePicker.setValue(localTimeStringConverter.fromString(selectedHourLabel.getText()
+ ":" + selectedMinLabel.getText()));
} else {
timePicker.setValue(LocalTime.parse(selectedHourLabel.getText() + ":" + selectedMinLabel.getText() + " " + period.get(), DateTimeFormatter.ofPattern("h:mm a").withLocale(Locale.ENGLISH)));
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public String getSelectionLabel() {
return blocTitle != null && blocTitle.getLabel() != null && blocTitle.getLabel().getText() != null ? blocTitle.getLabel().getText() : "NO TITLE!";
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-demoapp-components
@Override
public Node present(IEmaginController controller, VLViewComponentXML configuration) {
Label label = (Label) super.present(controller, configuration);
String text = label.getText();
Platform.runLater(() -> {
label.setText(text.toUpperCase());
String pc = StringUtils.replace(text, " ", "_");
PseudoClass cc = PseudoClass.getPseudoClass(pc.toLowerCase());
label.pseudoClassStateChanged(cc, true);
});
return label;
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
getChildren().add(copyright);
NodeHelper.setTitle(copyright, configuration, (AbstractViewController) controller);
NodeHelper.styleClassSetAll(this, configuration);
NodeHelper.styleClassAddAll(copyright, configuration, "labelStyleClass", "copyright-label");
copyright.setText(cp + copyright.getText());
minimize();
}
内容来源于网络,如有侵权,请联系作者删除!