public void setAsText(final String text)
   {
      Object newValue = Float.valueOf(text);
      setValue(newValue);
   }
public void setAsText(final String text)
   {
      Object newValue = Float.valueOf(text);
      setValue(newValue);
   }
public void setAsText ( final String text ) { Object newValue = Float . valueOf ( text ) ; setValue ( newValue ) ; }
Map the argument text into and Integer using Integer.valueOf.
Map the argument text into and Integer using Integer . valueOf .