uicomponent.java

来自「基于Junit的 功能和单元测试的的测试工具。只支持Swing.」· Java 代码 · 共 44 行

JAVA
44
字号
package org.uispec4j;

import org.uispec4j.assertion.Assertion;

import java.awt.*;

/**
 * Interface for all UI (user interface) components.
 */
public interface UIComponent {

  /**
   * Returns the Java GUI component represented by this object.
   */
  Component getAwtComponent();

  /**
   * Returns an XML representation of the component and its subcomponents.
   */
  String getDescription();

  /**
   * Returns the name of the component as it will appear in the XML representation
   * returned by {@link UIComponent#getDescription()}.
   */
  String getDescriptionTypeName();

  /**
   * Checks if the component is enabled.
   */
  Assertion isEnabled();

  /**
   * Returns the label displayed on this component, or null if this has no sense for this kind of components.
   */
  String getLabel();

  /**
   * Returns the internal name with which can be used to identify the component. This can be null
   * if no name was set by the developers.
   */
  String getName();
}

⌨️ 快捷键说明

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