GWT:无法从DockLayoutPanel转换为复合

GWT:无法从DockLayoutPanel转换为复合,gwt,uibinder,Gwt,Uibinder,首先,我理解这意味着什么:DockLayoutPanel不扩展任何反过来扩展复合的类。我只是不知道怎么修 我有一个类Mapmaker2.java,它是我整个应用程序的主要用户界面。基础是DockLayoutPanel,它依次包含VerticalPanel、StackLayoutPanel等。由于这是一个MVP应用程序,我不希望用uibinder模板标记我的EntryPoint类 下面是java类: public class MapmakerView2 extends Composite { @

首先,我理解这意味着什么:DockLayoutPanel不扩展任何反过来扩展复合的类。我只是不知道怎么修

我有一个类Mapmaker2.java,它是我整个应用程序的主要用户界面。基础是DockLayoutPanel,它依次包含VerticalPanel、StackLayoutPanel等。由于这是一个MVP应用程序,我不希望用uibinder模板标记我的EntryPoint类

下面是java类:

public class MapmakerView2 extends Composite {

@UiTemplate("MapmakerView2.ui.xml")
interface Binder extends UiBinder<Composite, MapmakerView2> {}

private static Binder binder = GWT.create(Binder.class);

@UiField StackLayoutPanel interfaceStack;

public MapmakerView2() {

    initWidget(binder.createAndBindUi(this));
}
}
公共类MapmakerView2扩展了复合{
@UiTemplate(“MapmakerView2.ui.xml”)
接口绑定器扩展UiBinder{}
私有静态绑定器Binder=GWT.create(Binder.class);
@UiField StackLayoutPanel接口堆栈;
公共MapmakerView2(){
initWidget(binder.createAndBindUi(this));
}
}
以下是uibinder模板:

 <ui:UiBinder> <!-- snipped out xmlns stuff -->
<g:DockLayoutPanel unit="PX">
    <g:north size="100">
        <g:VerticalPanel>
            <!-- Logo -->
            <!-- Login Link -->
        </g:VerticalPanel>
    </g:north>
    <g:west size="150">
        <g:StackLayoutPanel ui:field="interfaceStack" styleName="{style.shortcuts}" unit="PX">
            <g:stack>
                <g:header size="10">
                    <b>Features</b>
                </g:header>
                <mapmaker:FeaturesForm/>
            </g:stack>
            <g:stack size="10">
                <g:header  size="10">
                    <b>Export</b>
                </g:header>
                <mapmaker:ExportForm/>
            </g:stack>
            <g:stack>
                <g:header size="10">
                    <b>Admin</b>
                </g:header>
                <mapmaker:AdminForm/>
            </g:stack>
            <g:stack>
                <g:header size="10">
                    <b>Help</b>
                </g:header>
                <mapmaker:HelpForm/>
            </g:stack>
        </g:StackLayoutPanel>
    </g:west>
    <g:center>
        <!-- Display Map Here -->
        <mapmaker:MapBox/>
    </g:center>
    <g:south size="100">
        <!-- Display i18n disclaimer stuff here -->
        <mapmaker:Disclaimer/>
    </g:south>
</g:DockLayoutPanel>
</ui:UiBinder>

特征
出口
管理
帮助
有人能帮忙吗?

只要换一个就行了

interface Binder extends UiBinder<Composite, MapmakerView2> {}
接口绑定器扩展UiBinder{}

接口绑定器扩展UiBinder{}

接口绑定器扩展UiBinder{}
好吧,我太傻了。:)我已经试过了,但我也从“extenscomposite”改为“extenseddocklayoutpanel”,并且遇到了构造函数的问题。谢谢
interface Binder extends UiBinder<Widget, MapmakerView2> {}
interface Binder extends UiBinder<DockLayoutPanel, MapmakerView2> {}