net.sf.doolin.gui.swing
Class TextFilePath

java.lang.Object
  extended by net.sf.doolin.gui.swing.AbstractFilePath
      extended by net.sf.doolin.gui.swing.TextFilePath
All Implemented Interfaces:
IFilePath

public class TextFilePath
extends AbstractFilePath

IFilePath implementation based on a JTextField.

Author:
Damien Coraboeuf

Constructor Summary
TextFilePath()
          Constructor.
 
Method Summary
 JComponent getComponent()
          Gets the actual component
 String getFilePath()
          Gets the current file path
 void setEnabled(boolean enabled)
          Enables or disables the file path component
 void setFile(File file)
          Sets the current file path
 
Methods inherited from class net.sf.doolin.gui.swing.AbstractFilePath
addFilePathListener, fireNewPath, removeFilePathListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFilePath

public TextFilePath()
Constructor.

Method Detail

getComponent

public JComponent getComponent()
Description copied from interface: IFilePath
Gets the actual component

Returns:
Component

getFilePath

public String getFilePath()
Description copied from interface: IFilePath
Gets the current file path

Returns:
File path or null

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: IFilePath
Enables or disables the file path component

Parameters:
enabled - Enabled flag

setFile

public void setFile(File file)
Description copied from interface: IFilePath
Sets the current file path

Parameters:
file - Selected file or null


Copyright © 2011. All Rights Reserved.