org.apache.geronimo.common.propertyeditor
Class TextPropertyEditorSupport

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
All Implemented Interfaces:
PropertyEditor
Direct Known Subclasses:
AbstractNameEditor, AbstractNameQueryEditor, BigDecimalEditor, BooleanEditor, ByteEditor, CharacterEditor, ClassEditor, DateEditor, DoubleEditor, FileEditor, FloatEditor, InetAddressEditor, IntegerEditor, LoginDomainPrincipalInfo.LoginDomainPrincipalEditor, LoginModuleControlFlagEditor, LongEditor, MapEditor, MapOfSets.MapOfSetsEditor, ObjectNameEditor, PrincipalInfo.PrincipalEditor, PropertiesEditor, RealmPrincipalInfo.RealmPrincipalEditor, ShortEditor, URIEditor, URLEditor

public class TextPropertyEditorSupport
extends PropertyEditorSupport

A base class for text based properties. This class basically does nothing but override the defaute PropertyEditorSupport setAsText() method, which throws an IllegalArgumentException when called.


Constructor Summary
protected TextPropertyEditorSupport()
          Default no-argument constructor.
protected TextPropertyEditorSupport(Object source)
          A property editor with a provided source object.
 
Method Summary
 void setAsText(String value)
          By default, set the property value by directly passing the provided string value through to the setValue() method.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPropertyEditorSupport

protected TextPropertyEditorSupport(Object source)
A property editor with a provided source object.

Parameters:
source - The source of the editted information.

TextPropertyEditorSupport

protected TextPropertyEditorSupport()
Default no-argument constructor.

Method Detail

setAsText

public void setAsText(String value)
By default, set the property value by directly passing the provided string value through to the setValue() method.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
value - The new property value, as a string.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.