APIdia Launch Partner
Top Constructors Methods
com.sun.beans.editors

public Class StringEditor

extends PropertyEditorSupport
Class Inheritance
Imports
java.beans.*

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getJavaInitializationString()

Overrides java.beans.PropertyEditorSupport.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 text)

Overrides java.beans.PropertyEditorSupport.setAsText.

Implements java.beans.PropertyEditor.setAsText.

Sets the property value by parsing a given String.

Inherited from java.beans.PropertyEditorSupport:
addPropertyChangeListenerfirePropertyChangegetAsTextgetCustomEditorgetSourcegetTagsgetValueisPaintablepaintValueremovePropertyChangeListenersetSourcesetValuesupportsCustomEditor

Constructor Detail

StringEditorback to summary
public StringEditor()

Method Detail

getJavaInitializationStringback to summary
public String getJavaInitializationString()

Overrides java.beans.PropertyEditorSupport.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.

Annotations
@Override
setAsTextback to summary
public void setAsText(String text)

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.

Annotations
@Override