@Override protected void onLoad() { super.onLoad(); ddMouseHandler.addDragStartListener(this); setDragMode(mode); iframeShimsEnabled(iframeCovers); }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override protected void onUnload() { super.onUnload(); ddMouseHandler.removeDragStartListener(this); ddMouseHandler.updateDragMode(LayoutDragMode.NONE); iframeCoverUtility.setIframeCoversEnabled(false, getElement(), LayoutDragMode.NONE); }
@Override public void updateCaption(ComponentConnector childConnector) { // CAUTION copied from GridLayoutConnector.updateCaption(ComponentConnector childConnector) VGridLayout layout = getWidget(); VGridLayout.Cell cell = layout.widgetToCell.get(childConnector.getWidget()); AbstractComponentState state = childConnector.getState(); if (VCaption.isNeeded(childConnector) || isContextHelpIconEnabled(state)) { VLayoutSlot layoutSlot = cell.slot; VCaption caption = layoutSlot.getCaption(); if (caption == null) { // use our own caption widget caption = new CubaCaptionWidget(childConnector, getConnection()); setDefaultCaptionParameters((CubaCaptionWidget)caption); Widget widget = childConnector.getWidget(); layout.setCaption(widget, caption); } caption.updateCaption(); } else { layout.setCaption(childConnector.getWidget(), null); getLayoutManager().setNeedsLayout(this); } }
@Override protected void onUnload() { super.onUnload(); ddMouseHandler.removeDragStartListener(this); ddMouseHandler.updateDragMode(LayoutDragMode.NONE); iframeCoverUtility.setIframeCoversEnabled(false, getElement(), LayoutDragMode.NONE); }
@Override protected void onLoad() { super.onLoad(); ddMouseHandler.addDragStartListener(this); setDragMode(mode); iframeShimsEnabled(iframeCovers); }