Class SelectFile
java.lang.Object
com.marginallyclever.donatello.select.Select
com.marginallyclever.donatello.select.SelectFile
-
Constructor Summary
ConstructorsConstructorDescriptionSelectFile
(String internalName, String labelKey, String defaultValue, Component parentComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(JComponent panel, GridBagConstraints gbc) getText()
void
setDialogType
(boolean isSave) void
setFileChooser
(JFileChooser fileChooser) void
void
setFilter
(FileFilter filter) void
void
setReadOnly
(boolean state) void
Will notify observers that the value has changed.Methods inherited from class com.marginallyclever.donatello.select.Select
addSelectListener, getName, removeSelectListener, setName
-
Constructor Details
-
SelectFile
-
-
Method Details
-
attach
-
setReadOnly
public void setReadOnly(boolean state) - Specified by:
setReadOnly
in classSelect
-
getText
-
setFilter
-
setText
Will notify observers that the value has changed.- Parameters:
string
- the new value
-
setPathOnly
public void setPathOnly() -
setFileOnly
public void setFileOnly() -
setFileChooser
-
setDialogType
public void setDialogType(boolean isSave) - Parameters:
isSave
- true for save dialog, false for load dialog. Default is false.
-