|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.uieditor.UIManager
public final class 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.List |
createApplicableOperations(Context c,
oracle.javatools.datatransfer.ExtendedTransferable t)
|
static java.util.List |
getAssistedLayouts()
|
static java.lang.String |
getConcreteProxy(java.lang.String clsName)
Get a registered proxy implementation class name for a given original class name. |
static oracle.javatools.datatransfer.DataTransferPluginRegistry |
getDataTransferPluginRegistry()
|
static oracle.javatools.datatransfer.ExtendedTransferable |
getDropTransferable()
|
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 LayoutAssistant |
getLayoutAssistant(java.lang.String clsName)
|
static java.lang.String |
getLibraryForLayout(java.lang.String layout)
|
static oracle.javatools.datatransfer.ExtendedTransferable |
getPasteTransferable()
|
static URLPath |
getProxyPath(java.lang.String clsName)
Get the classpath in which the proxy class associated with a given original class name can be found. |
static void |
registerConcreteProxy(java.lang.String clsName,
java.lang.String proxyName,
URLPath proxyPath)
|
static void |
registerFactory(ModelFactory factory)
Register a ModelFactory. |
static void |
registerLayoutManager(java.lang.String layoutName,
java.lang.String libID,
java.lang.String assistantName)
|
static void |
registerOperationFactory(oracle.jdeveloper.uieditor.datatransfer.OperationFactory factory)
|
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. |
static void |
setDropTransferable(java.awt.datatransfer.Transferable t)
During a DnD, this is called to set the current transferable. |
static void |
setPasteTransferable(java.awt.datatransfer.Transferable t)
During a copy/paste, this is called to set the current transferable. |
static void |
unregisterOperationFactory(oracle.jdeveloper.uieditor.datatransfer.OperationFactory factory)
|
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 CmtComponentSourcepublic static void registerLayoutManager(java.lang.String layoutName, java.lang.String libID, java.lang.String assistantName)
public static java.util.List getAssistedLayouts()
public static LayoutAssistant getLayoutAssistant(java.lang.String clsName)
public static java.lang.String getLibraryForLayout(java.lang.String layout)
public static void registerConcreteProxy(java.lang.String clsName, java.lang.String proxyName, URLPath proxyPath)
public static java.lang.String getConcreteProxy(java.lang.String clsName)
clsName
- name of the original class for which a proxy is desired.
public static URLPath getProxyPath(java.lang.String clsName)
clsName
- name of the original class for which a proxy has been
registered, else null to receive all paths from all proxy registrations.
public static java.util.List createApplicableOperations(Context c, oracle.javatools.datatransfer.ExtendedTransferable t)
public static void registerOperationFactory(oracle.jdeveloper.uieditor.datatransfer.OperationFactory factory)
public static void unregisterOperationFactory(oracle.jdeveloper.uieditor.datatransfer.OperationFactory factory)
public static oracle.javatools.datatransfer.DataTransferPluginRegistry getDataTransferPluginRegistry()
public static oracle.javatools.datatransfer.ExtendedTransferable getDropTransferable()
public static void setDropTransferable(java.awt.datatransfer.Transferable t)
public static oracle.javatools.datatransfer.ExtendedTransferable getPasteTransferable()
public static void setPasteTransferable(java.awt.datatransfer.Transferable t)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |