net.sf.doolin.gui.swing
Interface IFilePath

All Known Implementing Classes:
AbstractFilePath, ComboFilePath, TextFilePath

public interface IFilePath

Interface used by JFile to abstract the component that is used to display the selected file path.

Author:
Damien Coraboeuf

Method Summary
 void addFilePathListener(FilePathListener filePathListener)
          Adds a listener for the path change
 JComponent getComponent()
          Gets the actual component
 String getFilePath()
          Gets the current file path
 void removeFilePathListener(FilePathListener filePathListener)
          Removes a listener for the path change
 void setEnabled(boolean enabled)
          Enables or disables the file path component
 void setFile(File file)
          Sets the current file path
 

Method Detail

addFilePathListener

void addFilePathListener(FilePathListener filePathListener)
Adds a listener for the path change

Parameters:
filePathListener - Listener

getComponent

JComponent getComponent()
Gets the actual component

Returns:
Component

getFilePath

String getFilePath()
Gets the current file path

Returns:
File path or null

removeFilePathListener

void removeFilePathListener(FilePathListener filePathListener)
Removes a listener for the path change

Parameters:
filePathListener - Listener

setFile

void setFile(File file)
Sets the current file path

Parameters:
file - Selected file or null

setEnabled

void setEnabled(boolean enabled)
Enables or disables the file path component

Parameters:
enabled - Enabled flag


Copyright © 2011. All Rights Reserved.