Class FileValueDefinition

    • Field Detail

      • m_FileChooserTitle

        protected String m_FileChooserTitle
        the title of the file chooser dialog.
      • m_DefaultValue

        protected PlaceholderFile m_DefaultValue
        the default file.
      • m_Extensions

        protected BaseString[] m_Extensions
        the extensions to offer in the file chooser.
      • m_UseForwardSlashes

        protected boolean m_UseForwardSlashes
        whether to output forward slashes.
      • m_UseAbsolutePath

        protected boolean m_UseAbsolutePath
        whether to use absolute path rather than placeholders.
      • m_AcceptAllFileFilter

        protected boolean m_AcceptAllFileFilter
        whether to allow the "All files" filter.
    • Constructor Detail

      • FileValueDefinition

        public FileValueDefinition()
    • Method Detail

      • setFileChooserTitle

        public void setFileChooserTitle​(String value)
        Sets the title for the file chooser dialog.
        Parameters:
        value - the title
      • getFileChooserTitle

        public String getFileChooserTitle()
        Returns the title for the file chooser dialog.
        Returns:
        the title
      • fileChooserTitleTipText

        public String fileChooserTitleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setInitialDirectory

        public void setInitialDirectory​(PlaceholderDirectory value)
        Sets the initial directory.
        Parameters:
        value - the initial directory
      • getInitialDirectory

        public PlaceholderDirectory getInitialDirectory()
        Returns the initial directory.
        Returns:
        the initial directory
      • initialDirectoryTipText

        public String initialDirectoryTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setExtensions

        public void setExtensions​(BaseString[] value)
        Sets the extensions to offer in the file chooser.
        Parameters:
        value - the extensions
      • getExtensions

        public BaseString[] getExtensions()
        Returns the extension on offer in the file chooser.
        Returns:
        the extensions
      • extensionsTipText

        public String extensionsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setDefaultValue

        public void setDefaultValue​(PlaceholderFile value)
        Sets the default of the value.
        Parameters:
        value - the default
      • getDefaultValue

        public PlaceholderFile getDefaultValue()
        Returns the default of the value.
        Returns:
        the default
      • defaultValueTipText

        public String defaultValueTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUseForwardSlashes

        public void setUseForwardSlashes​(boolean value)
        Sets whether to use forward slashes in the output.
        Specified by:
        setUseForwardSlashes in interface ForwardSlashSupporter
        Parameters:
        value - if true then use forward slashes
      • getUseForwardSlashes

        public boolean getUseForwardSlashes()
        Returns whether to use forward slashes in the output.
        Specified by:
        getUseForwardSlashes in interface ForwardSlashSupporter
        Returns:
        true if forward slashes are used
      • useForwardSlashesTipText

        public String useForwardSlashesTipText()
        Returns the tip text for this property.
        Specified by:
        useForwardSlashesTipText in interface ForwardSlashSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUseAbsolutePath

        public void setUseAbsolutePath​(boolean value)
        Sets whether to use absolute paths.
        Specified by:
        setUseAbsolutePath in interface AbsolutePathSupporter
        Parameters:
        value - if true if absolute paths
      • getUseAbsolutePath

        public boolean getUseAbsolutePath()
        Returns whether to use absolute paths.
        Specified by:
        getUseAbsolutePath in interface AbsolutePathSupporter
        Returns:
        true if absolute paths
      • useAbsolutePathTipText

        public String useAbsolutePathTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setAcceptAllFileFilter

        public void setAcceptAllFileFilter​(boolean value)
        Sets whether to show the 'All files' filter.
        Parameters:
        value - true if to show
      • getAcceptAllFileFilter

        public boolean getAcceptAllFileFilter()
        Returns whether to show the 'All files' filter.
        Returns:
        true if to show
      • acceptAllFileFilterTipText

        public String acceptAllFileFilterTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • headlessInteraction

        public String headlessInteraction()
        Prompts the user to enter a value in headless mode and returns it.
        Specified by:
        headlessInteraction in class AbstractValueDefinition
        Returns:
        the entered value, null if canceled