@Override public String toString(Label object) { return object==null? "" : object.getText(); }
@Override public String toString(Label object) { return object==null? "" : object.getText(); } @Override
public String getToast() { return toast.getText(); }
private final void scrollToYear() { int yearIndex = Integer.parseInt(selectedYearLabel.getText()) - 1900 - 2; yearsListView.scrollTo(yearIndex >= 0 ? yearIndex : yearIndex + 2); }
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))); } }
@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()); } }
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) {
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 {
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 {
setTooltip(new Tooltip(((Label) item).getText())); } else if (getText() != null) { setTooltip(new Tooltip(getText()));
/** * * @return Selected simulation path. */ public String getSimulationFilePath() { return this.pathYaml.getText(); }
/** * * @return Selected output folder */ private String getOutputFolder() { return this.pathOut.getText(); }
@Override public String toString() { return "NoticeBoardMenu{" + "title=" + title.getText() + ", type=" + type + '}'; } }
/** * Get the current value of the tag * * @return the current value of the tag */ public String getValue() { return textLabel.getText(); }
/** * Can be used when forward editing the attribute for example * * @return */ public String getLabel() { return editLabel.getText(); }
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))); } }
@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; }
/** * @{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(); }