Extension SDK 9.0.5

oracle.jdeveloper.uieditor
Class UIManager

java.lang.Object
  extended byoracle.jdeveloper.uieditor.UIManager

public final class UIManager
extends java.lang.Object

The UIManager provides the API necessary for the UIEditor to work in cooperation with integrator extensions. Integrators may register ModelFactory instances which in turn are responsible for tokenizing a given CmtComponentSource on demand. When opened, the UIEditor will ask the UIManager to annotate the CmtComponentSource upon which it has been opened. The UIManager will in turn defer annotation to each of the registered ModelFactory instances such that they may each add their own CmtModel trees to the CmtComponentSource for manipulation in the UIEditor via associated UIEditorCanvas instances.

Each variable declaration is expected to be represented by a CmtModelNode in a CmtModel produced by one of the ModelFactory instances. The UIManager supports the concept of a default ModelFactory which is the factory to use when no other registered ModelFactory has produced a CmtModelNode for a declared member.


Constructor Summary
UIManager()
           
 
Method Summary
static void annotate(CmtComponentSource model, CmtComponents mgr)
          Tokenize the given CmtComponentSource into CmtModel trees of CmtModelNode with one CmtModelNode for each member field or local variable within the GUI initialization area.
static java.util.Iterator getFactories()
          Get an Iterator of all the registered ModeFactory instances.
static ModelFactory getFactory(java.lang.Class cls)
          Get the ModelFactory that produced the CmtModel implementation class provided.
static void registerFactory(ModelFactory factory)
          Register a ModelFactory.
static void setDefaultFactory(ModelFactory factory)
          Set the ModelFactory to use as the default when no registered ModelFactory has produced a CmtModel containing a CmtModelNode for a given variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIManager

public UIManager()
Method Detail

setDefaultFactory

public static void setDefaultFactory(ModelFactory factory)
Set the ModelFactory to use as the default when no registered ModelFactory has produced a CmtModel containing a CmtModelNode for a given variable.

Parameters:
factory - the ModelFactory to use as default
See Also:
ModelFactory, CmtModel, oracle.jdeveloper.ctm.CmtModelNode

registerFactory

public static void registerFactory(ModelFactory factory)
Register a ModelFactory.

Parameters:
factory - the ModelFactory to register
See Also:
ModelFactory

getFactory

public static ModelFactory getFactory(java.lang.Class cls)
Get the ModelFactory that produced the CmtModel implementation class provided.

Parameters:
cls - an implementation of CmtModel
Returns:
the ModelFactory that produced the given CmtModel instance

getFactories

public static java.util.Iterator getFactories()
Get an Iterator of all the registered ModeFactory instances.

Returns:
an Iterator of all the registered ModelFactory instances.

annotate

public static void annotate(CmtComponentSource model,
                            CmtComponents mgr)
Tokenize the given CmtComponentSource into CmtModel trees of CmtModelNode with one CmtModelNode for each member field or local variable within the GUI initialization area.

Parameters:
model - the CmtCompnentModel to tokenize
mgr - the CmtComponents that produced the CmtComponentSource

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.