net.sf.doolin.gui.swing
Class AbstractFilePath

java.lang.Object
  extended by net.sf.doolin.gui.swing.AbstractFilePath
All Implemented Interfaces:
IFilePath
Direct Known Subclasses:
ComboFilePath, TextFilePath

public abstract class AbstractFilePath
extends Object
implements IFilePath

Abstract implementation for a IFilePath that provides support for the listeners.

Author:
Damien Coraboeuf

Constructor Summary
AbstractFilePath()
           
 
Method Summary
 void addFilePathListener(FilePathListener filePathListener)
          Adds a listener for the path change
protected  void fireNewPath(String text)
          Fires to all listeners that the path has changed.
 void removeFilePathListener(FilePathListener filePathListener)
          Removes a listener for the path change
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.doolin.gui.swing.IFilePath
getComponent, getFilePath, setEnabled, setFile
 

Constructor Detail

AbstractFilePath

public AbstractFilePath()
Method Detail

addFilePathListener

public void addFilePathListener(FilePathListener filePathListener)
Description copied from interface: IFilePath
Adds a listener for the path change

Specified by:
addFilePathListener in interface IFilePath
Parameters:
filePathListener - Listener

fireNewPath

protected void fireNewPath(String text)
Fires to all listeners that the path has changed.

Parameters:
text - Next text
See Also:
FilePathListener.filePathChanged(String)

removeFilePathListener

public void removeFilePathListener(FilePathListener filePathListener)
Description copied from interface: IFilePath
Removes a listener for the path change

Specified by:
removeFilePathListener in interface IFilePath
Parameters:
filePathListener - Listener


Copyright © 2011. All Rights Reserved.