Package tipOfTheDay

Class TipOfTheDayManager

java.lang.Object
tipOfTheDay.TipOfTheDayManager

public class TipOfTheDayManager extends Object
Author:
Doug Gillespie Tip of the day manager. Sets up tips and controls their selection and display

Tips must currently be typed into the constructor, so that they are always there. The order of tips is randomly set but then remains fixed.

When you start looking at tips, the first one shown is selected at random.

  • Method Details

    • addTipRandom

      public void addTipRandom(PamTip pamTip)
    • addTip

      public void addTip(PamTip pamTip)
    • getInstance

      public static TipOfTheDayManager getInstance()
    • getRandomTip

      public PamTip getRandomTip()
    • getNextTip

      public PamTip getNextTip(PamTip pamTip)
    • getNextTip

      public PamTip getNextTip(int iTip)
    • getPrevTip

      public PamTip getPrevTip(PamTip pamTip)
    • getPrevTip

      public PamTip getPrevTip(int iTip)
    • showTip

      public void showTip(Window window, PamTip pamTip)
    • isShowAtStart

      public boolean isShowAtStart()
    • setShowAtStart

      public void setShowAtStart(boolean showAtStart)