public interface CmtSubcomponent extends SupportsInspection
| Modifier and Type | Field and Description | 
|---|---|
static int | 
CLASS_SCOPE
Declared as a member in outer CmtComponent 
 | 
static java.lang.String | 
FIELDNAME_PROPERTY_NAME
Property identifier for pseudo 'name' property. 
 | 
static int | 
METHOD_SCOPE
Declared as local variable within a method of outer CmtComponent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CmtPropertyState | 
addPropertyState(CmtProperty property)
Allows models to add/remove property states to/from this subcomponent 
 | 
void | 
addPropertyState(CmtPropertyState propertyState)  | 
CmtSubcomponent | 
copy(CmtComponentSource toFile,
    java.util.List subcomponentList,
    boolean toClipboard)
copy this subcomponent into another file
  returns the copied subcomponent 
 | 
java.awt.Container | 
getAsContainer()
Returns either this.getLiveInstance() (most common case),
 or this.getLiveInstance().XXX() where XXX is defined in
 the BeanDescriptor.getValue("containerDelegate"). 
 | 
SourceAssignmentExpression | 
getAssignment()  | 
CmtComponent | 
getComponent()  | 
JavaClass | 
getComponentType()  | 
JavaClass | 
getDeclaredClass()  | 
CmtEventState | 
getDefaultEventState()  | 
CmtPropertyState | 
getDefaultPropertyState()  | 
CmtEventState | 
getEventState(java.lang.String name)  | 
CmtEventState[] | 
getEventStates()
Returns objects representing the state of all properties, hence all
 potential property settings,
 including those that are not explicitly set in the init method 
 | 
CmtMethod | 
getInitMethod()  | 
JavaClass | 
getLiveClass()  | 
java.lang.Object | 
getLiveInstance()  | 
java.lang.String | 
getName()  | 
CmtComponent | 
getOuterComponent()  | 
CmtPropertyState | 
getPropertyState(java.lang.String name)  | 
CmtPropertyState[] | 
getPropertyStates()
Returns objects representing the state of all properties, hence all
 potential property settings, including those that are not explicitly set
 in the init method 
 | 
JavaClass | 
getRepresentedType()
Gets the JavaClass for the otherwise unrepresentable type that this
 instance is a proxy for. 
 | 
int | 
getScope()  | 
SourceVariable | 
getVariable()  | 
boolean | 
isProxy()
Determine whether or not this instance is actually a proxy representing an
 otherwise unrepresentable type. 
 | 
boolean | 
isStale()
Determine whether or not this instance is still a valid reference. 
 | 
void | 
release()
Called when subcomponent is about to fall out of scope. 
 | 
void | 
removePropertyState(CmtPropertyState propertyState)  | 
void | 
serialize()  | 
void | 
setAssignment(SourceAssignmentExpression assign)  | 
void | 
setAssignment(java.lang.String expressionText)  | 
void | 
setLiveClass(java.lang.String classname)  | 
static final java.lang.String FIELDNAME_PROPERTY_NAME
static final int METHOD_SCOPE
static final int CLASS_SCOPE
java.lang.String getName()
JavaClass getDeclaredClass()
JavaClass getLiveClass()
void setLiveClass(java.lang.String classname)
CmtComponent getComponent()
JavaClass getComponentType()
boolean isProxy()
boolean isStale()
JavaClass getRepresentedType()
isProxy()CmtComponent getOuterComponent()
CmtMethod getInitMethod()
int getScope()
CmtPropertyState[] getPropertyStates()
CmtPropertyState getPropertyState(java.lang.String name)
CmtPropertyState getDefaultPropertyState()
CmtPropertyState addPropertyState(CmtProperty property)
void addPropertyState(CmtPropertyState propertyState)
void removePropertyState(CmtPropertyState propertyState)
CmtEventState[] getEventStates()
CmtEventState getEventState(java.lang.String name)
CmtEventState getDefaultEventState()
java.lang.Object getLiveInstance()
void release()
CmtSubcomponent copy(CmtComponentSource toFile, java.util.List subcomponentList, boolean toClipboard)
void serialize()
               throws java.io.NotSerializableException,
                      java.io.IOException
java.io.NotSerializableExceptionjava.io.IOExceptionSourceVariable getVariable()
SourceAssignmentExpression getAssignment()
void setAssignment(SourceAssignmentExpression assign)
void setAssignment(java.lang.String expressionText)
java.awt.Container getAsContainer()