public interface CmtComponentSource extends CmtComponent, Subject
CmtComponent| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
EXTENSION_PREFIX
GUI initialization extension method prefix name. 
 | 
static int | 
FILE_PARSE_FAILED
Message ID indicating that a parse error was found at the parser level for
 the JavaClass represented by this CmtComponentSource instance. 
 | 
static java.lang.String | 
INIT_METHOD_NAME
GUI initialization method name. 
 | 
static JavaType[] | 
INIT_METHOD_PARAMS
GUI initialization method argument signatures. 
 | 
static int | 
STRUCTURE_CHANGING
Message ID indicating that a parser level message has been received which
 will force the recreation of the Cmt model. 
 | 
PROXY_KEY| Modifier and Type | Method and Description | 
|---|---|
void | 
abort()
Abort any uncommited changes made within the current transaction. 
 | 
void | 
addImport(java.lang.String className)
Add import statement necessitated by the given class name to the
 class represented by this CmtComponent. 
 | 
void | 
addImports(SourceExpression SourceExpression)
Deprecated. 
 
No longer has any effect.  Use auto import support of
 underlying oracle.javatools.parser.java.v2.model.SourceFile. 
 | 
void | 
addModel(CmtModel model,
        CmtModel aheadOf)
Add a CmtModel to this CmtComponent. 
 | 
CmtPropertySource | 
addProperty(java.lang.String type,
           java.lang.String name)
Create and add a new property to the class represented by this
 CmtComponent. 
 | 
CmtSubcomponent | 
addSubcomponent(java.lang.String type,
               java.lang.String name,
               java.lang.String init,
               int scope)
This method is used for createing and adding a CmtSubcomponent to this
 CmtComponent. 
 | 
void | 
beginTrans()
Begin a transaction. 
 | 
void | 
buildDependencies()
Recompile, as necessary, any .java source files, other than our own, upon
 which this CmtComponent is dependant and which have been modified since
 the last time this CmtComponent was updated. 
 | 
void | 
commit()
Deprecated. 
 
Use commit(String) 
 | 
void | 
commit(java.lang.String caption)
Commit any uncommited changes made within the current transaction. 
 | 
CmtModelNode | 
getCmtModelNode(java.lang.String name)
Get the CmtModelNode for the given CmtSubcomponent name. 
 | 
CmtMethodSource | 
getInitMethod()
Get the initialization method from the class represented by this
 CmtComponent. 
 | 
Element[] | 
getLastDesignedNodes(java.lang.Object key)
Get the nodes which were last actively designed. 
 | 
CmtModel | 
getModel(java.lang.String name,
        CmtSubcomponent subcomponent)
Get the CmtModel which has the given name and contains the given
 CmtSubcomponent. 
 | 
CmtModel[] | 
getModels()
Get all CmtModels of this CmtComponent. 
 | 
CmtModel[] | 
getModels(java.lang.String name)
Get all CmtModels which have the given name as their name. 
 | 
java.lang.String | 
getName()
Get the name of the class being modeled by this instance. 
 | 
CmtSelectionModel | 
getSelectionModel()
Get the selection model. 
 | 
javax.swing.tree.DefaultTreeModel | 
getStructure()
Get the TreeModel into which all tokenized structure is to be placed. 
 | 
boolean | 
hasDependencies()
Determine whether there exist any .java source files, other than our own,
 upon which this CmtComponent is dependant. 
 | 
boolean | 
hasTrans()
Return true if a transaction is in progress. 
 | 
boolean | 
isDependency(CmtSubcomponent sub)
Determine whether given CmtSubcomponent is based upon a .java source file
 upon which this CmtComponent is dependant. 
 | 
void | 
removeModel(CmtModel model)
Remove a CmtModel from this CmtComponent. 
 | 
void | 
removeProperty(CmtProperty property)
Remove a property from the class represented by this CmtComponent. 
 | 
void | 
removeSubcomponent(CmtSubcomponent subcomponent)
This method is used for removing a CmtSubcomponent from this CmtComponent. 
 | 
void | 
setLastDesignedNodes(java.lang.Object key,
                    Element[] nodes)
Set the nodes which were last actively designed. 
 | 
getComponents, getContainerDelegate, getDefaultEventIndex, getDefaultPropertyIndex, getEvent, getEvents, getEventSet, getEventSets, getFile, getLiveType, getMessages, getMethod, getMethods, getProperties, getProperty, getSubcomponent, getSubcomponents, getType, isContainer, isReadOnly, logMessage, releaseattach, detach, notifyObserversstatic final java.lang.String INIT_METHOD_NAME
static final java.lang.String EXTENSION_PREFIX
static final JavaType[] INIT_METHOD_PARAMS
static final int FILE_PARSE_FAILED
static final int STRUCTURE_CHANGING
CmtSubcomponent addSubcomponent(java.lang.String type, java.lang.String name, java.lang.String init, int scope)
type - The the class type of the named CmtSubcomponent.name - The instance name of the CmtSubcomponent to be created.init - The initialization source or null.scope - The scope of the CmtSubcomponent to be created.CmtSubcomponent, 
removeSubcomponent(oracle.jdeveloper.cmt.CmtSubcomponent)void removeSubcomponent(CmtSubcomponent subcomponent)
subcomponent - The CmtSubcomponent to remove.CmtSubcomponent, 
addSubcomponent(java.lang.String, java.lang.String, java.lang.String, int)javax.swing.tree.DefaultTreeModel getStructure()
CmtSelectionModel getSelectionModel()
CmtModelNode getCmtModelNode(java.lang.String name)
void addModel(CmtModel model, CmtModel aheadOf)
model - A CmtModel describing a part or all of this CmtComponent.aheadOf - A CmtModel ahead of which the new model should be ordered.CmtModel, 
removeModel(oracle.jdeveloper.cmt.CmtModel)void removeModel(CmtModel model)
model - The CmtModel to remove from this CmtComponent.CmtModel, 
addModel(oracle.jdeveloper.cmt.CmtModel, oracle.jdeveloper.cmt.CmtModel)CmtModel getModel(java.lang.String name, CmtSubcomponent subcomponent)
name - The CmtModel name as returned by CmtModel.getName().subcomponent - The CmtSubcomponent whose CmtModel is to be returned.CmtModel, 
CmtSubcomponentCmtModel[] getModels(java.lang.String name)
name - The CmtModel name as returned by CmtModel.getName().CmtModelCmtModel[] getModels()
CmtModelboolean hasTrans()
void beginTrans()
void commit()
void commit(java.lang.String caption)
caption - brief description of the change made suitable for
        appearance in an Undo or Redo menu item.void abort()
boolean hasDependencies()
boolean isDependency(CmtSubcomponent sub)
void buildDependencies()
java.lang.String getName()
void setLastDesignedNodes(java.lang.Object key,
                          Element[] nodes)
nodes - The CmtModelNodes which were last manipulated by the View.Element[] getLastDesignedNodes(java.lang.Object key)
CmtPropertySource addProperty(java.lang.String type, java.lang.String name)
type - The type name for the new property.name - The name for the the new property.CmtPropertySource, 
removeProperty(oracle.jdeveloper.cmt.CmtProperty)void removeProperty(CmtProperty property)
property - The property to remove.CmtProperty, 
addProperty(java.lang.String, java.lang.String)CmtMethodSource getInitMethod()
CmtMethodSourcevoid addImports(SourceExpression SourceExpression)
SourceExpression - The expression to consider when determining import
 statements.void addImport(java.lang.String className)
className - The class name to consider when determining import
 statements.