com.swtdesigner.api.cmt
Interface CmtComponent


public interface CmtComponent

An interface for providing information about this class including class type, properties, events, etc.


Method Summary
 java.util.List<CmtComponent> getAllChildren(java.lang.Class<?> componentClazz)
          Get flat list of direct and indirect children with given class.
 java.util.List<CmtComponent> getChildren(java.lang.Class<?> componentClazz)
          Get list of direct children with given class.
 java.lang.Object getLiveInstance()
          Get the toolkit object, such as java.awt.Component.
 java.lang.Object getModel()
          Get the internal model of component.
 java.lang.String getName()
          Get the name of the variable.
 CmtComponent getParent()
          Get the parent of this component or null, if current component is root.
 CmtComponent getRoot()
          Get the root component of this component (parent of this component is null).
 boolean hasName()
          Checks if component has name.
 

Method Detail

getAllChildren

java.util.List<CmtComponent> getAllChildren(java.lang.Class<?> componentClazz)
Get flat list of direct and indirect children with given class.

Parameters:
componentClazz - the class of children to return

getChildren

java.util.List<CmtComponent> getChildren(java.lang.Class<?> componentClazz)
Get list of direct children with given class.

Parameters:
componentClazz - the class of children to return

getLiveInstance

java.lang.Object getLiveInstance()
Get the toolkit object, such as java.awt.Component.


getModel

java.lang.Object getModel()
Get the internal model of component.


getName

java.lang.String getName()
Get the name of the variable.


getParent

CmtComponent getParent()
Get the parent of this component or null, if current component is root.


getRoot

CmtComponent getRoot()
Get the root component of this component (parent of this component is null).


hasName

boolean hasName()
Checks if component has name.