Example usage for java.beans PropertyChangeSupport PropertyChangeSupport

List of usage examples for java.beans PropertyChangeSupport PropertyChangeSupport

Introduction

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

Prototype

public PropertyChangeSupport(Object sourceBean) 

Source Link

Document

Constructs a PropertyChangeSupport object.

Usage

From source file:Clock.java

public Clock() {

    propertyChangeSupport = new PropertyChangeSupport(this);

    setBackground(Color.white);/*www .  j  a  v a 2  s . c  o  m*/
    setForeground(Color.black);

    (new Thread(this)).start();
}

From source file:de.bstreit.java.springaop.observablebean.PropertyChangeSupportWithInterface.java

PropertyChangeSupportWithInterface(Object observedObject) {
    pcs = new PropertyChangeSupport(observedObject);
    beanWrapper = new BeanWrapperImpl(observedObject);
}

From source file:com.platzerworld.e4.biergarten.model.mock.MockBiergarten.java

public MockBiergarten(String firstName, String lastName, String email) {
    super();/*from  ww w.  j  a  va2 s.c om*/
    this.firstName = firstName;
    this.lastName = lastName;
    this.email = email;
    propertyChangeSupport = new PropertyChangeSupport(this);
}

From source file:com.anrisoftware.prefdialog.miscswing.filechoosers.OpenFileDialogModel.java

public OpenFileDialogModel() {
    this.vetoableChange = new VetoableChangeSupport(this);
    this.propertySupport = new PropertyChangeSupport(this);
}

From source file:com.anrisoftware.globalpom.threads.listenablefuture.DefaultListenableFuture.java

/**
 * @see FutureTask#FutureTask(Callable)//from  www .  j a  v a 2s.  c  o m
 */
public DefaultListenableFuture(Callable<V> callable) {
    super(createExceptionCallable(callable));
    this.callable = callable;
    this.p = new PropertyChangeSupport(this);
    this.status = Status.RUNNING;
}

From source file:com.anrisoftware.prefdialog.miscswing.filechoosers.SaveFileDialogModel.java

public SaveFileDialogModel() {
    this.vetoableChange = new VetoableChangeSupport(this);
    this.propertySupport = new PropertyChangeSupport(this);
    this.attachFileExtension = true;
}

From source file:com.anrisoftware.globalpom.threads.listenablefuture.DefaultListenableFuture.java

/**
 * @see FutureTask#FutureTask(Runnable, Object)
 *//* ww  w . j a  v  a  2s .  c  o  m*/
public DefaultListenableFuture(Runnable runnable, V result) {
    super(createExceptionRunnable(runnable), result);
    this.runnable = runnable;
    this.result = result;
    this.p = new PropertyChangeSupport(this);
}

From source file:edu.chalmers.dat255.audiobookplayer.model.Bookshelf.java

/**
 * Creates an empty bookshelf.//from  w  ww  .  j  a v  a  2  s.  c om
 */
public Bookshelf() {
    books = new LinkedList<Book>();
    selectedBookIndex = NO_BOOK_SELECTED;

    pcs = new PropertyChangeSupport(this);
}

From source file:com.anrisoftware.prefdialog.miscswing.multichart.model.AbstractChartModel.java

private Object readResolve() {
    this.s = new EventListenerSupport<ChartModelListener>(ChartModelListener.class);
    this.p = new PropertyChangeSupport(this);
    return this;
}

From source file:de.awtools.bean.EventMediator.java

/**
 * Default-Konstruktor. Wird verwendet wenn eine Klasse von EventMediator
 * erben mchte.//from  w  w w .  ja  v a2  s .  c o m
 */
public EventMediator() {
    support = new PropertyChangeSupport(this);
}