net.sourceforge.demetrix.properties.swixml
Class FilePropertySwixMLRepresentation

java.lang.Object
  extended bynet.sourceforge.demetrix.properties.swixml.FilePropertySwixMLRepresentation
All Implemented Interfaces:
DemetrixPropertyRepresentation, SwixMLDemetrixPropertyRepresentation

public class FilePropertySwixMLRepresentation
extends Object
implements SwixMLDemetrixPropertyRepresentation

Author:
Dimitri Pissarenko *

Field Summary
private  FileFilter fileFilter
           
 JTextField fileNameTextField
           
private  FileProperty fileProperty
           
private  Logger logger
           
private  boolean mustBeReadable
           
private  boolean mustBeWriteable
           
 JPanel panel
           
 JLabel propertyNameLabel
           
private  File selectedFile
           
 JButton selectFileButton
           
 Action selectFileButtonAction
           
static String UI_DEF_FILE_NAME
           
 
Constructor Summary
FilePropertySwixMLRepresentation()
           
 
Method Summary
private  JFileChooser getFileChooser()
           
 FileFilter getFileFilter()
           
 JPanel getPanel()
           
 File getSelectedFile()
           
 boolean isEnteredDataValid()
           
 boolean isMustBeReadable()
           
 boolean isMustBeWriteable()
           
private  void selectFileButtonAction()
           
 void setFileFilter(FileFilter filter)
           
 void setMustBeReadable(boolean b)
           
 void setMustBeWriteable(boolean b)
           
private  void setSelectedFile(File file)
           
 void updatePropertyData(DemetrixProperty property)
           
 void updateRepresentation(DemetrixProperty property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger

panel

public JPanel panel

fileNameTextField

public JTextField fileNameTextField

selectedFile

private File selectedFile

propertyNameLabel

public JLabel propertyNameLabel

mustBeReadable

private boolean mustBeReadable

mustBeWriteable

private boolean mustBeWriteable

selectFileButton

public JButton selectFileButton

fileFilter

private FileFilter fileFilter

fileProperty

private FileProperty fileProperty

selectFileButtonAction

public Action selectFileButtonAction

UI_DEF_FILE_NAME

public static final String UI_DEF_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

FilePropertySwixMLRepresentation

public FilePropertySwixMLRepresentation()
Method Detail

getPanel

public JPanel getPanel()
Specified by:
getPanel in interface SwixMLDemetrixPropertyRepresentation

isEnteredDataValid

public boolean isEnteredDataValid()
Specified by:
isEnteredDataValid in interface DemetrixPropertyRepresentation

updatePropertyData

public void updatePropertyData(DemetrixProperty property)
Specified by:
updatePropertyData in interface DemetrixPropertyRepresentation

updateRepresentation

public void updateRepresentation(DemetrixProperty property)
Specified by:
updateRepresentation in interface DemetrixPropertyRepresentation

isMustBeReadable

public boolean isMustBeReadable()
Returns:

isMustBeWriteable

public boolean isMustBeWriteable()
Returns:

setMustBeReadable

public void setMustBeReadable(boolean b)
Parameters:
b -

setMustBeWriteable

public void setMustBeWriteable(boolean b)
Parameters:
b -

getSelectedFile

public File getSelectedFile()
Returns:

setSelectedFile

private void setSelectedFile(File file)
Parameters:
file -

getFileFilter

public FileFilter getFileFilter()
Returns:

setFileFilter

public void setFileFilter(FileFilter filter)
Parameters:
filter -

selectFileButtonAction

private void selectFileButtonAction()

getFileChooser

private JFileChooser getFileChooser()