|
|||||||||
| Home >> All >> com >> eireneh >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.util
Class UserLevel

java.lang.Objectcom.eireneh.util.UserLevel
- public class UserLevel
- extends java.lang.Object
A UserLevel keeps a track of how advanced the user is. It may not be a graphical component, but many graphical components depend on it, and it doesn't seem to be a 'util'.
We should consider having a addUserLevelListener interface for people that want to know about UserLevel changes. Hmmmm.
|
Distribution Licence: Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below. The copyright to this program is held by it's authors. |
| Field Summary | |
private static int |
level
The User level |
static int |
LEVEL_ADVANCED
User level - Advanced |
static int |
LEVEL_BEGINNER
User level - Beginner |
static int |
LEVEL_INTERMEDIATE
User level - Intermediate |
private static java.lang.String[] |
names
The level names |
| Constructor Summary | |
private |
UserLevel()
Ensure that we can't be instansiated |
| Method Summary | |
static java.lang.String[] |
getLevels()
Accessor for the user level |
static int |
getUserLevel()
Accessor for the user level |
static void |
setUserLevel(int level)
Accessor for the user level |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
LEVEL_BEGINNER
public static final int LEVEL_BEGINNER
- User level - Beginner
- See Also:
- Constant Field Values
LEVEL_INTERMEDIATE
public static final int LEVEL_INTERMEDIATE
- User level - Intermediate
- See Also:
- Constant Field Values
LEVEL_ADVANCED
public static final int LEVEL_ADVANCED
- User level - Advanced
- See Also:
- Constant Field Values
names
private static final java.lang.String[] names
- The level names
level
private static int level
- The User level
| Constructor Detail |
UserLevel
private UserLevel()
- Ensure that we can't be instansiated
| Method Detail |
getUserLevel
public static int getUserLevel()
- Accessor for the user level
setUserLevel
public static void setUserLevel(int level)
- Accessor for the user level
getLevels
public static java.lang.String[] getLevels()
- Accessor for the user level
|
|||||||||
| Home >> All >> com >> eireneh >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.eireneh.util.UserLevel