Class PWFloatText


  • public class PWFloatText
    extends PWText
    Instances of this class are text box to type floats
    • Constructor Detail

      • PWFloatText

        public PWFloatText​(java.lang.String label,
                           java.lang.String propertyKey)
        Constructor
        Parameters:
        label - associated label
        propertyKey - associated key
    • Method Detail

      • verifyEntry

        private boolean verifyEntry​(java.lang.String entry,
                                    int keyCode)
        Check if an entry is a float
        Parameters:
        entry - text typed by the user
        keyCode - key code
        Returns:
        true if the user typed a float value, false otherwise
      • check

        public void check()
        Description copied from class: PWWidget
        Check if the property can be binded to the widget
        Specified by:
        check in class PWWidget
        See Also:
        PWWidget.check()
      • convertValue

        public java.lang.Object convertValue()
        Specified by:
        convertValue in class PWText
        Returns:
        the value of the data typed by the user in the correct format
        See Also:
        PWText.convertValue()