net.sourceforge.demetrix.properties.swixml
Class FilePropertySwixMLRepresentation
java.lang.Object
net.sourceforge.demetrix.properties.swixml.FilePropertySwixMLRepresentation
- All Implemented Interfaces:
- DemetrixPropertyRepresentation, SwixMLDemetrixPropertyRepresentation
- public class FilePropertySwixMLRepresentation
- extends Object
- implements SwixMLDemetrixPropertyRepresentation
- Author:
- Dimitri Pissarenko
*
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FilePropertySwixMLRepresentation
public FilePropertySwixMLRepresentation()
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()