Class AbstractTextWriter

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the writer is enabled.
    • Constructor Detail

      • AbstractTextWriter

        public AbstractTextWriter()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the writer is enabled.
        Parameters:
        value - true if to enable writer
      • getEnabled

        public boolean getEnabled()
        Returns whether the writer is enabled.
        Returns:
        true if writer is enabled
      • enabledTipText

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

        protected abstract String doWrite​(String content,
                                          String name)
        Writes the given content under the specified name.
        Parameters:
        content - the content to write
        name - the name under which to save the content
        Returns:
        if a file was generated, the filename the content was written as, otherwise null
      • write

        public String write​(String content,
                            String name)
        Writes the given content under the specified name.
        Parameters:
        content - the content to write
        name - the name under which to save the content
        Returns:
        if a file was generated, the filename the content was written as, otherwise null
      • write

        public String write​(TextContainer content,
                            String name)
        Writes the given content under the specified name.
        Parameters:
        content - the content to write
        name - the name under which to save the content
        Returns:
        if a file was generated, the filename the content was written as, otherwise null