com.altair.hwm.toolkit.binding
Class HWMPropertyAdapter

java.lang.Object
  extended by com.altair.hwm.toolkit.binding.HWMPropertyAdapter
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class HWMPropertyAdapter
extends java.lang.Object
implements java.beans.PropertyChangeListener

Title: HWMPropertyAdapter

Description: This class listens to the property change of the bean. This is used to bind a property of a source bean to a similar type (data type) of property of a target bean.

Company: Altair Engineering, Inc.


Constructor Summary
HWMPropertyAdapter()
          Constructor
 
Method Summary
 void AddListener()
          Adds this class as a property change listener
 void Init(HWMBindingInfo hwmBindingInfo, java.lang.Object objBeanSource, java.lang.Object objBeanTarget)
          This function does all the work of "advising" to a property change.
 void propertyChange(java.beans.PropertyChangeEvent propChangeEvt)
          This is a PropertyChangeListener class.
 void RemoveListener()
          Removes this class as a property change listener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMPropertyAdapter

public HWMPropertyAdapter()
Constructor

Method Detail

AddListener

public void AddListener()
                 throws java.lang.NoSuchMethodException,
                        java.lang.reflect.InvocationTargetException,
                        java.lang.IllegalAccessException
Adds this class as a property change listener

Throws:
NoSuchMethodException, - InvocationTargetException, IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

RemoveListener

public void RemoveListener()
                    throws java.lang.NoSuchMethodException,
                           java.lang.reflect.InvocationTargetException,
                           java.lang.IllegalAccessException
Removes this class as a property change listener

Throws:
NoSuchMethodException, - InvocationTargetException, IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

Init

public void Init(HWMBindingInfo hwmBindingInfo,
                 java.lang.Object objBeanSource,
                 java.lang.Object objBeanTarget)
          throws java.lang.NoSuchMethodException,
                 java.lang.reflect.InvocationTargetException,
                 java.lang.IllegalAccessException
This function does all the work of "advising" to a property change. Adds itself as a listener to property changes on the source bean

Parameters:
hwmBindingInfo - The binding info contains the info about which property in src bean is to be bound to which property in target bean
objBeanSorce - The source bean
objBeanTarget - The target bean
Throws:
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent propChangeEvt)
This is a PropertyChangeListener class. This method gets called whenever a property gets changed in the class that is being listened to

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
propChangeEvt - The property change event object (see java help for more info)