Module tvbrowser
Package util.program

Class LocalPluginProgramFormating


  • public class LocalPluginProgramFormating
    extends AbstractPluginProgramFormating
    Settings for program formating. This is the class for using for creating configuration used only by the plugin which creates the instance of this class.
    Since:
    2.5.1
    Author:
    René Mach
    • Constructor Detail

      • LocalPluginProgramFormating

        public LocalPluginProgramFormating()
        Creates an empty instance of this class, for example for loading the values from an ObjectInputStream.
      • LocalPluginProgramFormating

        public LocalPluginProgramFormating​(java.lang.String id,
                                           java.lang.String name,
                                           java.lang.String titleValue,
                                           java.lang.String contentValue,
                                           java.lang.String encodingValue)
        Creates an instance of a program configuration.
        Parameters:
        id - The id of this formating.
        name - The name of the configuration.
        titleValue - The value for the title configuration.
        contentValue - The value for the content.
        encodingValue - The encoding value.
      • LocalPluginProgramFormating

        public LocalPluginProgramFormating​(java.lang.String name,
                                           java.lang.String titleValue,
                                           java.lang.String contentValue,
                                           java.lang.String encodingValue)
        Creates an instance of a program configuration.
        Parameters:
        name - The name of the configuration.
        titleValue - The value for the title configuration.
        contentValue - The value for the content.
        encodingValue - The encoding value.
    • Method Detail

      • loadData

        protected void loadData​(java.io.ObjectInputStream in)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Creates an instance of a ProgramConfiguration from an ObjetcInputStream-
        Specified by:
        loadData in class AbstractPluginProgramFormating
        Parameters:
        in - The stream to read the values from
        Throws:
        java.io.IOException - Thrown if something goes wrong
        java.lang.ClassNotFoundException - Thrown if something goes wrong
      • storeData

        protected void storeData​(java.io.ObjectOutputStream out)
                          throws java.io.IOException
        Saves this configuration in an ObjectOutputStream
        Specified by:
        storeData in class AbstractPluginProgramFormating
        Parameters:
        out - The stream to save the values in
        Throws:
        java.io.IOException - Thrown if something goes wrong
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object