Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jdesktop.swingx.tips
Class TipLoader

    java.lang.Object
      org.jdesktop.swingx.tips.TipLoader

    public class TipLoader

extends java.lang.Object

Loads tips from Properties.

Author:
  Frederic Lavigne

Method Summary
`static TipOfTheDayModel` | `load(java.util.Properties props)` Initializes a TipOfTheDayModel from properties.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### load

    public static TipOfTheDayModel load(java.util.Properties props)

  Initializes a TipOfTheDayModel 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

       ...

       tip.10.description=No name for this tip, name is optional

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010. All Rights Reserved.