JIDE 3.5.15

com.jidesoft.tipoftheday
Class ResourceBundleTipOfTheDaySource

java.lang.Object
  extended by com.jidesoft.tipoftheday.ResourceBundleTipOfTheDaySource
All Implemented Interfaces:
TipOfTheDaySource

public class ResourceBundleTipOfTheDaySource
extends Object
implements TipOfTheDaySource

This is TipOfTheDay source based on resource bundle.


Constructor Summary
ResourceBundleTipOfTheDaySource(ResourceBundle bundle)
           
ResourceBundleTipOfTheDaySource(ResourceBundle bundle, String bundleKeyPattern)
           
 
Method Summary
 int getCurrentTipIndex()
          Gets the current tip index.
 String getNextTip()
          Gets next tip.
 String getPreviousTip()
          Gets previous tip.
protected  String getTip()
           
 void setCurrentTipIndex(int currentTipIndex)
          Sets current tip index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleTipOfTheDaySource

public ResourceBundleTipOfTheDaySource(ResourceBundle bundle)

ResourceBundleTipOfTheDaySource

public ResourceBundleTipOfTheDaySource(ResourceBundle bundle,
                                       String bundleKeyPattern)
Method Detail

getCurrentTipIndex

public int getCurrentTipIndex()
Description copied from interface: TipOfTheDaySource
Gets the current tip index.

Specified by:
getCurrentTipIndex in interface TipOfTheDaySource
Returns:
current tip index.

setCurrentTipIndex

public void setCurrentTipIndex(int currentTipIndex)
Description copied from interface: TipOfTheDaySource
Sets current tip index.

Specified by:
setCurrentTipIndex in interface TipOfTheDaySource

getNextTip

public String getNextTip()
Description copied from interface: TipOfTheDaySource
Gets next tip.

Specified by:
getNextTip in interface TipOfTheDaySource
Returns:
the next tip

getPreviousTip

public String getPreviousTip()
Description copied from interface: TipOfTheDaySource
Gets previous tip.

Specified by:
getPreviousTip in interface TipOfTheDaySource
Returns:
the previous tip

getTip

protected String getTip()

JIDE 3.5.15