SPT Core API

com.sptci.echo.tree.filesystem
Class DirectoryListener

java.lang.Object
  extended by com.sptci.echo.Listener<FileSystemPane>
      extended by com.sptci.echo.tree.filesystem.DirectoryListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public class DirectoryListener
extends Listener<FileSystemPane>

An ActionListener used to handle events generated when user selects a directory displayed in a FileSystemTree component.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: DirectoryListener.java 4858 2009-08-11 15:52:14Z rakesh $
Author:
Rakesh 2009-06-14
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sptci.echo.Listener
logger
 
Constructor Summary
DirectoryListener()
           
 
Method Summary
 void actionPerformed(ActionEvent actionEvent)
          Display the list of files under the current directory in the child component.
protected  File getFile(ActionEvent event)
          Return the directory that was selected in the tree.
 
Methods inherited from class com.sptci.echo.Listener
checkText, checkTextComponent, checkView, getApplication, getView, processFatalException, processFatalException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryListener

public DirectoryListener()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent actionEvent)
Display the list of files under the current directory in the child component.


getFile

protected File getFile(ActionEvent event)
Return the directory that was selected in the tree.

Parameters:
event - The action event fired from the tree.
Returns:
The directory that was selected.

SPT Core API