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) void
setDialogType
(boolean isSave) void
setFileChooser
(JFileChooser fileChooser) Set the file chooser to use when selecting a file.void
Methods inherited from class com.marginallyclever.nodegraphcore.port.Input
createInverse, getFrom, hasConnection, setFrom, setValueToDefault
Methods 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:
getSwingComponent
in 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
-