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