Java 设置文本字段的样式GXT 3
我想设置gxt文本字段的文本大小属性。 我从写我的文本开始。一切都好了。 接下来我需要修改我的.gwt.xml文件,在这里我遇到了麻烦 类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
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);
到底