public VImageViewer() { /* Create widget's root panel */ panelRoot = new FlowPanel(); Style style = panelRoot.getElement().getStyle(); style.setPosition(Position.RELATIVE); setStyleName(CLASSNAME); panelRoot.setStyleName(CLASSNAME + "-flow"); style.setWidth(100, Unit.PCT); style.setHeight(100, Unit.PCT); /* Create image container */ imageContainer = new FlowPanel(); style = imageContainer.getElement().getStyle(); style.setPosition(Position.ABSOLUTE); style.setOverflow(Overflow.HIDDEN); /* Add widgets */ setWidget(panelRoot); panelRoot.add(imageContainer); /* Register handlers */ addDomHandler(this, KeyDownEvent.getType()); addDomHandler(this, ClickEvent.getType()); addMouseWheelHandler(new MouseWheelHandler() { public void onMouseWheel(MouseWheelEvent event) { event.preventDefault(); if (event.isNorth()) { moveImages(true); } else { moveImages(false); } } }); }
public DatasetWidget(Dataset dataset, String widget_uuid) { super(dataset.getName(), widget_uuid); outNodeShapes.add(new OutNodeShape(this, 0)); label.setText(""); nameLabel.setText(dataset.getName()); label.setStyleName("filebackground"); label.setPixelSize(30, 42); nameLabel.setWidth("100%"); abspanel.add(nameLabel, 30, 0); abspanel.getElement().getStyle().setOverflow(Overflow.VISIBLE); canvas.setPixelWidth(30); canvas.setPixelHeight(45); canvas.setCoordSize(30, 45); this.dataset = dataset; ptable = new DatasetPropertyTable(dataset); }
public void showRequestDetail(Long id) { iAssignmentTable.clearTable(1); LoadingWidget.getInstance().show(MESSAGES.waitLoadTeachingRequestDetail()); ToolBox.setMaxHeight(iScroll.getElement().getStyle(), Math.round(0.9 * Window.getClientHeight()) + "px"); RPC.execute(new TeachingRequestDetailRequest(id), new AsyncCallback<TeachingRequestInfo>() { @Override public void onFailure(Throwable caught) { LoadingWidget.getInstance().hide(); UniTimeNotifications.error(MESSAGES.failedToLoadTeachingRequestDetail(caught.getMessage()), caught); ToolBox.checkAccess(caught); } @Override public void onSuccess(TeachingRequestInfo result) { LoadingWidget.getInstance().hide(); populate(result, null, null); GwtHint.hideHint(); center(); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); } }); }
public void showInstructorDetail(Long id) { iAssignmentTable.clearTable(1); LoadingWidget.getInstance().show(MESSAGES.waitLoadTeachingRequestDetail()); ToolBox.setMaxHeight(iScroll.getElement().getStyle(), Math.round(0.9 * Window.getClientHeight()) + "px"); RPC.execute(new TeachingAssignmentsDetailRequest(id), new AsyncCallback<InstructorInfo>() { @Override public void onFailure(Throwable caught) { LoadingWidget.getInstance().hide(); UniTimeNotifications.error(MESSAGES.failedToLoadTeachingRequestDetail(caught.getMessage()), caught); ToolBox.checkAccess(caught); } @Override public void onSuccess(InstructorInfo result) { LoadingWidget.getInstance().hide(); populate(null, null, result); GwtHint.hideHint(); center(); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); } }); }
public void show(List<EventMeetingRow> meetings, ApproveEventRpcRequest.Operation operation) { iTable.setValue(meetings); switch (operation) { case APPROVE: setText(MESSAGES.dialogApprove()); break; case REJECT: setText(MESSAGES.dialogReject()); break; case INQUIRE: setText(MESSAGES.dialogInquire()); break; case CANCEL: setText(MESSAGES.dialogCancel()); break; } iFooter.setEnabled("approve", operation == ApproveEventRpcRequest.Operation.APPROVE); iFooter.setEnabled("reject", operation == ApproveEventRpcRequest.Operation.REJECT); iFooter.setEnabled("inquire", operation == ApproveEventRpcRequest.Operation.INQUIRE); iFooter.setEnabled("cancel", operation == ApproveEventRpcRequest.Operation.CANCEL); iFileUpload.check(); center(); if (iStandardNotes.getItemCount() == 0) iNotes.setFocus(true); else iStandardNotes.setFocus(true); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); }
public void showDialog(Long eventId, List<MeetingConflictInterface> conflicts) { iStep = Math.max(1, (Window.getClientWidth() - 100) / 105); ToolBox.setMaxHeight(iScrollRooms.getElement().getStyle(), (Window.getClientHeight() - 100) + "px"); ToolBox.setMaxHeight(iScrollDates.getElement().getStyle(), (Window.getClientHeight() - 100) + "px"); int nrMonths = Math.max(1, Math.min(5, (Window.getClientWidth() - 100) / 225)); iDates.setWidth((225 * nrMonths) + "px"); iConflicts = conflicts; iResponse = null; iEventId = eventId; setWidget(iDatesForm); center(); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); iDates.setFocus(true); }
/** * Sets up the PasteBuffer DOM. * * Implementations should call positionPasteBuffer */ protected void setupDom() { element = Document.get().createDivElement(); // For some reason setting display to none prevents this trick from working // instead, we move it away from view, so it's still "visible" // NOTE(user): We setwhitespace pre-wrap prevents the browser from // collapsing sequences of whitespace. This is important to ensure that the // spaces after a start tag, or before an end tag are preserved through copy/paste. // Also, we can't use DomHelper.setContentEditable as setting -webkit-user-modify // to read-write-plaintext-only will force the pasted content to plain text and // kill all formatting and semantic paste. // This trick doesn't work in Firefox, because the pre-wrap attribute is not // preserved through copy, to fix this in Firefox, we'll need to manually // replace spaces with element.setAttribute("contentEditable", "true"); JsoView.as(element.getStyle()).setString("white-space", "pre-wrap"); // DomHelper.setContentEditable(element, true, false); element.getStyle().setOverflow(Overflow.HIDDEN); positionPasteBuffer(element); Document.get().getBody().appendChild(element); }
private Widget createAdditionalInfoWidget() { String documentation = completionItem.getItem().getDocumentation(); if (documentation == null || documentation.trim().isEmpty()) { documentation = "No documentation found."; } HTML widget = new HTML(documentation); widget.setWordWrap(true); widget.getElement().getStyle().setColor(theme.completionPopupItemTextColor()); widget.getElement().getStyle().setFontSize(13, Style.Unit.PX); widget.getElement().getStyle().setMarginLeft(4, Style.Unit.PX); widget.getElement().getStyle().setOverflow(Overflow.AUTO); widget.getElement().getStyle().setProperty("userSelect", "text"); widget.setHeight("100%"); return widget; }
public ArchiveEntryImagePanel(ArchiveEntryCollectionRef arc, ArchiveEntry entry) { _arc = arc; _entry = entry; _ap = new AbsolutePanel(); _ap.fitToParent(); _ap.setOverflow(Overflow.HIDDEN); initWidget(_ap); addAttachHandler(new Handler() { @Override public void onAttachOrDetach(AttachEvent event) { if (event.isAttached()) { loadImage(); } } }); }
public SimpleTabPanel() { _hp = new HorizontalPanel(); _hp.setHeight100(); _hp.setPosition(Position.ABSOLUTE); _hp.setLeft(0); AbsolutePanel ap = new AbsolutePanel(); ap.setOverflow(Overflow.HIDDEN); ap.setPreferredHeight(TAB_BAR_HEIGHT); ap.add(_hp); add(ap); _sp = new SimplePanel(); _sp.fitToParent(); _sp.setBorderTop(2, BorderStyle.SOLID, TAB_COLOR); _sp.setBorderLeft(1, BorderStyle.SOLID, TAB_COLOR); _sp.setBorderRight(1, BorderStyle.SOLID, TAB_COLOR); _sp.setBorderBottom(1, BorderStyle.SOLID, TAB_COLOR); add(_sp); _buttons = new HashMap<String, TabButton>(); _widgets = new HashMap<String, Widget>(); _listeners = new HashMap<String, TabListener>(); }
public TabBar(CTabPanel tabPanel) { _tabPanel = tabPanel; _tabsArea = new HorizontalPanel(); _tabsArea.setHeight100(); _tabsArea.setPosition(Position.ABSOLUTE); _tabsArea.setLeft(0); _tabsArea.setZIndex(Z_INDEX_TABS); add(_tabsArea); initControlsAreaLeft(); initControlsAreaRight(); setOverflow(Overflow.HIDDEN); setBorderBottom(3, Style.BorderStyle.SOLID, TAB_COLOUR_SELECTED); setWidth100(); setPreferredHeight(DEFAULT_TAB_BAR_HEIGHT); }
public TankMovingAnimation(HTML mapContainer, int startX, int startY, int endX, int endY, ImageResource resource, Audio sfx, int tankSize) { piece = resource; this.startX = startX; this.startY = startY; this.endX = endX; this.endY = endY; this.startWidth = tankSize; this.startHeight = tankSize; sound = sfx; cancelled = false; panel = new AbsolutePanel(); moving = new Image(resource); moving.setPixelSize(startWidth, startHeight); panel.add(moving, startX, startY); panel.getElement().getStyle().setOverflow(Overflow.VISIBLE); panel.getElement().getStyle().setPosition(Position.RELATIVE); mapContainer.getElement().insertFirst(panel.getElement()); }
public void init() { taskScrollPanel.getElement().getStyle().setPosition(Position.ABSOLUTE); taskScrollPanel.getElement().getStyle().setOverflow(Overflow.SCROLL); //initialize the SVG panel initSVG(); //add scroll handler taskScrollPanel.addScrollHandler(new ScrollHandler() { @Override public void onScroll(ScrollEvent event) { int hscroll = taskScrollPanel.getHorizontalScrollPosition() * -1; firstHeaderRow.getElement().getStyle().setLeft(hscroll, Unit.PX); secondHeaderRow.getElement().getStyle().setLeft(hscroll, Unit.PX); taskBackgroundPanel.getElement().getStyle().setLeft(hscroll, Unit.PX); display.fireEvent(event); // view.onScroll(taskScrollPanel.getHorizontalScrollPosition(), // taskScrollPanel.getScrollPosition()); } }); }
public void initSVG() { svgPanel = new SVGPanel(); svgPanel.setPointerEvents("none"); svgPanel.setShapeRendering("crispEdges"); svgPanel.getElement().getStyle().setOverflow(Overflow.HIDDEN); svgPanel.getElement().getStyle().setPosition(Position.ABSOLUTE); svgPanel.getElement().getStyle().setTop(0, Unit.PX); svgPanel.getElement().getStyle().setLeft(0, Unit.PX); // add the arrow marker to the svg panel svgArrowMarker = new SVGMarker("Triangle", .5, "black", "black"); svgArrowMarker.setViewBox("0 0 8 8"); svgArrowMarker.setRefX(0); svgArrowMarker.setRefY(4); svgArrowMarker.setMarkerWidth(8); svgArrowMarker.setMarkerHeight(8); svgArrowMarker.add(new SVGPath("M 0 0 L 8 4 L 0 8 z")); svgArrowMarker.setOrient("auto"); svgArrowMarker.setMarkerUnits("strokeWidth"); svgDefs = new SVGDefs(); svgDefs.add(svgArrowMarker); svgPanel.add(svgDefs); }
/** * Create a MapBox logo. * * @return MapBox logo */ public static Control createMapboxLogo() { ControlOptions controlOptions = new ControlOptions(); LinkElement mapboxLogo = Document.get().createLinkElement(); mapboxLogo.setHref("https://mapbox.com/about/maps"); mapboxLogo.setTarget("_blank"); mapboxLogo.getStyle().setPosition(Position.ABSOLUTE); mapboxLogo.getStyle().setLeft(2, Unit.PX); mapboxLogo.getStyle().setBottom(5, Unit.PX); mapboxLogo.getStyle().setWidth(126, Unit.PX); mapboxLogo.getStyle().setHeight(40, Unit.PX); mapboxLogo.getStyle().setDisplay(Display.BLOCK); mapboxLogo.getStyle().setOverflow(Overflow.HIDDEN); mapboxLogo.getStyle().setBackgroundImage("url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAAAoCAMAAAAFWtJHAAAAwFBMVEUAAAAAAAAAAABtbW0AAAAAAAAAAAAAAAAAAAAAAAClpaUAAADp6ekAAAD5+fna2toAAAAMDAzv7+/Nzc0AAAA2Njb8/Pz9/f3T09MAAAAAAAD7+/sAAAArKyuxsbH39/fs7OwbGxuIiIjz8/N8fHyenp7u7u74+PgAAAC8vLxWVlbx8fF1dXXl5eVcXFyUlJTQ0NDFxcVCQkLAwMC4uLj19fXo6OjW1tarq6ve3t77+/vi4uL6+vrKysrNzc3///8w7gSSAAAAP3RSTlMAOQNdPSYBPywKexLLGPCxNEHXnzFL+v2nGwf1IEiE6dBFad9jd9PuLo1V2mDDV3Cjl06SiuXIq4C3973ym6BQMVUPAAAEXElEQVR4Ae2WCVP6OBiH05L0l1IqrVbkKHJ54I0oHn+PfP9vtUle0z/YdhbH2XVnd58ZnRJIeHiPJOx//mH4vQSAN+8FjAhFxgHIaPvJeZ99hxwEElon5iAQbj85Y98g8ODwjEOMAvGFyeE3FEKgodTBqj0BJGN9DhyNd5Ta3ean9QEopfaA+LsKhnEKRExqg4FSP6Og7oEkAjBWnxSCgBX4xF+kcLoPcOBQrSv0e5kH7s1j37jECQieCTPiFGxL5VHw2zQWCeeJiPt6kjRQw0XSkIdVChf67xGa4alSnZlT6HEQ8CK9ANbhvXUF9xlDkBfTuHDWScgC9+z5FQpPI12TlwC6+sV7ixR8CUMKiwjm2GQeOQWHMGuHGdbnObJAwCEqFJpNU5H6uaPUaEIKiQfg+PHk1+u4OwW9PlWW2ctbA4BHCtp+cNK+H8Jos4gDmC5ar4Nx9waaG/2B13NgDqS7+vm2RgEtEws82P+kwIHhs/pgkQKcFIhfd7CogtGNjYMHTLpurD0ERbYFw4JaD3GlQuNAL/JEsSAF4HqlCnaHACk4WhOn4OgCkMD5hSpYNYDJTD8Y46n+jsE1kPhVCuR6QBXhFK7MUOu9O6b1SWF3b+/9ZVWMGOlu93E8UDaAhgc7bfH+0DHqKXCkHzoNDFfU+zxiVQrUC9QXTuHYtKpN59OA3IxCG4b7jh6ZFuVockaNTW09mkJzOaPU49a6mE9cAchZpQJNpUWcwgV9r6FJswsFKrITp2B5pMBMdnS0z2HZNy2+BNKxSZxZfglkrFYBJxQnpzA5sN/HheR2aFQoZBLAi149dQoyAYYjW0hHlHguBAdMcR0DuDZ5omevX6+AI8qcU7ikKT3GBHCnXwydgmCC0tRwCnGQ2Wp6Be71yNIWfQSkOl9vAI1SBCNWrwC01RROgX7BuT2HI4r7tFAw086p/NwZEdOEa7R1uAFuNmQPuKAEAjYNQ0CyeoUEWHYBnpQVQgpvc0Ph+gsKlAnKg1+vEHsw5LKciLKCAJobiWBzYFGbCKpHqkZZrxBFHEASyFI59vJPCskcwNVGOWZAOqsrR+pKbaNeAMT1CixMEtlnsqopNxUMzVJT3tY35aXZm6a6Y9QhwMN6BUJWbE1lhbMO1WehkO7poO0sK7em9MJGxp1XSbC1gtugzzSLQmGsX7VntJGSwsPZ2d2z3bIPKzdoOp3Wzqt8G4XyMVUoFIxLx1S7+piaHtCvR3FeRVsq0GFdp9C5TbGpcNqsPqyHKxcfd14h21KhuLKUFU4f3osrC7F6uV3WXFnadL7wyAPeKDXw2RoJCO5GY4DouYvb/gepVXheLoewzPseQG9N/vzilrMIjoStE3++zvle4eSurw7XEe76ynI4aq+v7lEyt1x5awiFlFLQbHKIpabnM3eJLym4Szzzc/du7SU+zOXv9UNpECH7IoH/gecURPlN9vdQpeD47yhIFNX0U0QgvID9nENm+yxk/xb+AGAjNfRZuk9qAAAAAElFTkSuQmCC)"); controlOptions.setElement(mapboxLogo); return new Control(controlOptions); }
private void updateTableRow(final DisplayInfo display, int row) { int col = 0; gr.setWidget(row, col++, new DisplayHeartbeatWidget(display.getDisplayStatus() /*, display.getBlockExpiryDate() */)); gr.getCellFormatter().getElement(row, 0).getStyle().setOverflow(Overflow.VISIBLE); // gr.setAction(row, 1, display.getName(), display.getId() + "," + display.getCompanyId()); gr.setHyperlink(row, col++, display.getName(), ContentId.DISPLAY_MANAGE, display.getId(), display.getCompanyId()); //gr.setText(row, 1, display.getId()); gr.setText(row, col++, display.getSubscriptionStatusName()); // HTML upgradeMode = new HTML(display.getBrowserUpgradeMode() == 0 ? display.getBrowserUpgradeModeString() : // "<span style='color:red;'>" + display.getBrowserUpgradeModeString() + "</span>"); HTML upgradeMode = new HTML(display.getBrowserUpgradeMode() == 0 ? "Yes" : "<span style='color:red;'>No</span>"); gr.setWidget(row, col++, upgradeMode); // gr.setText(row, col++, display.getBrowserUpgradeModeString()); gr.setText(row, col++, display.getWidth() + "x" + display.getHeight()); gr.setText(row, col++, display.getAddress()); //gr.setText(row, 5, display.getPnoControlled() ? "Y" : "N"); //gr.setText(row, 6, display.getPlayerVersion()); //gr.setText(row, 5, display.getCompanyName()); gr.setText(row, col++, LastModifiedWidget.getLastModified(display.getChangedBy(), display.getChangeDate())); }
public void show(PlaceholderInfo placeholder, PresentationInfo presentation){ super.show(); if (placeholder == null){ placeholder = new PlaceholderInfo(); } if (placeholder.getPlaylistItems() == null) { placeholder.setPlaylistItems(new ArrayList<PlaylistItemInfo>()); } this.placeholder = placeholder; this.presentation = presentation; formValidator.clear(); bindData(); // AD - Temporarily removed focus because of Ctrl+V functionality pasting into textbox // widthTextBox.setFocus(true); center(); this.getElement().getStyle().setOverflow(Overflow.AUTO); }
public void initWidget(PresentationInfo presentation){ getElement().getStyle().setBackgroundColor("#DDDDDD"); getElement().getParentElement().setPropertyString("className", "rdn-DeckPanel"); getElement().getParentElement().getStyle().setPropertyPx("width", (int)(Window.getClientWidth() - 31)); getElement().getParentElement().getStyle().setPropertyPx("height", (int)(CommonHeaderController.getContentHeight() - 50)); getElement().getParentElement().getStyle().setBackgroundColor("#DDDDDD"); getElement().getParentElement().getStyle().setOverflow(Overflow.AUTO); if (presentation == null || presentation.getPlaceholders() == null){ clear(); return; } this.presentation = presentation; fixPlaceholderOrder(null); bindData(); }
private void styleControls() { linksPanel.getElement().getStyle().setPadding(10, Unit.PX); linksPanel.setSize("275px", "389px"); linksPanel.addStyleName("tutorial-inner-gradient"); linksPanel.addStyleName("tutorial-gradient-overlay-middle"); dontShowCheckbox.addStyleName("rdn-CheckBox"); dontShowCheckbox.getElement().getStyle().setFontSize(13, Unit.PX); videoFrame.setSize("640px", "385px"); videoFrame.getElement().setPropertyInt("frameBorder", 0); videoFrame.getElement().getStyle().setBackgroundColor("black"); startVideoImage.setSize("640px", "385px"); startVideoImage.getElement().getStyle().setCursor(Cursor.POINTER); mainPanel.getElement().getStyle().setOverflow(Overflow.VISIBLE); setSize("928px", "398px"); addStyleName("tutorial-rounded-border"); addStyleName("tutorial-gradient-overlay-up"); }
public ReportSelectListViewImpl(List<ResourceListItem> dataList) { m_dataList = dataList; m_selectionModel = new MultiSelectionModel<ResourceListItem>(); m_selectionModel.addSelectionChangeHandler(new Handler() { @Override public void onSelectionChange(SelectionChangeEvent event) { if(m_selectionModel.getSelectedSet().size() > 0) { m_selectedReports = new ArrayList<ResourceListItem>(m_selectionModel.getSelectedSet()); }else { m_selectedReports = null; } } }); initWidget(uiBinder.createAndBindUi(this)); m_layoutPanel.setSize("100%", "500px"); m_layoutPanel.getElement().getStyle().setOverflow(Overflow.AUTO); m_treeContainer.add(makeCellTree(m_dataList)); }
/** {@inheritDoc} */ public void showLocationDetails(final String name, final String htmlTitle, final String htmlContent) { final MQAPoi point = getMarker(name); if (point != null) { point.setInfoTitleHTML(htmlTitle); point.setInfoContentHTML(htmlContent); point.showInfoWindow(); final NodeList<Element> elements = Document.get().getElementsByTagName("div"); for (int i = 0; i < elements.getLength(); i++) { final Element e = elements.getItem(i); if (e.getClassName().equals("mqpoicontenttext")) { final Style s = e.getStyle(); s.setOverflow(Overflow.HIDDEN); break; } } } }
/** * Construct a "Sidebar" for the provided DecisionTable * @param resources * @param isReadOnly * @param eventBus */ public AbstractVerticalDecoratedGridSidebarWidget( ResourcesProvider<T> resources, boolean isReadOnly, EventBus eventBus ) { // Argument validation performed in the superclass constructor super( resources, isReadOnly, eventBus ); // Construct the Widget scrollPanel = new ScrollPanel(); VerticalPanel container = new VerticalPanel(); selectors = new VerticalSelectorWidget( eventBus ); container.add( spacer ); container.add( scrollPanel ); scrollPanel.add( selectors ); // We don't want scroll bars on the Sidebar scrollPanel.getElement().getStyle().setOverflow( Overflow.HIDDEN ); initWidget( container ); }
public VSwipeView() { setStyleName(CLASSNAME); getElement().getStyle().setProperty("webkitUserSelect", "none"); /* * Touch scrolling using one finger handled by TouchScrollDelegate. */ sinkEvents(Event.TOUCHEVENTS); scrollElement = getElement(); Style style = scrollElement.getStyle(); style.setOverflow(Overflow.AUTO); style.setHeight(100, Unit.PCT); style.setPosition(Position.ABSOLUTE); sinkEvents(Event.MOUSEEVENTS); DOM.sinkEvents(scrollElement, Event.ONSCROLL); touchScrollDelegate = new TouchScrollDelegate(scrollElement); initHandlers(); }
/** * Pass references to the control layer and map * * @param m - map * @param cl - control layer */ public ControlHandler(MapWidget m, AbsolutePanel cl){ this.map = m; this.controlLayer = cl; controlLayer.getElement().getStyle().setPosition(com.google.gwt.dom.client.Style.Position.ABSOLUTE); controlLayer.getElement().getStyle().setOverflow(Overflow.VISIBLE); controlLayer.getElement().getStyle().setTop(0, Unit.PX); controlLayer.getElement().getStyle().setLeft(0, Unit.PX); controlLayer.setStyleName("controlLayer"); map.addResizeHandler(new MapResizeHandler(){ @Override public void onMapResize(Extent extent, int width, int height) { moveControls(); } }); }
private void initializePanels() { applyIdAndClassToView(mainPanel); outerPanel.getElement().getStyle().setOverflow(Overflow.VISIBLE); gapsPanel.getElement().getStyle().setOverflow(Overflow.VISIBLE); Style mainPanelStyle = mainPanel.getElement().getStyle(); mainPanelStyle.setPosition(Position.ABSOLUTE); mainPanelStyle.setTop(0, Unit.PX); mainPanelStyle.setLeft(0, Unit.PX); }
@Override public void openDialog(String title, String source, String width, String height, boolean noCacheTS) { if (isShowing()) hideDialog(); GwtHint.hideHint(); iScrollLeft = Window.getScrollLeft(); iScrollTop = Window.getScrollTop(); Window.scrollTo(0, 0); LoadingWidget.getInstance().show("Loading " + title + " ..."); setText(title); if (noCacheTS) { String hash = null; int hashIdx = source.lastIndexOf('#'); if (hashIdx >= 0) { hash = source.substring(hashIdx); source = source.substring(0, hashIdx); } iFrame.setUrl(source + (source.indexOf('?') >= 0 ? "&" : "?") + "noCacheTS=" + new Date().getTime() + (hash == null ? "" : hash)); } else { iFrame.setUrl(source); } iCheckLoadingWidgetIsShowing.schedule(30000); History.newItem(title, false); iPopup.setPopupPosition(0, 0); iPopup.show(); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); }
@Override public void findCourse() { iFilter.setAriaLabel(isAllowFreeTime() ? ARIA.courseFinderFilterAllowsFreeTime() : ARIA.courseFinderFilter()); AriaStatus.getInstance().setText(ARIA.courseFinderDialogOpened()); if (iTabs != null) for (CourseFinderTab tab: iTabs) tab.changeTip(); center(); RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN); Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { iFilter.setFocus(true); } }); }
public TableAggregationRow(TableWidget tableWidget) { this.tableWidget = tableWidget; setElement(Document.get().createDivElement()); getElement().setClassName(tableWidget.getStylePrimaryName() + "-arow"); getElement().getStyle().setOverflow(Overflow.HIDDEN); }
public ReviewValidateView() { super(); outer = BINDER.createAndBindUi(this); Window.enableScrolling(true); Window.setMargin("0px"); Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); reviewValidateViewPanel.addStyleName("left10"); slidingPanel.setWidget(rVView); rvView.setText(LocaleDictionary.get().getConstantValue(ReviewValidateConstants.MSG_BACK)); rvView.addStyleName("margin"); }
@Override public void setImage(final Image img) { Asserts.checkArgument(img instanceof HtmlImage); // Make sure redundant setImage() calls don't cost much. if (htmlImage == img) { return; } htmlImage = (HtmlImage) img; ImageElement imgElem = htmlImage.img.cast(); element().getStyle().setBackgroundImage("url(" + imgElem.getSrc() + ")"); element().getStyle().setOverflow(Overflow.HIDDEN); img.addCallback(new ResourceCallback<Image>() { @Override public void done(Image resource) { applySize(); applyBackgroundSize(); } @Override public void error(Throwable err) { // Nothing to be done about errors. } }); }
public HtmlGraphicsDom() { Element div = Document.get().createDivElement(); div.getStyle().setOverflow(Overflow.HIDDEN); rootElement.appendChild(div); rootLayer = new HtmlGroupLayerDom(div); setSize(HtmlPlatform.DEFAULT_WIDTH, HtmlPlatform.DEFAULT_HEIGHT); }
public PlannerWidgetImpl() { rootPanel = new DeckLayoutPanel(); // Screen interaction widget screenWidget = new SplitLayoutPanel() { @Override public void onResize() { super.onResize(); if (plannerMapWidget != null) plannerMapWidget.updateSize(); } }; screenWidget.setSize("100%", "100%"); selectedItineraryWidget = null; plannerMapWidget = new OpenLayersPlannerMapWidget(); plannerMapWidget.setMapListener(this); plannerFormWidget = new PlannerFormWidget(); plannerFormWidget.setPlannerWidget(this); itineraryStackWidget = new ItineraryStackWidget(); alertStackWidget = new AlertStackWidget(); // Firefox/Opera hack: no scroll panel... boolean useScrollPanel = false; leftPanelWidget = new LeftPanelWidget(plannerFormWidget, itineraryStackWidget, alertStackWidget, useScrollPanel); screenWidget.insert(leftPanelWidget, Direction.WEST, 300, null); if (!useScrollPanel) { leftPanelWidget.getElement().getParentElement().getStyle() .setOverflow(Overflow.AUTO); } screenWidget.insert(plannerMapWidget.getAsWidget(), Direction.CENTER, 0, null); rootPanel.add(screenWidget); rootPanel.showWidget(screenWidget); rootPanel.setSize("100%", "100%"); initWidget(rootPanel); }