public class

ShortEditor

extends NumberEditor
java.lang.Object
   ↳ java.beans.PropertyEditorSupport
     ↳ sun.beans.editors.NumberEditor
       ↳ sun.beans.editors.ShortEditor

Summary

Public Constructors
ShortEditor()
Public Methods
String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.
void setAsText(String text)
Sets the property value by parsing a given String.
[Expand]
Inherited Methods
From class sun.beans.editors.NumberEditor
From class java.beans.PropertyEditorSupport
From class java.lang.Object
From interface java.beans.PropertyEditor

Public Constructors

public ShortEditor ()

Public Methods

public String getJavaInitializationString ()

This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.

Example results are "2", "new Color(127,127,34)", "Color.orange", etc.

Returns
  • A fragment of Java code representing an initializer for the current value.

public void setAsText (String text)

Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.

Parameters
text The string to be parsed.