Top Constructors Methods
com.sun.beans.editors

public Class ByteEditor

extends NumberEditor
Class Inheritance
Imports
java.beans.*

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getJavaInitializationString()

Overrides com.sun.beans.editors.NumberEditor.getJavaInitializationString.

Implements java.beans.PropertyEditor.getJavaInitializationString.

This method is intended for use when generating Java code to set the value of the property.

public void
setAsText(String
The string to be parsed.
text
)

Overrides java.beans.PropertyEditorSupport.setAsText.

Implements java.beans.PropertyEditor.setAsText.

Sets the property value by parsing a given String.

Constructor Detail

ByteEditorback to summary
public ByteEditor()

Method Detail

getJavaInitializationStringback to summary
public String getJavaInitializationString()

Overrides com.sun.beans.editors.NumberEditor.getJavaInitializationString.

Implements java.beans.PropertyEditor.getJavaInitializationString.

Doc from java.beans.PropertyEditorSupport.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:String

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

setAsTextback to summary
public void setAsText(String text) throws IllegalArgumentException

Overrides java.beans.PropertyEditorSupport.setAsText.

Implements java.beans.PropertyEditor.setAsText.

Doc from java.beans.PropertyEditorSupport.setAsText.

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:String

The string to be parsed.