com.l2fprod.common.swing.tips
Class TipLoader

java.lang.Object
  extended by com.l2fprod.common.swing.tips.TipLoader

public class TipLoader
extends java.lang.Object

Loads tips from various sources.


Constructor Summary
TipLoader()
           
 
Method Summary
static TipModel load(java.util.Properties props)
          Initializes a TipModel from properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TipLoader

public TipLoader()
Method Detail

load

public static TipModel load(java.util.Properties props)
Initializes a TipModel from properties. Each tip is defined by two properties, its name and its description:
  tip.1.name=First Tip
  tip.1.description=This is the description
  
  tip.2.name=Second Tip
  tip.2.description=<html>This is an html description
 

Parameters:
props -
Returns:
a TipModel
Throws:
java.lang.IllegalArgumentException - if a name is found without description