public void setWindowOrder(int order) {
int zIndex = (order + Z_INDEX_BASE);
if (modal) {
- zIndex += 1000;
DOM.setStyleAttribute(modalityCurtain, "zIndex", "" + zIndex);
}
DOM.setStyleAttribute(getElement(), "zIndex", "" + zIndex);
}
+ @Override
public void show() {
if (modal) {
showModalityCurtain();
}
}
+ @Override
public void hide() {
if (modal) {
hideModalityCurtain();
+ "px");
DOM.setStyleAttribute(modalityCurtain, "position", "absolute");
}
+ DOM.setStyleAttribute(modalityCurtain, "zIndex", ""
+ + (windowOrder.indexOf(this) + Z_INDEX_BASE));
DOM.appendChild(RootPanel.getBodyElement(), modalityCurtain);
}
}
}
+ @Override
public void setPopupPosition(int left, int top) {
super.setPopupPosition(left, top);
if (left != uidlPositionX && client != null) {
DOM.setInnerHTML(headerText, html);
}
+ @Override
protected Element getContainerElement() {
// in GWT 1.5 this method is used in PopupPanel constructor
if (contents == null) {
return contents;
}
+ @Override
public void onBrowserEvent(final Event event) {
final int type = DOM.eventGetType(event);
Util.runDescendentsLayout(this);
}
+ @Override
public void setWidth(String width) {
if (!"".equals(width)) {
DOM
}
}
+ @Override
public boolean onEventPreview(Event event) {
if (dragging) {
onDragEvent(event);
client.updateVariable(id, "scrollLeft", scrollLeft, false);
}
+ @Override
public void addStyleDependentName(String styleSuffix) {
// IWindow's getStyleElement() does not return the same element as
// getElement(), so we need to override this.
true);
}
+ @Override
protected void onAttach() {
super.onAttach();
// Calculate space required by window borders, so we can accurately