All Packages    This Package  Previous  Next  

Class sqlj.runtime.profile.util.ProfileCustomizerEditor

java.lang.Object
   |
   +----java.beans.PropertyEditorSupport
           |
           +----sqlj.runtime.profile.util.ProfileCustomizerEditor

public class ProfileCustomizerEditor
extends PropertyEditorSupport
This class provides a text-editor for creating ProfileCustomizer instances from text strings. This editor does not provide graphical editing support.


Constructor Index

 o ProfileCustomizerEditor()

Method Index

 o getAsText()
 o setAsText(String)
Set the property value by parsing a given String.
 o setValue(Object)

Constructors

 o ProfileCustomizerEditor
 public ProfileCustomizerEditor()

Methods

 o getAsText
 public String getAsText()
Returns:
The property value as a string suitable for presentation to a human to edit.

Returns "null" is the value can't be expressed as a string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

Overrides:
getAsText in class PropertyEditorSupport
 o setAsText
 public void setAsText(String text) throws IllegalArgumentException
Set the property value by parsing a given String. It is expected that the string contains the name of a ProfileCustomizer class name, which can be instantiated via Beans.instantiate.

Parameters:
text - The string to be parsed
Throws: IllegalArgumentException
if the customizer cannot be instantiated.
Overrides:
setAsText in class PropertyEditorSupport
 o setValue
 public void setValue(Object value)
Overrides:
setValue in class PropertyEditorSupport

All Packages    This Package  Previous  Next