All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaxx.demo.feature.databinding.DemoUIModel Maven / Gradle / Ivy

There is a newer version: 3.0-alpha-6
Show newest version
/*
 * #%L
 * JAXX :: Demo
 * 
 * $Id: DemoUIModel.java 2225 2011-02-19 20:15:00Z tchemit $
 * $HeadURL: http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.5.29/jaxx-demo/src/main/java/jaxx/demo/feature/databinding/DemoUIModel.java $
 * %%
 * Copyright (C) 2008 - 2010 CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */
package jaxx.demo.feature.databinding;

import javax.swing.JToggleButton;
import java.beans.PropertyChangeListener;
import java.io.File;

/**
 * Created: 2 déc. 2009
 *
 * @author tchemit 
 * @version $Revision: 2225 $
 *          

* Mise a jour: $Date: 2011-02-19 21:15:00 +0100 (Sat, 19 Feb 2011) $ par : * $Author: tchemit $ */ public interface DemoUIModel { Boolean isF0(); Boolean isF1(); void setF0(Boolean b); void setF1(Boolean b); JToggleButton getT0(); JToggleButton getT1(); File getFile(); void setFile(File newValue); /** * All JAXXObject implements are capable of broadcasting PropertyChangeEvent, and * furthermore (for technical reasons) must allow code in outside packages, specifically the JAXX runtime, * to trigger these events. * * @param name the name of the property which changed * @param oldValue the old value of the property * @param newValue the new value of the property */ void firePropertyChange(String name, Object oldValue, Object newValue); /** * Register a general {@link PropertyChangeListener}. * * @param listener the listener to register */ void addPropertyChangeListener(PropertyChangeListener listener); /** * Register a {@link PropertyChangeListener}. for the given {@code propertyName}. * * @param property the property name to listen * @param listener the listener to register */ void addPropertyChangeListener(String property, PropertyChangeListener listener); /** * Unregister a general {@link PropertyChangeListener}. * * @param listener the listener to unregister */ void removePropertyChangeListener(PropertyChangeListener listener); /** * Unregister a {@link PropertyChangeListener}. for the given {@code propertyName}. * * @param property the property name to listen * @param listener the listener to unregister */ void removePropertyChangeListener(String property, PropertyChangeListener listener); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy