org.jdesktop.wonderland.client.jme
Enum MainFrame.PlacemarkType

java.lang.Object
  extended by java.lang.Enum<MainFrame.PlacemarkType>
      extended by org.jdesktop.wonderland.client.jme.MainFrame.PlacemarkType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MainFrame.PlacemarkType>
Enclosing interface:
MainFrame

public static enum MainFrame.PlacemarkType
extends java.lang.Enum<MainFrame.PlacemarkType>

Three types of Placemarks are expected: - Managements placemarks affect management (add, manage) and also include the Starting Location - System placemarks are attached to objects through the placemark capability - User placemarks are personal and created by the user through the management tools The reason to declare them here and not in the Placemark API project is that the differences only matter at the time of displaying them in the Placemark menu. A possible refactoring could expose the menu bar to modules and let them manage the population of items. In that case all this code could be moved and contained within the placemark module.


Enum Constant Summary
MANAGEMENT
           
SYSTEM
           
USER
           
 
Method Summary
static MainFrame.PlacemarkType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MainFrame.PlacemarkType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MANAGEMENT

public static final MainFrame.PlacemarkType MANAGEMENT

SYSTEM

public static final MainFrame.PlacemarkType SYSTEM

USER

public static final MainFrame.PlacemarkType USER
Method Detail

values

public static MainFrame.PlacemarkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MainFrame.PlacemarkType c : MainFrame.PlacemarkType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MainFrame.PlacemarkType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Open Wonderland - http://openwonderland.org