|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CmtComponentSource interface extends the CmtComponent interface and is intended to be used by the builder environment to differentiate between .java class files that have been constructed by the user via usage of the Designers as opposed to having been found somewhere on the classpath. The primary usage of this interface is to provide access to the builder model and jot representation of the users actions.
CmtComponent
Field Summary | |
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 Jot level for the JotClass represented by this CmtComponentSource instance. |
static java.lang.String |
INIT_METHOD_NAME
GUI initialization method name. |
static JotType[] |
INIT_METHOD_PARAMS
GUI initialization method argument signatures. |
static int |
STRUCTURE_CHANGING
Message ID indicating that a Jot level message has been received which will force the recreation of the Cmt model. |
Fields inherited from interface oracle.jdeveloper.cmt.CmtComponent |
PROXY_KEY |
Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
Method Summary | |
void |
addImport(java.lang.String className)
Add import statement necessitated by the given class name to the class represented by this CmtComponent. |
void |
addImports(JotExpression jotExpression)
Add any import statements necessitated by the given expression to the class represented by this CmtComponent, and reduce to the minimum reference within the expression. |
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 |
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 to this CmtComponent. |
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 |
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 |
renameSubcomponent(CmtSubcomponent subcomponent,
java.lang.String name)
This method is used for renaming a CmtSubcomponent within this CmtComponent. |
void |
setLastDesignedNodes(java.lang.Object key,
Element[] nodes)
Set the nodes which were last actively designed. |
Methods inherited from interface oracle.jdeveloper.cmt.CmtComponent |
getComponents, getContainerDelegate, getDefaultEventIndex, getDefaultPropertyIndex, getEvent, getEvents, getEventSet, getEventSets, getFile, getLiveType, getMessages, getMethod, getMethods, getProperties, getProperty, getSubcomponent, getSubcomponents, getType, isContainer, isReadOnly, logMessage, release |
Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
Field Detail |
public static final java.lang.String INIT_METHOD_NAME
public static final java.lang.String EXTENSION_PREFIX
public static final JotType[] INIT_METHOD_PARAMS
public static final int FILE_PARSE_FAILED
public static final int STRUCTURE_CHANGING
Method Detail |
public 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)
public void removeSubcomponent(CmtSubcomponent subcomponent)
subcomponent
- The CmtSubcomponent to remove.CmtSubcomponent
,
addSubcomponent(java.lang.String, java.lang.String, java.lang.String, int)
public void renameSubcomponent(CmtSubcomponent subcomponent, java.lang.String name) throws java.lang.IllegalArgumentException
subcomponent
- The CmtSubcomponent to rename.name
- The new name.
java.lang.IllegalArgumentException
CmtSubcomponent
,
addSubcomponent(java.lang.String, java.lang.String, java.lang.String, int)
public javax.swing.tree.DefaultTreeModel getStructure()
public CmtSelectionModel getSelectionModel()
public CmtModelNode getCmtModelNode(java.lang.String name)
public 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)
public void removeModel(CmtModel model)
model
- The CmtModel to remove from this CmtComponent.CmtModel
,
addModel(oracle.jdeveloper.cmt.CmtModel, oracle.jdeveloper.cmt.CmtModel)
public 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
,
CmtSubcomponent
public CmtModel[] getModels(java.lang.String name)
name
- The CmtModel name as returned by CmtModel.getName().
CmtModel
public CmtModel[] getModels()
CmtModel
public void commit()
public void commit(java.lang.String caption)
caption
- brief description of the change made suitable for
appearance in an Undo or Redo menu item.public boolean hasDependencies()
public boolean isDependency(CmtSubcomponent sub)
public void buildDependencies()
public java.lang.String getName()
public void setLastDesignedNodes(java.lang.Object key, Element[] nodes)
nodes
- The CmtModelNodes which were last manipulated by the View.public Element[] getLastDesignedNodes(java.lang.Object key)
public 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)
public void removeProperty(CmtProperty property)
property
- The property to remove.CmtProperty
,
addProperty(java.lang.String, java.lang.String)
public CmtMethodSource getInitMethod()
CmtMethodSource
public void addImports(JotExpression jotExpression)
jotExpression
- The expression to consider when determining import
statements.public void addImport(java.lang.String className)
className
- The class name to consider when determining import
statements.
|
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.