I just downloaded the GXT 3.1.0 beta jars yesterday, and was trying to convert some grid row numbering CSS overrides that I had used in GXT 3.0.6. However, when I subclass RowNumbererDefaultAppearance and try to give it my own RowNumbererResources sub-interface, I can't because it's constructor is defined as:
public RowNumbererDefaultAppearance() {
resources = GWT.create(RowNumbererResources.class);
resources.styles().ensureInjected();
}
Typically, default appearance classes have constructors like:
public GroupSummaryViewDefaultAppearance() {
this(GWT.<GroupSummaryViewResources>create(GroupSummaryViewResources.class));
}
public GroupSummaryViewDefaultAppearance(GroupSummaryViewResources resources) {
super(resources);
}
Why doesn't the RowNumbererDefaultAppearance follow this pattern and allow setting of its resources class via a constructor? Then I could just override this default constructor to GWT.create my own resources interface instead.
public RowNumbererDefaultAppearance() {
resources = GWT.create(RowNumbererResources.class);
resources.styles().ensureInjected();
}
Typically, default appearance classes have constructors like:
public GroupSummaryViewDefaultAppearance() {
this(GWT.<GroupSummaryViewResources>create(GroupSummaryViewResources.class));
}
public GroupSummaryViewDefaultAppearance(GroupSummaryViewResources resources) {
super(resources);
}
Why doesn't the RowNumbererDefaultAppearance follow this pattern and allow setting of its resources class via a constructor? Then I could just override this default constructor to GWT.create my own resources interface instead.
Aucun commentaire:
Enregistrer un commentaire