Class FileTarget

    • Constructor Detail

      • FileTarget

        public FileTarget()
    • Method Detail

      • save

        protected void save()
        Loads the data
      • setCurrentFile

        public void setCurrentFile​(File value)
        Sets the current file.
        Parameters:
        value - the current file
      • getCurrentFile

        public File getCurrentFile()
        Returns the current file.
        Returns:
        the current file
      • setCurrentWriter

        public void setCurrentWriter​(SpreadSheetWriter writer)
        Sets the current writer.
        Parameters:
        writer - the current writer
      • getCurrentWriter

        public SpreadSheetWriter getCurrentWriter()
        Returns the current writer.
        Returns:
        the current writer
      • assign

        public void assign​(AbstractWidget other)
        Retrieves the values from the other widget, if possible.
        Specified by:
        assign in class AbstractWidget
        Parameters:
        other - the other widget to get the values from
      • serialize

        public Object serialize()
        Serializes the setup from the widget.
        Specified by:
        serialize in class AbstractWidget
        Returns:
        the generated setup representation
      • deserialize

        public void deserialize​(Object data,
                                MessageCollection errors)
        Deserializes the setup and maps it onto the widget.
        Specified by:
        deserialize in class AbstractWidget
        Parameters:
        data - the setup representation to use
        errors - for collecting errors