/** * Builds the absolute panel. * * @return the absolute panel */ private AbsolutePanel buildAbsolutePanel() { AbsolutePanel absolutePanel = new AbsolutePanel(); absolutePanel.setStyleName("gwt-Login-MainBox"); absolutePanel.setSize("450px", "180px"); // was "450px", "174px" return absolutePanel; }
public MenuLockLayer(CloseMenuHandler closeMenuCallback, int topOffset) { this.closeMenuCallback = closeMenuCallback; this.topOffset = topOffset; getElement().setId("menu-lock-layer-id"); RootPanel.get().add(this, 0, topOffset); getElement().getStyle().setProperty("right", "0px"); getElement().getStyle().setProperty("bottom", "0px"); getElement().getStyle().setProperty("zIndex", (Integer.MAX_VALUE - 5) + ""); AbsolutePanel blockMouseEventsPanel = new LockLayer(); blockMouseEventsPanel.setStyleName("exo-lockLayer"); blockMouseEventsPanel.getElement().getStyle().setProperty("position", "absolute"); blockMouseEventsPanel.getElement().getStyle().setProperty("left", "0px"); blockMouseEventsPanel.getElement().getStyle().setProperty("top", "0px"); blockMouseEventsPanel.getElement().getStyle().setProperty("right", "0px"); blockMouseEventsPanel.getElement().getStyle().setProperty("bottom", "0px"); add(blockMouseEventsPanel); }
private AbsolutePanel createTopDaysPanel() { final AbsolutePanel result = new AbsolutePanel(); result.setStyleName(renderer.getStyle(JrsGxtDateCss.DAYS_HEADER_MAIN)); if (showDayLabel) { for (int i = 0; i < daysShown; i++) { final DayHeader<T> dayHeader = new DayHeader<>(renderer, bus); dayHeader.setVisible(false); if (i == 0) { dayHeader.addStyleName(renderer.getStyle(JrsGxtDateCss.DAYS_HEADER_LABEL_FIRST)); } result.add(dayHeader); topDayLabels.add(dayHeader); if (supportTags) { for (final TT tag : tags) { final TagHeader<T, TT> tagHeader = new TagHeader<>(renderer, tag); tagHeader.setVisible(false); if (i == 0) { tagHeader.addStyleName(renderer.getStyle(JrsGxtDateCss.TAGS_HEADER_LABEL_FIRST)); } result.add(tagHeader); topTagLabels.add(tagHeader); } } } } return result; }
/** * Add special handles. User can drag these handle and change form of the selected area * * @return container with handles and needed attached event listeners */ private AbsolutePanel buildSelectionArea() { // add selection handles this.handlesContainer = new AbsolutePanel(); this.handlesContainer.setWidth(this.nInnerWidth + "px"); this.handlesContainer.setHeight(this.nInnerHeight + "px"); this.handlesContainer.setStyleName(this.bundleResources.css().handlesContainer()); this.handlesContainer.getElement().getStyle().setOverflow(Overflow.VISIBLE); // append background this.draggableBackground = this.appendDraggableBackground(); // find the center of draggable handle to make an offset for the positioning final int h = this.HANDLE_SIZE / 2; /* 1px and 2px below are correction because of 1px border. We need to position handle exactly on the center of the selection corner. */ // append top left corner handler. this.appendHandle(Cursor.NW_RESIZE, Constants.DRAG_TOP_LEFT_CORNER, -h, 0, 0, -(h + 1)); // append top right corner handler this.appendHandle(Cursor.NE_RESIZE, Constants.DRAG_TOP_RIGHT_CORNER, -h, -(h + 2), 0, 0); // append bottom left corner handler this.appendHandle(Cursor.SW_RESIZE, Constants.DRAG_BOTTOM_LEFT_CORNER, 0, 0, -(h + 2), -(h + 1)); // append bottom right corner handler this.appendHandle(Cursor.SE_RESIZE, Constants.DRAG_BOTTOM_RIGHT_CORNER, 0, -(h + 2), -(h + 2), 0); return handlesContainer; }
public void showEmptyTree() { if ( this.emptyCategories == null ) { final AbsolutePanel p = new AbsolutePanel(); p.add( new HTML( MetadataConstants.INSTANCE.NoCategoriesCreatedYetTip() ) ); final Button b = new Button( MetadataConstants.INSTANCE.Refresh() ); b.addClickHandler( new ClickHandler() { public void onClick( final ClickEvent event ) { refresh(); } } ); p.add( b ); p.setStyleName( "small-Text" ); this.emptyCategories = p; this.panel.add( this.emptyCategories ); } this.navTreeWidget.setVisible( false ); emptyCategories.setVisible( true ); }
header.setStyleName("welcome-header"); filesButtons.setStyleName("files-btns");
this.bubbleIndicator.setPixelSize(configuration.getIndicatorWidth(), configuration.getIndicatorHeight()); this.bubbleIndicator.setStyleName("indicator");