List of usage examples for java.beans PropertyChangeSupport PropertyChangeSupport
public PropertyChangeSupport(Object sourceBean)
From source file:org.apache.openjpa.lib.conf.ConfigurationImpl.java
public void addPropertyChangeListener(PropertyChangeListener listener) { if (_changeSupport == null) _changeSupport = new PropertyChangeSupport(this); _changeSupport.addPropertyChangeListener(listener); }
From source file:org.cropinformatics.common.BaseIdentification.java
protected void initialise() { uniqueIdentifier = null; name = null; propertyChangeSupport = new PropertyChangeSupport(this); }
From source file:org.cropinformatics.ui.viewers.list.ListViewerFilter.java
public ListViewerFilter(String uniqueIdentifier, String name, String description) { setUniqueIdentifier(uniqueIdentifier); setName(name);/* w ww. j a v a 2 s . co m*/ setDescription(description); propertyChangeSupport = new PropertyChangeSupport(this); }
From source file:org.cubictest.model.customstep.CustomTestStepParameter.java
public void addListener(PropertyChangeListener listener) { if (listeners == null) listeners = new PropertyChangeSupport(this); listeners.addPropertyChangeListener(listener); }
From source file:org.cubictest.model.customstep.CustomTestStepValue.java
private PropertyChangeSupport getPropertyChangeListeners() { if (propertyChangeListeners == null) { propertyChangeListeners = new PropertyChangeSupport(this); }/*from w w w .j a v a 2 s . co m*/ return propertyChangeListeners; }
From source file:org.cubictest.model.Identifier.java
private PropertyChangeSupport getListeners() { if (listeners == null) listeners = new PropertyChangeSupport(this); return listeners; }
From source file:org.cubictest.model.PropertyAwareObject.java
protected PropertyChangeSupport getListeners() { if (listeners == null) listeners = new PropertyChangeSupport(this); return listeners; }
From source file:org.entrystore.repository.config.PropertiesConfiguration.java
/** * Initializes the object with an empty Configuration. * /*from w w w . ja v a 2 s .co m*/ * @param configName * Name of the configuration (appears as comment in the * configuration file). */ public PropertiesConfiguration(String configName) { this.configName = configName; config = new SortedProperties(); pcs = new PropertyChangeSupport(this); }
From source file:org.fife.rsta.ac.js.JavaScriptParser.java
/** * Constructor./* w w w . j av a 2 s. c om*/ */ public JavaScriptParser(JavaScriptLanguageSupport langSupport, RSyntaxTextArea textArea) { this.langSupport = langSupport; support = new PropertyChangeSupport(this); result = new DefaultParseResult(this); }
From source file:org.fourthline.cling.model.DefaultServiceManager.java
protected PropertyChangeSupport createPropertyChangeSupport(T serviceImpl) throws Exception { Method m;/*from w w w . j av a 2s . co m*/ if ((m = Reflections.getGetterMethod(serviceImpl.getClass(), "propertyChangeSupport")) != null && PropertyChangeSupport.class.isAssignableFrom(m.getReturnType())) { log.fine("Service implementation instance offers PropertyChangeSupport, using that: " + serviceImpl.getClass().getName()); return (PropertyChangeSupport) m.invoke(serviceImpl); } log.fine("Creating new PropertyChangeSupport for service implementation: " + serviceImpl.getClass().getName()); return new PropertyChangeSupport(serviceImpl); }