public interface IPathField extends IIndicatorTextField
IIndicatorTextField path editor field with an IButton which shows an IFileChooser.
The field has 2 modes based on whether it is to choose a folder or a file.
IGuiFactory.newPathField(),
IGuiFactory.newPathField(boolean),
IGuiFactory.newPathField(Path),
IGuiFactory.newPathField(Path, boolean)| Modifier and Type | Method and Description |
|---|---|
IButton |
getButton()
Returns the button to open an
IFileChooser. |
IFileChooser |
getFileChooser()
Returns the file chooser displayed when the button is clicked.
|
java.nio.file.Path |
getPath()
Returns the selected path.
|
boolean |
hasPath()
Tells if a path has been entered.
|
void |
setPath(java.nio.file.Path path)
Sets the specified path.
|
getText, getTextField, setTextasComponent, configureIndicator, getIndicator, setAccepted, setEmpty, setError, setNotAcceptedIButton getButton()
IFileChooser.IFileChooserIFileChooser getFileChooser()
boolean hasPath()
java.nio.file.Path getPath()
Paths.get("")) if no valid path has been enteredvoid setPath(java.nio.file.Path path)
path - path to be set
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.