List of usage examples for java.beans PropertyChangeSupport PropertyChangeSupport
public PropertyChangeSupport(Object sourceBean)
From source file:BeanArrayList.java
/** * This contructs a new BeanArrayList with PropertyChangeEvent support. * @param indexPropertyName the property name of the parent object to fire events for * @param changeOwner the object change events should come from * @param source Collection to prepopulate from. *//*from w w w .ja va 2 s .co m*/ public BeanArrayList(String indexPropertyName, Object changeOwner, Collection<T> source) { this(source); this.indexPropertyName = indexPropertyName; this.changes = new PropertyChangeSupport(changeOwner); }
From source file:com.eviware.soapui.impl.rest.OAuth2Profile.java
public OAuth2Profile(OAuth2ProfileContainer oAuth2ProfileContainer, OAuth2ProfileConfig configuration) { this.oAuth2ProfileContainer = oAuth2ProfileContainer; this.configuration = configuration; pcs = new PropertyChangeSupport(this); setDefaultAccessTokenPosition();/*from w w w . j a v a 2 s . co m*/ setDefaultRefreshMethod(); setDefaultAccessTokenStatus(); }
From source file:eu.ggnet.dwoss.customer.priv.OldCustomer.java
/** * Add PropertyChangeListener.// w ww .j av a 2 s. c o m * * @param listener */ public void addPropertyChangeListener(PropertyChangeListener listener) { if (propertyChangeSupport == null) propertyChangeSupport = new PropertyChangeSupport(this); propertyChangeSupport.addPropertyChangeListener(listener); }
From source file:com.anrisoftware.prefdialog.core.AbstractFieldComponent.java
/** * Sets the component of this field./*from w w w .j a v a2s . c o m*/ * * @param component * the {@link Component}. * * @param parentObject * the parent object of this field. * * @param fieldName * the name of the field in the parent object. */ protected AbstractFieldComponent(ComponentType component, Object parentObject, String fieldName) { this.component = component; this.parentObject = parentObject; this.fieldName = fieldName; this.childFields = new ArrayList<FieldComponent<?>>(); this.mnemonic = null; this.mnemonicIndex = -1; this.vetoableSupport = new VetoableChangeSupport(this); this.propertySupport = new PropertyChangeSupport(this); }
From source file:com.googlecode.vfsjfilechooser2.plaf.basic.BasicVFSDirectoryModel.java
/** * Adds a PropertyChangeListener to the listener list. The listener is * registered for all bound properties of this class. * <p>// w w w . j a v a2s .com * If <code>listener</code> is <code>null</code>, * no exception is thrown and no action is performed. * * @param listener the property change listener to be added * * @see #removePropertyChangeListener * @see #getPropertyChangeListeners * * @since 1.6 */ public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) { changeSupport = new PropertyChangeSupport(this); } changeSupport.addPropertyChangeListener(listener); }
From source file:org.jfree.data.general.Series.java
/** * Returns a clone of the series./*from w w w. ja v a 2 s . c o m*/ * <P> * Notes: * <ul> * <li>No need to clone the name or description, since String object is * immutable.</li> * <li>We set the listener list to empty, since the listeners did not * register with the clone.</li> * <li>Same applies to the PropertyChangeSupport instance.</li> * </ul> * * @return A clone of the series. * * @throws CloneNotSupportedException not thrown by this class, but * subclasses may differ. */ @Override public Object clone() throws CloneNotSupportedException { Series clone = (Series) super.clone(); clone.listeners = new EventListenerList(); clone.propertyChangeSupport = new PropertyChangeSupport(clone); clone.vetoableChangeSupport = new VetoableChangeSupport(clone); return clone; }
From source file:org.pentaho.reporting.designer.extensions.legacycharts.LegacyChartEditModel.java
public LegacyChartEditModel() { propertyChangeSupport = new PropertyChangeSupport(this); chartExpressionsModel = new DefaultComboBoxModel(); chartExpressionsModel.addListDataListener(new ChartExpressionTypeSelectionHandler()); primaryDataSourcesModel = new DefaultComboBoxModel(); primaryDataSourcesModel.addListDataListener(new PrimaryDataSourceSelectionHandler()); secondaryDataSourcesModel = new DefaultComboBoxModel(); secondaryDataSourcesModel.addListDataListener(new SecondaryDataSourceSelectionHandler()); populateExpressionSelectorModel(chartExpressionsModel, JFreeChart.class); }
From source file:blue.soundObject.jmask.Table.java
public void addPropertyChangeListener(PropertyChangeListener pcl) { if (propChangeSupport == null) { propChangeSupport = new PropertyChangeSupport(this); }/*from ww w. ja v a 2s . c o m*/ for (PropertyChangeListener listener : propChangeSupport.getPropertyChangeListeners()) { if (pcl == listener) { return; } } propChangeSupport.addPropertyChangeListener(pcl); }
From source file:com.t3.model.initiative.InitiativeList.java
/** @return Getter for pcs */ private PropertyChangeSupport getPCS() { if (pcs == null) pcs = new PropertyChangeSupport(this); return pcs;/*from www . ja v a 2s .c om*/ }
From source file:biz.wolschon.finance.jgnucash.panels.TaxReportPanel.java
/** * Add a PropertyChangeListener to the listener list. * The listener is registered for all properties. * * @param listener The PropertyChangeListener to be added *///from w w w .j av a2 s .c o m @Override public final void addPropertyChangeListener(final PropertyChangeListener listener) { if (myPropertyChange == null) { myPropertyChange = new PropertyChangeSupport(this); } myPropertyChange.addPropertyChangeListener(listener); }