com.acarter.scenemonitor.propertydescriptor
Class A_PropertyPageHandler

java.lang.Object
  extended by com.acarter.scenemonitor.propertydescriptor.A_PropertyPageHandler
Direct Known Subclasses:
StandardPropertyPageHandler

public abstract class A_PropertyPageHandler
extends java.lang.Object

Author:
Carter

Field Summary
protected  java.util.HashMap<java.lang.Class<?>,A_PropertyPage> pages
          Set of property pages for each tree object
 
Constructor Summary
A_PropertyPageHandler(PropertyTable table)
           
 
Method Summary
 A_PropertyPage getPropertyPage(java.lang.Object object)
          Returns the property page that is associated with the object.
protected abstract  void initPropertyPages(PropertyTable table)
          Subclasses must load their own set of default property pages.
 void registerPropertyPage(java.lang.Class<?> classType, A_PropertyPage page)
          Adds the property page/object type pair to the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pages

protected java.util.HashMap<java.lang.Class<?>,A_PropertyPage> pages
Set of property pages for each tree object

Constructor Detail

A_PropertyPageHandler

public A_PropertyPageHandler(PropertyTable table)
Method Detail

initPropertyPages

protected abstract void initPropertyPages(PropertyTable table)
Subclasses must load their own set of default property pages.


getPropertyPage

public A_PropertyPage getPropertyPage(java.lang.Object object)
Returns the property page that is associated with the object. If an exact match is not defined, then it will search up the inheritance of the object to find the next closest match.

Parameters:
object - The object who's property page you want returned.
Returns:
The property page matching the object type.

registerPropertyPage

public void registerPropertyPage(java.lang.Class<?> classType,
                                 A_PropertyPage page)
Adds the property page/object type pair to the collection.

Parameters:
classType -
page -