com.jgoodies.uifextras.convenience
Class DefaultTipOfTheDayModel

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.uifextras.convenience.DefaultTipOfTheDayModel
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, TipOfTheDayModel, Serializable

public final class DefaultTipOfTheDayModel
extends com.jgoodies.binding.beans.Model
implements TipOfTheDayModel

Provides a dialog and managing behavior for a tip of the day functionality.

Version:
$Revision: 1.8 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jgoodies.uifextras.convenience.TipOfTheDayModel
SHOWING_TIPS_PROPERTY
 
Method Summary
static DefaultTipOfTheDayModel getInstance()
           
 boolean isShowingTips()
          Returns if we shall show tips at application startup.
 URL nextTip()
          Returns the next tip, either a plain or HTML String.
 URL previousTip()
          Returns the next tip, either a plain or HTML String.
 void setShowingTips(boolean b)
          Sets if we shall show tips at application startup.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultTipOfTheDayModel getInstance()

nextTip

public URL nextTip()
Returns the next tip, either a plain or HTML String.

Specified by:
nextTip in interface TipOfTheDayModel
Returns:
the next tip

previousTip

public URL previousTip()
Returns the next tip, either a plain or HTML String.

Specified by:
previousTip in interface TipOfTheDayModel
Returns:
the next tip

isShowingTips

public boolean isShowingTips()
Returns if we shall show tips at application startup.

Specified by:
isShowingTips in interface TipOfTheDayModel
Returns:
true to show tips, false to not show tips

setShowingTips

public void setShowingTips(boolean b)
Sets if we shall show tips at application startup.

Specified by:
setShowingTips in interface TipOfTheDayModel
Parameters:
b - true to enable the tips, false to disable


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.