SPT Core API

com.sptci.epng.editabletree
Class SaveListener

java.lang.Object
  extended by com.sptci.epng.editabletree.Listener
      extended by com.sptci.epng.editabletree.SaveListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public class SaveListener
extends Listener

The default action listener used to add a new node under the selected node.

&coopy; Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: SaveListener.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2007-05-05
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sptci.epng.editabletree.Listener
app, logger
 
Constructor Summary
SaveListener()
           
 
Method Summary
protected  Treeable updateStore(Node node)
          Create a new Treeable instance using the and persist to the JDO data store.
protected  void updateView(Node node, Treeable treeable)
          Update the tree model with a new node representing the newly created treeable object.
 
Methods inherited from class com.sptci.epng.editabletree.Listener
actionPerformed, getFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveListener

public SaveListener()
Method Detail

updateStore

protected Treeable updateStore(Node node)
Create a new Treeable instance using the and persist to the JDO data store.

Specified by:
updateStore in class Listener
Parameters:
node - The node that represents the parent of the child being added.
Returns:
The model object that was updated in the data store.
See Also:
Listener.getFactory(com.sptci.epng.editabletree.Node)

updateView

protected void updateView(Node node,
                          Treeable treeable)
Update the tree model with a new node representing the newly created treeable object.

Specified by:
updateView in class Listener
Parameters:
node - The node that represents the parent of the child being added.
treeable - The model object that is to be represented by the new child node.

SPT Core API