ADF Designtime

oracle.adf.dt
Interface DataControlFactory

All Known Implementing Classes:
DCFactoryApplicationModule, DCFactoryGeneric, DCFactoryJavaBean

public interface DataControlFactory

This interface need to be implemented to support automatic creation of data controls dependin on the node type. A node type is dragged inot the binding window and this interface is used to locate and invoke the node factory in order to create the DT data control to be used. Once the data control is created, it will be serialized to a datacontrol.xcfg file located in the project's sourcepath under the meta-inf directory. The factory classes should be registered using the DataControlFactoryManager.


Method Summary
 boolean canCreateDataControl(oracle.ide.addin.Context ctx)
          Return true is the Data control can be created for the selected node.
 boolean compileProjectBeforeGenerating(oracle.ide.addin.Context ctx)
          Return true if this factory requires the project to be compiled before it [re-]generates a data control.
 JUDTDataControl createDataControl(oracle.ide.addin.Context ctx)
          Create a data control for the selected Element.
 java.lang.Class[] getNodeClasses()
          Array of node classes handled by this Factory
 

Method Detail

getNodeClasses

public java.lang.Class[] getNodeClasses()
Array of node classes handled by this Factory


createDataControl

public JUDTDataControl createDataControl(oracle.ide.addin.Context ctx)
Create a data control for the selected Element. This may involve showing a user interface and generating a java bean. The method should return an initialized data control.


canCreateDataControl

public boolean canCreateDataControl(oracle.ide.addin.Context ctx)
Return true is the Data control can be created for the selected node. Even though the node factory registers a set of node types, it could be a that a node type is not well defined so the factory would return false in this function. One example is a Java class that is not a Java Bean.


compileProjectBeforeGenerating

public boolean compileProjectBeforeGenerating(oracle.ide.addin.Context ctx)
Return true if this factory requires the project to be compiled before it [re-]generates a data control. In cases where the underlying model object has been modified, leaving it out of sync with a wrapper data control class generated earlier, compilation at the outset of the process will fail. This flag allows factories to first re-generate the data control wrapper, synchronizing it with any changes to the model.


ADF Designtime

 

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