Class LabeledUtils

java.lang.Object
de.edgesoft.edgeutils.javafx.LabeledUtils

public class LabeledUtils
extends java.lang.Object
Utilities for Labeled.

Legal stuff

Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de

This file is part of edgeutils.

edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.

Since:
0.11.0
Version:
0.13.0
Author:
Ekkart Kleinod
  • Constructor Summary

    Constructors 
    Constructor Description
    LabeledUtils()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String removeMnemonicMarker​(java.lang.String theText)
    Remove mnemonic marker from text.
    static void setText​(javafx.scene.control.Labeled theLabel, javafx.beans.property.ObjectProperty<java.time.LocalDate> theDate, java.lang.String thePattern)
    Sets text from ObjectProperty with a date.
    static void setText​(javafx.scene.control.Labeled theLabel, javafx.beans.property.StringProperty theText)
    Sets text from StringProperty.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setText

      public static void setText​(javafx.scene.control.Labeled theLabel, javafx.beans.property.StringProperty theText)
      Sets text from StringProperty.
      Parameters:
      theLabel - label to set text
      theText - text to set
    • setText

      public static void setText​(javafx.scene.control.Labeled theLabel, javafx.beans.property.ObjectProperty<java.time.LocalDate> theDate, java.lang.String thePattern)
      Sets text from ObjectProperty with a date.
      Parameters:
      theLabel - label to set text
      theDate - date to set
      thePattern - date pattern
    • removeMnemonicMarker

      public static java.lang.String removeMnemonicMarker​(java.lang.String theText)
      Remove mnemonic marker from text. TODO removing mnemonic markers by String.replace(CharSequence, CharSequence) feels clumsy, maybe there is another way?
      Parameters:
      theText - text
      Returns:
      text without mnemonic marker