Module tvbrowser

Class ReminderList

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class ReminderList
    extends java.lang.Object
    implements java.awt.event.ActionListener
    TV-Browser
    Author:
    Martin Oberhauser
    • Constructor Detail

      • ReminderList

        public ReminderList()
    • Method Detail

      • read

        public void read​(java.io.ObjectInputStream in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
        reads the object from an input stream.
        Parameters:
        in - the input stream to read from.
        Throws:
        java.io.IOException - if something went wrong reading the input stream
        java.lang.ClassNotFoundException - if the object could not be deserialized
      • writeData

        public void writeData​(java.io.ObjectOutputStream out)
                       throws java.io.IOException
        serialize this object to a stream.
        Parameters:
        out - the stream to write to
        Throws:
        java.io.IOException - if something went wrong writing to the stream
      • addAndCheckBlocked

        public void addAndCheckBlocked​(Program[] programs,
                                       int minutes)
        Only adds a Program if it's not blocked
        Parameters:
        programs - Programs to add
        minutes - remind x Minutes before start
      • update

        public void update​(Program[] programs,
                           int minutes,
                           int oldMinutesValue)
        Only adds a Program if it's not blocked
        Parameters:
        programs - Programs to add
        minutes - remind x Minutes before start
        oldMinutesValue - The old value for reminding.
      • startTimer

        protected void startTimer()
      • removeExpiredItems

        public void removeExpiredItems()
      • contains

        public boolean contains​(Program program)
      • remove

        public void remove​(Program program)
      • remove

        public void remove​(Program[] programs)
      • removeWithoutChecking

        public void removeWithoutChecking​(ProgramItem item)
      • addWithoutChecking

        public void addWithoutChecking​(ReminderListItem item)
      • updatePrograms

        public Program[] updatePrograms()
        Checks all programs, if they currently exists
        Returns:
        all removed programs
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • blockProgram

        public void blockProgram​(Program prg)
        Block a Program. This Program won't get reminded
        Parameters:
        prg - Program to block
      • unblockProgram

        public void unblockProgram​(Program prg)
        Remove a Program from the Block-List
        Parameters:
        prg - Program to remove from Block-List
      • isBlocked

        public boolean isBlocked​(Program prg)
        Is Program Blocked?
        Parameters:
        prg - Check if this Program is blocked
        Returns:
        true, if Program is blocked
      • pauseReminder

        void pauseReminder​(int minutes)
      • toggleTimer

        void toggleTimer()
      • hasTimer

        boolean hasTimer()
      • isActive

        boolean isActive()