|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.epng.editabletree.Listener
public abstract class Listener
An abstract listener class used to provide common logic to the default
save and delete actions associated with
adding or deleting nodes.
&coopy; Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected JDOApplication |
app
A reference to the JDO specific application instance. |
protected static Logger |
logger
The logger to use to log errors or messages to. |
| Constructor Summary | |
|---|---|
Listener()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
The action listener implementation. |
protected Object |
getFactory(Node node)
Fetch the repository object used to interact with the data store. |
protected abstract Treeable |
updateStore(Node node)
The method that is used to update the data store. |
protected abstract void |
updateView(Node node,
Treeable treeable)
The method that is used ot update the tree once the data store has been updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger logger
protected final JDOApplication app
| Constructor Detail |
|---|
public Listener()
| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
Node
of the event.getSource and perform the appropriate
operations.
actionPerformed in interface ActionListenerupdateStore(com.sptci.epng.editabletree.Node),
updateView(com.sptci.epng.editabletree.Node, com.sptci.jdo.Treeable)protected Object getFactory(Node node)
node - The parent node from which the action was triggered.
protected abstract Treeable updateStore(Node node)
node - The parent node object from which the action was initiated.
protected abstract void updateView(Node node,
Treeable treeable)
node - The parent node object from which the action was initiated.treeable - The model object that has been updated in the data
store.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||