KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > beans > VetoableChangeSupport

java.beans
Class VetoableChangeSupport

java.lang.Object
  extended by java.beans.VetoableChangeSupport
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code

public void addVetoableChangeListener(VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addVetoableChangeListener(String propertyName,
                                      VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void fireVetoableChange(PropertyChangeEvent evt)
                        throws PropertyVetoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void fireVetoableChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)
                        throws PropertyVetoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[590]Vetoable Change
By Anonymous on 2003/12/28 12:54:45  Rate
public void setRunning ( boolean b )  
    {  
       if  ( running != b )  
        {  
         firePropertyChange ( "running", running, b ) ; 
         try  {  
       //firePropertyChange ( "running", running, b ) ; 
       fireVetoableChange ( "running", new Boolean ( running ) , new Boolean  ( b )  ) ; 
        }  catch  ( PropertyVetoException e )   {  
       // TODO Auto-generated catch block 
       //b = !b; 
        
       firePropertyChange ( "running", b, running ) ; 
       e.printStackTrace (  ) ; 
      }  
        }  
       running = b; 
       if ( running )  
        {  start (  ) ;  }  
       else 
        {  stop (  ) ;  }  
    } 


public void fireVetoableChange(String propertyName,
                               int oldValue,
                               int newValue)
                        throws PropertyVetoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void fireVetoableChange(String propertyName,
                               Object oldValue,
                               Object newValue)
                        throws PropertyVetoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public VetoableChangeListener[] getVetoableChangeListeners()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public VetoableChangeListener[] getVetoableChangeListeners(String propertyName)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean hasListeners(String propertyName)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeVetoableChangeListener(VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeVetoableChangeListener(String propertyName,
                                         VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public VetoableChangeSupport(Object sourceBean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags