Class InputFilename
- All Implemented Interfaces:
SwingProvider
public class InputFilename
extends com.marginallyclever.nodegraphcore.port.Input<Filename>
implements SwingProvider
A port that accepts a filename.
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.port.Port
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSwingComponent(Component parent) voidsetDialogType(boolean isSave) voidsetFileChooser(JFileChooser fileChooser) Set the file chooser to use when selecting a file.voidMethods inherited from class com.marginallyclever.nodegraphcore.port.Input
createInverse, getFrom, hasConnection, setFrom, setValueToDefaultMethods inherited from class com.marginallyclever.nodegraphcore.port.Port
fromJSON, getDisplayName, getInPosition, getName, getOutPosition, getRectangle, getType, getTypeName, getValue, isDirty, isValidType, setDirty, setDisplayName, toJSON, toString
-
Constructor Details
-
InputFilename
-
InputFilename
- Throws:
IllegalArgumentException
-
-
Method Details
-
getSwingComponent
- Specified by:
getSwingComponentin interfaceSwingProvider- Returns:
- the Select component or null.
-
setFileChooser
Set the file chooser to use when selecting a file.- Parameters:
fileChooser- the file chooser to use. cannot be null.
-
setDialogType
public void setDialogType(boolean isSave) - Parameters:
isSave- true for save dialog, false for load dialog. Default is false.
-
setValue
-