Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class AbstractBeanCustomizer

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.Bean
      extended by net.sourceforge.mp3dings.utils.AbstractBeanCustomizer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanShellFilterCustomizer, ChecksumFactoryCustomizer, CounterCustomizer, NumericFilterCustomizer, StringReplacerCustomizer, StringSelectorCustomizer, SubstringFilterCustomizer

public abstract class AbstractBeanCustomizer
extends Bean

A filter that accepts or rejects a numeric value depending on whether this value is inside or outside a given numeric range.

Version:
$Revision: 1.16 $ ($Date: 2007/03/29 16:03:02 $)
Author:
Moritz Ringler
See Also:
Serialized Form

Field Summary
protected  Bean bean
          Description of the Field
protected  net.sourceforge.mp3dings.utils.AbstractBeanCustomizer.BeanUpdater beanUpdater
           
protected  Map editors
           
protected static String VALUE
           
 
Fields inherited from class net.sourceforge.mp3dings.utils.Bean
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME
 
Constructor Summary
AbstractBeanCustomizer(Bean model)
          Constructs a new AbstractBeanCustomizer.
 
Method Summary
 Bean getModel()
          Gets the model attribute of the AbstractBeanCustomizer object
protected  Component getPropertyEditor(String property, boolean readOnly, Object[] constraints)
           
protected  Component getPropertyEditor(String property, Object[] constraints)
          Gets the propertyEditor attribute of the AbstractBeanCustomizer object
abstract  Component getUI()
          Gets the uI attribute of the AbstractBeanCustomizer object
protected  void setModel(Bean model)
           
 
Methods inherited from class net.sourceforge.mp3dings.utils.Bean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getName, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bean

protected Bean bean
Description of the Field


beanUpdater

protected net.sourceforge.mp3dings.utils.AbstractBeanCustomizer.BeanUpdater beanUpdater

VALUE

protected static final String VALUE
See Also:
Constant Field Values

editors

protected Map editors
Constructor Detail

AbstractBeanCustomizer

public AbstractBeanCustomizer(Bean model)
Constructs a new AbstractBeanCustomizer.

Parameters:
model - Description of the Parameter
Method Detail

getPropertyEditor

protected Component getPropertyEditor(String property,
                                      Object[] constraints)
Gets the propertyEditor attribute of the AbstractBeanCustomizer object

Parameters:
property - Description of the Parameter
constraints - Description of the Parameter
Returns:
The propertyEditor value

getPropertyEditor

protected Component getPropertyEditor(String property,
                                      boolean readOnly,
                                      Object[] constraints)
Parameters:
property - Description of the Parameter
readOnly - Description of the Parameter
constraints - Description of the Parameter
Returns:
null if the editor could not be created

getModel

public Bean getModel()
Gets the model attribute of the AbstractBeanCustomizer object

Returns:
The model value

setModel

protected void setModel(Bean model)
Parameters:
model - The new model value
Throws:
NullPointerException - if model is null
IllegalArgumentException - if the new model's class is not the same as or a subclass of the old model's.

getUI

public abstract Component getUI()
Gets the uI attribute of the AbstractBeanCustomizer object

Returns:
The uI value

Mp3dings 
20100427