use of com.vaadin.client.ui.VOverlay in project cuba by cuba-platform.
the class Tools method createCubaTableContextMenu.
public static VOverlay createCubaTableContextMenu() {
final VOverlay tableContextMenu = createContextMenu();
tableContextMenu.setStyleName("c-context-menu");
return tableContextMenu;
}
use of com.vaadin.client.ui.VOverlay in project cuba by cuba-platform.
the class CubaHorizontalSplitPanelWidget method setDockable.
public void setDockable(boolean dockable) {
if (isDockable() == dockable) {
return;
}
if (dockable) {
dockButton = new CubaPlaceHolderWidget();
dockButton.setStyleName(SP_DOCK_BUTTON);
dockButton.addStyleName(SP_DOCK_BUTTON_LEFT);
dockButton.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
onDockButtonClick();
}
}, ClickEvent.getType());
dockButtonContainer = new VOverlay();
dockButtonContainer.addStyleName(SP_DOCK_OVERLAY);
dockButtonContainer.getElement().getStyle().setZIndex(9999);
if (dockMode == SplitPanelDockMode.LEFT) {
dockButtonContainer.setStyleName(SP_DOCK_LEFT);
} else if (dockMode == SplitPanelDockMode.RIGHT) {
dockButtonContainer.setStyleName(SP_DOCK_RIGHT);
}
dockButtonContainer.setOwner(this);
dockButtonContainer.setWidget(dockButton);
dockButtonContainer.show();
updateDockButtonPosition();
} else {
if (dockButtonContainer != null) {
dockButtonContainer.hide();
dockButtonContainer.removeFromParent();
dockButtonContainer = null;
dockButton = null;
}
}
}
use of com.vaadin.client.ui.VOverlay in project cuba by cuba-platform.
the class Tools method createCubaTablePopup.
public static VOverlay createCubaTablePopup(boolean autoClose) {
final VOverlay tableCustomPopup = autoClose ? createContextMenu() : new VOverlay();
tableCustomPopup.setStyleName("c-table-popup");
return tableCustomPopup;
}
use of com.vaadin.client.ui.VOverlay in project cuba by cuba-platform.
the class Tools method createCubaTableContextMenu.
public static VOverlay createCubaTableContextMenu() {
VOverlay tableContextMenu = createTableContextMenu();
tableContextMenu.setStyleName("c-context-menu");
return tableContextMenu;
}
use of com.vaadin.client.ui.VOverlay in project cuba by cuba-platform.
the class Tools method createCubaTablePopup.
public static VOverlay createCubaTablePopup(boolean autoClose) {
VOverlay tableCustomPopup = autoClose ? createTableContextMenu() : new VOverlay();
tableCustomPopup.setStyleName("c-table-popup");
return tableCustomPopup;
}
Aggregations