Package org.archive.io
Class ReadSourceEditor<T>
java.lang.Object
org.archive.io.ReadSourceEditor<T>
- All Implemented Interfaces:
PropertyEditor
public class ReadSourceEditor<T> extends Object implements PropertyEditor
PropertyEditor allowing Strings to become ConfigString instances
(implementing ReadSource). This eases inline specification of strings
in places where either a ConfigString or ConfigFile (or perhaps other
future ReadSource options) might otherwise occur.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReadSourceEditor()
-
Method Summary
Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener listener)
String
getAsText()
Component
getCustomEditor()
String
getJavaInitializationString()
String[]
getTags()
Object
getValue()
boolean
isPaintable()
void
paintValue(Graphics gfx, Rectangle box)
void
removePropertyChangeListener(PropertyChangeListener listener)
void
setAsText(String text)
void
setValue(Object value)
boolean
supportsCustomEditor()
-
Field Details
-
value
-
-
Constructor Details
-
ReadSourceEditor
public ReadSourceEditor()
-
-
Method Details
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfacePropertyEditor
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
-
getCustomEditor
- Specified by:
getCustomEditor
in interfacePropertyEditor
-
getJavaInitializationString
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
-
getTags
- Specified by:
getTags
in interfacePropertyEditor
-
getValue
- Specified by:
getValue
in interfacePropertyEditor
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintable
in interfacePropertyEditor
-
paintValue
- Specified by:
paintValue
in interfacePropertyEditor
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfacePropertyEditor
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Throws:
IllegalArgumentException
-
setValue
- Specified by:
setValue
in interfacePropertyEditor
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditor
in interfacePropertyEditor
-