com.ibm.commons.iloader.node
Class DataNodeAdapter

java.lang.Object
  extended by com.ibm.commons.iloader.node.DataNodeAdapter
All Implemented Interfaces:
DataNodeListener, java.util.EventListener

public class DataNodeAdapter
extends java.lang.Object
implements DataNodeListener

The DataNode adapter is empty implementation of the DataNodeListener interface. May be used when a client wants a default implementation for each method.

See Also:
DataNodeListener

Constructor Summary
DataNodeAdapter()
           
 
Method Summary
 void onCurrentChanged(DataNode source)
          Notify the view that the node current data have changed.
 void onInvalidate(DataNode source)
          Notify the view that the node data have completly changed.
 void onItemInserted(DataNode source, int position)
          Notify the view that one object have been inserted into the node.
 void onItemRemoved(DataNode source, int position)
          Notify the view that one object have been removed into the node.
 void onMetaDataChanged(DataNode source)
          Notify the view that the node meta data have changed.
 void onModifiedChanged(DataNode source)
          Notify the view that the modified flag has changed.
 void onReadOnlyChanged(DataNode source)
          Notify the view that the readonly mode has changed.
 void onUserNotification(DataNode source, java.lang.String key, java.lang.Object param)
          Genneralized notification message.
 void onValueChanged(DataNode source, int record, java.lang.Object object, IAttribute attribute)
          Notify the view that almost one property of the current object in the node have changed.
 void onValueChanged2(DataNode source, int record, java.lang.Object object, IMember member)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataNodeAdapter

public DataNodeAdapter()
Method Detail

onValueChanged2

public void onValueChanged2(DataNode source,
                            int record,
                            java.lang.Object object,
                            IMember member)
Specified by:
onValueChanged2 in interface DataNodeListener

onMetaDataChanged

public void onMetaDataChanged(DataNode source)
Description copied from interface: DataNodeListener
Notify the view that the node meta data have changed. The meta data describe all the columns (properties) of the data node.

Specified by:
onMetaDataChanged in interface DataNodeListener

onModifiedChanged

public void onModifiedChanged(DataNode source)
Description copied from interface: DataNodeListener
Notify the view that the modified flag has changed.

Specified by:
onModifiedChanged in interface DataNodeListener

onReadOnlyChanged

public void onReadOnlyChanged(DataNode source)
Description copied from interface: DataNodeListener
Notify the view that the readonly mode has changed.

Specified by:
onReadOnlyChanged in interface DataNodeListener

onInvalidate

public void onInvalidate(DataNode source)
Description copied from interface: DataNodeListener
Notify the view that the node data have completly changed. This event is called when something has changed, without more precision. May be one or more record have been deleted/inserted, or all the rows have becamed changed (for example, when a node has been synchronized with a parent node).
At this stage, the new row count and the current record number can be safetly got from the data node.

Specified by:
onInvalidate in interface DataNodeListener

onCurrentChanged

public void onCurrentChanged(DataNode source)
Description copied from interface: DataNodeListener
Notify the view that the node current data have changed. The new current record can be safetly accessed from the data node.

Specified by:
onCurrentChanged in interface DataNodeListener

onValueChanged

public void onValueChanged(DataNode source,
                           int record,
                           java.lang.Object object,
                           IAttribute attribute)
Description copied from interface: DataNodeListener
Notify the view that almost one property of the current object in the node have changed. The new property value may be accessed from the data node. If more that one property have changed, the the property parameter is null. Do not rely on a non null property parameter !

Specified by:
onValueChanged in interface DataNodeListener
record - the record number that have been modified

onItemInserted

public void onItemInserted(DataNode source,
                           int position)
Description copied from interface: DataNodeListener
Notify the view that one object have been inserted into the node. The new row count has been increased and a new row has been inserted at a specific position.
If the record has been inserted at the begining of the data node, then the parameter value is '0'
If the record has been inserted at the end of the data node then the parameter value equals to the data node item count.

Specified by:
onItemInserted in interface DataNodeListener
position - the position where the item has been inserted

onItemRemoved

public void onItemRemoved(DataNode source,
                          int position)
Description copied from interface: DataNodeListener
Notify the view that one object have been removed into the node. Warning : the data node item count is already updated when this method is called.

Specified by:
onItemRemoved in interface DataNodeListener
position - the position of the removed item

onUserNotification

public void onUserNotification(DataNode source,
                               java.lang.String key,
                               java.lang.Object param)
Description copied from interface: DataNodeListener
Genneralized notification message. This message has no precise signification, which is application defined. It is ignored by all the standard graphical objects.

Specified by:
onUserNotification in interface DataNodeListener
key - the user defined key
param - the user defined param (may be null!)