org.jdesktop.wonderland.client.cell.properties
Class PropertiesManager

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.properties.PropertiesManager

public class PropertiesManager
extends java.lang.Object

Manages the set of propery panels configuring cells. Cells implement the CellPropertiesSPI interface and register their class with the Java service loader mechanism. This class lists all of these cell properties. XXX This does not work with federation -- need to listen for login events!

Author:
Jordan Slott

Constructor Summary
PropertiesManager()
          Default constructor
 
Method Summary
 java.util.Set<PropertiesFactorySPI> getAllProperties()
          Returns a set of all properies objects.
 PropertiesFactorySPI getPropertiesByClass(java.lang.Class clazz)
          Returns a properties object given the Class of the server-side state class that the properties supports.
static PropertiesManager getPropertiesManager()
          Returns a single instance of this class
static java.lang.Class getServerStateClass(PropertiesFactorySPI factory)
          Given the PropertiesFactorySPI object (which must be annoated by the
 void registerPropertiesFactory(PropertiesFactorySPI properties)
          Registers a PropertiesFactorySPI class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesManager

public PropertiesManager()
Default constructor

Method Detail

getPropertiesManager

public static final PropertiesManager getPropertiesManager()
Returns a single instance of this class

Returns:
Single instance of this class.

registerPropertiesFactory

public void registerPropertiesFactory(PropertiesFactorySPI properties)
Registers a PropertiesFactorySPI class. This interface is used to generate a GUI to allow editing of Cell or Cell Component's properties on the client-side.

Parameters:
properties - The PropertiesFactorySPI class to register

getAllProperties

public java.util.Set<PropertiesFactorySPI> getAllProperties()
Returns a set of all properies objects. If no properties are registered, returns an empty set.

Returns:
A set of registered property objects

getPropertiesByClass

public PropertiesFactorySPI getPropertiesByClass(java.lang.Class clazz)
Returns a properties object given the Class of the server-side state class that the properties supports. If no properties are present for the given server-side state, returns null.

Parameters:
clazz - The class of the server-side state object
Returns:
A PropertiesFactorySPI object registered for the state class

getServerStateClass

public static java.lang.Class getServerStateClass(PropertiesFactorySPI factory)
Given the PropertiesFactorySPI object (which must be annoated by the

Parameters:
factory - The PropertiesFactorySPI class
Returns:
The Class of the server-state object for the properties object


Open Wonderland - http://openwonderland.org