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

public Class BooleanEditor

extends PropertyEditorSupport
Class Inheritance
Imports
java.beans.*

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getAsText()

Overrides java.beans.PropertyEditorSupport.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Gets the property value as a string suitable for presentation to a human to edit.

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 String[]
getTags()

Overrides java.beans.PropertyEditorSupport.getTags.

Implements java.beans.PropertyEditor.getTags.

If the property value must be one of a set of known tagged values, then this method should return an array of the tag values.

private String
getValidName(boolean value)

private boolean
isValidName(boolean value, String name)

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

Constructor Detail

BooleanEditorback to summary
public BooleanEditor()

Method Detail

getAsTextback to summary
public String getAsText()

Overrides java.beans.PropertyEditorSupport.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Doc from java.beans.PropertyEditorSupport.getAsText.

Gets the property value as a string suitable for presentation to a human to edit.

Annotations
@Override
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
getTagsback to summary
public String[] getTags()

Overrides java.beans.PropertyEditorSupport.getTags.

Implements java.beans.PropertyEditor.getTags.

Doc from java.beans.PropertyEditorSupport.getTags.

If the property value must be one of a set of known tagged values, then this method should return an array of the tag values. This can be used to represent (for example) enum values. If a PropertyEditor supports tags, then it should support the use of setAsText with a tag value as a way of setting the value.

Annotations
@Override
getValidNameback to summary
private String getValidName(boolean value)
isValidNameback to summary
private boolean isValidName(boolean value, String name)
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.

Annotations
@Override