Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 设置文本字段的样式GXT 3_Java_Css_Gxt_Appearance - Fatal编程技术网

Java 设置文本字段的样式GXT 3

Java 设置文本字段的样式GXT 3,java,css,gxt,appearance,Java,Css,Gxt,Appearance,我想设置gxt文本字段的文本大小属性。 我从写我的文本开始。一切都好了。 接下来我需要修改我的.gwt.xml文件,在这里我遇到了麻烦 类com.sencha.gxt.widget.core.client.form.TextField中没有TextField外观, 唯一的TextFieldAppearance在类TextInputCell.TextFieldAppearance中,但是如果我写 <replace-with class="ru.nicetu.radient.kef.cli

我想设置gxt文本字段的文本大小属性。 我从写我的文本开始。一切都好了。 接下来我需要修改我的.gwt.xml文件,在这里我遇到了麻烦

com.sencha.gxt.widget.core.client.form.TextField
中没有TextField外观, 唯一的TextFieldAppearance在类TextInputCell.TextFieldAppearance中,但是如果我写

<replace-with
  class="ru.nicetu.radient.kef.client.appearance.KefValueBaseFieldAppearance">
  <when-type-is
    class="com.sencha.gxt.cell.core.client.form.TextInputCell.TextFieldAppearance" />
</replace-with>


什么也没发生。

gxt中的方法中有一个错误

  public TextFieldDefaultAppearance(TextFieldResources resources) {
    super(resources);
    this.resources = resources;
    this.style = this.resources.css();
  }
您需要添加行

  StyleInjectorHelper.ensureInjected(this.style, true);

最后

gxt在方法中有一个bug

  public TextFieldDefaultAppearance(TextFieldResources resources) {
    super(resources);
    this.resources = resources;
    this.style = this.resources.css();
  }
您需要添加行

  StyleInjectorHelper.ensureInjected(this.style, true);
到底