| java.lang.Object jaxx.compiler.DataSource
DataSource | public class DataSource (Code) | | Represents a Java expression which fires a PropertyChangeEvent when it can be
determined that its value may have changed. Events are fired on a "best effort" basis, and events
may either be fired too often (the value has not actually changed) or not often enough (the value
changed but no event was fired).
|
DataSource | public DataSource(String id, String source, JAXXCompiler compiler)(Code) | | Creates a new data source. After creating a DataSource , use
DataSource.compile to cause it to function at runtime.
Parameters: id - the DataSource's id Parameters: source - the Java source code for the data source expression Parameters: compiler - the current JAXXCompiler |
compile | public boolean compile(String propertyChangeListenerCode) throws CompilerException(Code) | | Compiles the data source expression and listener. This method calls methods in JAXXCompiler
to add the Java code that performs the data source setup. Adding listeners to DataSource is
slightly more complicated than with ordinary classes, because DataSource only exists at compile
time. You must pass in a Java expression which evaluates to a PropertyChangeListener ; this
expression will be compiled and evaluated at runtime to yield the DataSource's listener.
Parameters: propertyChangeListenerCode - Java code snippet which evaluates to a PropertyChangeListener true if the expression has dependencies, false otherwise throws: CompilerException - if a compilation error occurs |
getDependencies | public Collection getDependencies()(Code) | | Returns a list of symbols on which this data source depends.
|
|
|