标签: popuppanel

GWT:PopupPanel setPopupPositionAndShow()提供了错误的offsetWidth和offsetHeight

PopupPanel在GWT 写了自己的.我想显示相对于其他小部件的弹出窗口.我对该类的实现如下所示:

public class Popover extends PopupPanel implements PositionCallback {

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

    interface Binder extends UiBinder<Widget, Popover> {
    }

    public Popover() {
        setWidget(binder.createAndBindUi(this));
        setStylePrimaryName("popover");
    }

    public void show(UIObject relative) {

        this.relative = relative;
        setPopupPositionAndShow(this);

    }

    public void setPosition(int offsetWidth, int offsetHeight) {

        if (relative != null) {

            int left = relative.getAbsoluteLeft();
            int top = relative.getAbsoluteTop();
            int width = relative.getOffsetWidth();
            int height = relative.getOffsetHeight();

            int topCenter = top + height / …
Run Code Online (Sandbox Code Playgroud)

gwt popuppanel

2
推荐指数
1
解决办法
3695
查看次数

RichFaces 3的RichFaces 4 <rich:popupPanel>的等价物

我正在寻找类似于<rich:popupPanel>RichFaces 4的东西,但后来是RichFaces 3.我没有在文档中找到任何东西.只有<rich:modalPanel>哪个不适合我的需求,因为它在表格中显示我的数据模型时遇到问题.选择不起作用,它始终不返回任何行.如果我把我的表组件放入<rich:panel><rich:togglePanel>,那么它工作正常.

<rich:modalPanel>在RichFaces 3中是否有任何弹出窗口?

jsf richfaces popuppanel

1
推荐指数
1
解决办法
837
查看次数

标签 统计

popuppanel ×2

gwt ×1

jsf ×1

richfaces ×1