jaxx.demo.feature.databinding
Class DefaultDemoUIModel

java.lang.Object
  extended by jaxx.demo.feature.databinding.DefaultDemoUIModel
All Implemented Interfaces:
DemoUIModel

public class DefaultDemoUIModel
extends Object
implements DemoUIModel

Created: 3 déc. 2009

Version:
$Revision: 2118 $

Mise a jour: $Date: 2010-10-26 19:44:57 +0200 (Tue, 26 Oct 2010) $ par : $Author: tchemit $

Author:
tchemit

Field Summary
protected  Boolean f0
           
protected  Boolean f1
           
protected  File file
           
protected  File file1
           
protected static org.apache.commons.logging.Log log
           
protected  PropertyChangeSupport pcs
           
static String PROPERTY_F0
           
static String PROPERTY_F1
           
static String PROPERTY_FILE
           
static String PROPERTY_T1
           
protected  JToggleButton t0
           
protected  JToggleButton t1
           
 
Constructor Summary
DefaultDemoUIModel()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Register a general PropertyChangeListener.
 void addPropertyChangeListener(String property, PropertyChangeListener listener)
          Register a PropertyChangeListener.
 void firePropertyChange(String name, Object oldValue, Object 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.
 Boolean getF0()
           
 Boolean getF1()
           
 File getFile()
           
 File getFile1()
           
 JToggleButton getT0()
           
 JToggleButton getT1()
           
 Boolean isF0()
           
 Boolean isF1()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Unregister a general PropertyChangeListener.
 void removePropertyChangeListener(String property, PropertyChangeListener listener)
          Unregister a PropertyChangeListener.
 void setF0(Boolean newValue)
           
 void setF1(Boolean newValue)
           
 void setFile(File newValue)
           
 void setT1(JToggleButton newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected File file

file1

protected File file1

f1

protected Boolean f1

f0

protected Boolean f0

t1

protected JToggleButton t1

t0

protected JToggleButton t0

PROPERTY_T1

public static final String PROPERTY_T1
See Also:
Constant Field Values

PROPERTY_F1

public static final String PROPERTY_F1
See Also:
Constant Field Values

PROPERTY_F0

public static final String PROPERTY_F0
See Also:
Constant Field Values

PROPERTY_FILE

public static final String PROPERTY_FILE
See Also:
Constant Field Values

pcs

protected final PropertyChangeSupport pcs

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

DefaultDemoUIModel

public DefaultDemoUIModel()
Method Detail

getF0

public Boolean getF0()

getF1

public Boolean getF1()

getFile

public File getFile()
Specified by:
getFile in interface DemoUIModel

getFile1

public File getFile1()

getT0

public JToggleButton getT0()
Specified by:
getT0 in interface DemoUIModel

getT1

public JToggleButton getT1()
Specified by:
getT1 in interface DemoUIModel

isF0

public Boolean isF0()
Specified by:
isF0 in interface DemoUIModel

isF1

public Boolean isF1()
Specified by:
isF1 in interface DemoUIModel

setF0

public void setF0(Boolean newValue)
Specified by:
setF0 in interface DemoUIModel

setF1

public void setF1(Boolean newValue)
Specified by:
setF1 in interface DemoUIModel

setFile

public void setFile(File newValue)
Specified by:
setFile in interface DemoUIModel

setT1

public void setT1(JToggleButton newValue)

firePropertyChange

public void firePropertyChange(String name,
                               Object oldValue,
                               Object newValue)
Description copied from interface: DemoUIModel
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.

Specified by:
firePropertyChange in interface DemoUIModel
Parameters:
name - the name of the property which changed
oldValue - the old value of the property
newValue - the new value of the property

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: DemoUIModel
Register a general PropertyChangeListener.

Specified by:
addPropertyChangeListener in interface DemoUIModel
Parameters:
listener - the listener to register

addPropertyChangeListener

public void addPropertyChangeListener(String property,
                                      PropertyChangeListener listener)
Description copied from interface: DemoUIModel
Register a PropertyChangeListener. for the given propertyName.

Specified by:
addPropertyChangeListener in interface DemoUIModel
Parameters:
property - the property name to listen
listener - the listener to register

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: DemoUIModel
Unregister a general PropertyChangeListener.

Specified by:
removePropertyChangeListener in interface DemoUIModel
Parameters:
listener - the listener to unregister

removePropertyChangeListener

public void removePropertyChangeListener(String property,
                                         PropertyChangeListener listener)
Description copied from interface: DemoUIModel
Unregister a PropertyChangeListener. for the given propertyName.

Specified by:
removePropertyChangeListener in interface DemoUIModel
Parameters:
property - the property name to listen
listener - the listener to unregister


Copyright © 2008-2011 CodeLutin. All Rights Reserved.