org.embl.ebi.escience.scuflui.facets
Class PropertyFetcher.Closure

java.lang.Object
  extended by org.embl.ebi.escience.scuflui.facets.PropertyFetcher.Closure
All Implemented Interfaces:
FacetFinderSPI.ColumnID
Enclosing class:
PropertyFetcher

public static final class PropertyFetcher.Closure
extends java.lang.Object
implements FacetFinderSPI.ColumnID


Constructor Summary
PropertyFetcher.Closure()
           
PropertyFetcher.Closure(java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a property change listener that will be informed whenever any property of the column alters that could affect the data the column would return.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 java.lang.Object[] getArgs()
           
 java.awt.Component getCustomiser(DataThing dataThing)
          Get a component able to customise this column, given a hint object, or null if the column is not customisable.
 java.lang.reflect.Method getMethod()
           
 java.lang.String getName()
          Get a human readable name for this column.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a property change listener.
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void setArgs(java.lang.Object[] args)
           
 void setMethod(java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFetcher.Closure

public PropertyFetcher.Closure()

PropertyFetcher.Closure

public PropertyFetcher.Closure(java.lang.reflect.Method method,
                               java.lang.Object[] args)
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: FacetFinderSPI.ColumnID
Add a property change listener that will be informed whenever any property of the column alters that could affect the data the column would return.

Specified by:
addPropertyChangeListener in interface FacetFinderSPI.ColumnID
Parameters:
listener - the PropertyChangeListener to register

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: FacetFinderSPI.ColumnID
Remove a property change listener.

Specified by:
removePropertyChangeListener in interface FacetFinderSPI.ColumnID
Parameters:
listener - the PropertyChangeListener to unregister

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface FacetFinderSPI.ColumnID

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface FacetFinderSPI.ColumnID

getMethod

public java.lang.reflect.Method getMethod()

setMethod

public void setMethod(java.lang.reflect.Method method)

getArgs

public java.lang.Object[] getArgs()

setArgs

public void setArgs(java.lang.Object[] args)

getCustomiser

public java.awt.Component getCustomiser(DataThing dataThing)
Description copied from interface: FacetFinderSPI.ColumnID
Get a component able to customise this column, given a hint object, or null if the column is not customisable.

Specified by:
getCustomiser in interface FacetFinderSPI.ColumnID
Parameters:
dataThing - an example DataThing this column will act upon
Returns:
a Component suitable for editing this column

getName

public java.lang.String getName()
Description copied from interface: FacetFinderSPI.ColumnID
Get a human readable name for this column. This may change as column properties change.

Specified by:
getName in interface FacetFinderSPI.ColumnID
Returns:
a name for this column