Mp3dings 
20100427

net.sourceforge.mp3dings.preferences
Class FilteredField

java.lang.Object
  extended by de.mospace.swing.JDoubleList.ListElement
      extended by net.sourceforge.mp3dings.preferences.FilteredField
All Implemented Interfaces:
EventListener, ChangeListener

public class FilteredField
extends JDoubleList.ListElement
implements ChangeListener

A single item representing a field in the FieldSelectorPanel JDoubleList.


Constructor Summary
FilteredField(Field field)
           
FilteredField(Field field, String fieldName, boolean mov)
          Creates a new instance of this class.
 
Method Summary
 Field getField()
          Returns the field attribute of this FilteredField.
 List getFilters()
           
 boolean isFiltered()
           
static FilteredField load(Preferences pref, Field field, BeanSet availableFilters)
           
 void save(Preferences p)
           
 void setFilters(List filterlist)
           
 void stateChanged(ChangeEvent e)
           
 String toString()
          Returns a string representation of a FilteredField object.
 
Methods inherited from class de.mospace.swing.JDoubleList.ListElement
getMovable, getObject, setMovable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilteredField

public FilteredField(Field field,
                     String fieldName,
                     boolean mov)
Creates a new instance of this class.

Parameters:
field - the field represented by this item
fieldName - the name of the field represented by this item
mov - whether this item can be moved from left to right and vice versa

FilteredField

public FilteredField(Field field)
Method Detail

toString

public String toString()
Returns a string representation of a FilteredField object.

Overrides:
toString in class Object

getField

public Field getField()
Returns the field attribute of this FilteredField.


stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

isFiltered

public boolean isFiltered()

getFilters

public List getFilters()

setFilters

public void setFilters(List filterlist)

save

public void save(Preferences p)

load

public static FilteredField load(Preferences pref,
                                 Field field,
                                 BeanSet availableFilters)

Mp3dings 
20100427