|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.uieditor.UIManager
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 |
public UIManager()
Method Detail |
public static void setDefaultFactory(ModelFactory factory)
factory
- the ModelFactory to use as defaultModelFactory
,
CmtModel
,
oracle.jdeveloper.ctm.CmtModelNode
public static void registerFactory(ModelFactory factory)
factory
- the ModelFactory to registerModelFactory
public static ModelFactory getFactory(java.lang.Class cls)
cls
- an implementation of CmtModel
public static java.util.Iterator getFactories()
public static void annotate(CmtComponentSource model, CmtComponents mgr)
model
- the CmtCompnentModel to tokenizemgr
- the CmtComponents that produced the CmtComponentSource
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.