1

gxt TextField の text-size プロパティを設定したいと考えています。MyTextFieldAppearance の作成から始めます。これですべてOKです。次に、my.gwt.xml ファイルを変更する必要がありますが、ここで問題が発生します。

クラスにTextFieldAppearance はありませんcom.sencha.gxt.widget.core.client.form.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>

何も起こりません。

4

1 に答える 1

1

gxt、メソッドにバグがあります

  public TextFieldDefaultAppearance(TextFieldResources resources) {
    super(resources);
    this.resources = resources;
    this.style = this.resources.css();
  }

行を追加する必要があります

  StyleInjectorHelper.ensureInjected(this.style, true);

最後まで

于 2012-07-04T10:47:29.437 に答える