1

我看到了这个教程,并创建了抽象表单工具按钮。但在 RAP 中,我无法配置图标图像。

我的工具按钮是这样的:

 @Order(10.0)
public class TestPageTool extends AbstractFormToolButton {

  @Override
  protected String getConfiguredIconId() {

    return Icons.EclipseScout;
  }

  @Override
  protected String getConfiguredText() {

    return TEXTS.get("TestPage");
  }
}

结果是:

在此处输入图像描述

4

1 回答 1

1

可以在小部件演示应用程序中找到解决方案(现场演示源代码关于

图像被定义了两次:

在 RAP 客户端中,您还需要自定义 CSS,将 RAP Bundle 中定义的图标与 Tool Button 绑定。检查的内容application.css有一个例子:

org.eclipsescout.demo.widgets.ui.rap/theme/application.css

于 2015-04-20T10:18:13.630 回答