Example usage for java.beans VetoableChangeSupport VetoableChangeSupport

List of usage examples for java.beans VetoableChangeSupport VetoableChangeSupport

Introduction

In this page you can find the example usage for java.beans VetoableChangeSupport VetoableChangeSupport.

Prototype

public VetoableChangeSupport(Object sourceBean) 

Source Link

Document

Constructs a VetoableChangeSupport object.

Usage

From source file:org.mili.core.properties.DefaultChangeSupport.java

/**
 * Instantiates a new default change support.
 *
 * @param source the source//w  w  w .j  av  a2s  . c  o  m
 */
protected DefaultChangeSupport(Object source) {
    Validate.notNull(source, "source cannot be null!");
    this.source = source;
    this.vcs = new VetoableChangeSupport(source);
    this.pcs = new PropertyChangeSupport(source);
}

From source file:zlicense.de.schlichtherle.xml.GenericCertificate.java

public final synchronized void addVetoableChangeListener(VetoableChangeListener paramVetoableChangeListener) {
    if (this.vetoableChangeSupport == null) {
        this.vetoableChangeSupport = new VetoableChangeSupport(this);
    }//from  www . j  a  va2  s  . co m
    this.vetoableChangeSupport.addVetoableChangeListener(paramVetoableChangeListener);
}