List of usage examples for java.beans PropertyChangeSupport PropertyChangeSupport
public PropertyChangeSupport(Object sourceBean)
From source file:org.protempa.AbstractPropositionDefinition.java
@Override public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { if (this.changes == null) { this.changes = new PropertyChangeSupport(this); }/*from w w w . j a v a 2 s . c o m*/ this.changes.addPropertyChangeListener(propertyName, listener); }
From source file:org.protempa.MinMaxGapFunction.java
public MinMaxGapFunction(Integer minimumGap, Unit minimumGapUnit, Integer maximumGap, Unit maximumGapUnit) { this.changes = new PropertyChangeSupport(this); this.minimumGapUnits = minimumGapUnit; setMinimumGap(minimumGap);/*from w w w . ja va 2 s . c o m*/ this.maximumGapUnits = maximumGapUnit; setMaximumGap(maximumGap); }
From source file:org.protempa.proposition.AbstractProposition.java
protected void initializePropertyChangeSupport() { this.changes = new PropertyChangeSupport(this); }
From source file:org.protempa.query.DefaultQueryBuilder.java
public DefaultQueryBuilder() { this.changes = new PropertyChangeSupport(this); this.propDefs = EMPTY_PROP_DEF_ARRAY; this.keyIds = ArrayUtils.EMPTY_STRING_ARRAY; this.propIds = ArrayUtils.EMPTY_STRING_ARRAY; this.termIds = new And[0]; this.queryMode = Query.DEFAULT_QUERY_MODE; }
From source file:org.protempa.SimpleGapFunction.java
/** * Initializes a gap function with a maximum gap and units. * /*from w w w .j a v a 2 s . c om*/ * @param maximumGap the maximum gap {@link Integer}. Must be non-negative. * If set to zero, the gap function always will return <code>false</code>. * @param maximumGapUnit a {@link Unit}. A value of <code>null</code> is * defined by the {@link Granularity} of the data. */ public SimpleGapFunction(Integer maximumGap, Unit maximumGapUnit) { if (maximumGap != null && maximumGap.compareTo(ZERO) < 0) { throw new IllegalArgumentException("maximumGap must be null or >= 0"); } this.maximumGapUnits = maximumGapUnit; this.maximumGap = maximumGap; initRelation(); this.changes = new PropertyChangeSupport(this); }
From source file:org.sleuthkit.autopsy.casemodule.Case.java
/** * Gets a PropertyChangeSupport object. The PropertyChangeSupport object * returned is not used by instances of this class and does not have any * PropertyChangeListeners./*from w ww . jav a2 s. c o m*/ * * @return A new PropertyChangeSupport object. * * @deprecated Do not use. */ @Deprecated public static PropertyChangeSupport getPropertyChangeSupport() { return new PropertyChangeSupport(Case.class); }
From source file:org.talend.designer.runprocess.ProcessMessageManager.java
/** * DOC amaumont ProcessMessageManager constructor comment. *//* w w w.java 2 s .co m*/ public ProcessMessageManager() { super(); String line = RunProcessPlugin.getDefault().getPluginPreferences() .getString(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT); if (!"".equals(line) && line != null) { lineLimit = (Integer.parseInt(line)); if (lineLimit <= 0) { lineLimit = 1; // can't have 0 size buffer } messages = new BoundedFifoBuffer(lineLimit); } else { messages = new BoundedFifoBuffer(LIMIT_MESSAGES); } pcsDelegate = new PropertyChangeSupport(this); }
From source file:pcgen.system.PropertyContext.java
protected PropertyContext(String name, PropertyContext parent) { this.name = name; this.support = new PropertyChangeSupport(this); this.parent = parent; this.properties = (parent == null) ? new Properties() : parent.properties; }
From source file:pcgen.system.PropertyContext.java
/** * Create a new PropertyContext with a supplied properties object. As * the property object is supplied, it is expected that the parent will * normally be null./* w w w.j a va 2 s . c o m*/ * * @param name The filename of the context. Normally ends in .ini * @param parent The parent context, normally null * @param properties The properties object to be used. */ protected PropertyContext(String name, PropertyContext parent, Properties properties) { this.name = name; this.support = new PropertyChangeSupport(this); this.parent = parent; this.properties = properties; }
From source file:uno.informatics.data.pojo.PropertyHandler.java
public PropertyHandler() { propertyChangeSupport = new PropertyChangeSupport(this); }