cmtcomponent.java

来自「SWT_designer安装软件」· Java 代码 · 共 41 行

JAVA
41
字号
package com.swtdesigner.api.cmt;

import java.util.List;

/**
 * An interface for providing information about this class including class type,
 * properties, events, etc.
 * 
 * @author scheglov_ke
 */
public interface CmtComponent {
	/**
	 * Returns the name of the variable.
	 */
	String getName();
	/**
	 *  Get the live Instance of the subcomponent.
	 */
	Object getLiveInstance();
	/**
	 * Get the parent of this component or <code>null</code>, if current component is root.
	 */
	CmtComponent getParent();
	/**
	 * Get the root component of this component (parent of this component is <code>null</code>).
	 */
	CmtComponent getRoot();
	/**
	 * Get list of direct children with given class.
	 * 
	 * @param componentClazz the class of children to return
	 */
	List/*<ComComponent>*/ getChildren(Class componentClazz);
	/**
	 * Get flat list of direct and indirect children with given class.
	 * 
	 * @param componentClazz the class of children to return
	 */
	List/*<ComComponent>*/ getAllChildren(Class componentClazz);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?