/** * Sets the style name of the suggestion popup. * * @param style the new primary style name * @see UIObject#setStyleName(String) */ public void setPopupStyleName(String style) { suggestionPopup.setStyleName(style); }
/** * Create the PopupPanel that will hold the list of suggestions. * * @return the popup panel */ protected PopupPanel createPopup() { PopupPanel p = new DecoratedPopupPanel(true, false, "suggestPopup"); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); p.setAnimationType(AnimationType.ROLL_DOWN); return p; }
/** * Creates an empty popup panel. A child widget must be added to it before it * is shown. */ public PopupPanel() { super(); super.getContainerElement().appendChild(impl.createElement()); // Default position of popup should be in the upper-left corner of the // window. By setting a default position, the popup will not appear in // an undefined location if it is shown before its position is set. setPopupPosition(0, 0); setStyleName(DEFAULT_STYLENAME); setStyleName(getContainerElement(), "popupContent"); }
/** * Sets the style name of the suggestion popup. * * @param style the new primary style name * @see UIObject#setStyleName(String) */ public void setPopupStyleName(String style) { suggestionPopup.setStyleName(style); }
/** * Sets the style name of the suggestion popup. * * @param style the new primary style name * @see UIObject#setStyleName(String) */ public void setPopupStyleName(String style) { suggestionPopup.setStyleName(style); }
/** * Create a new date box. * * @param date the default date. * @param picker the picker to drop down from the date box * @param format to use to parse and format dates */ public DateBox(DatePicker picker, Date date, Format format) { this.picker = picker; this.popup = new PopupPanel(true); assert format != null : "You may not construct a date box with a null format"; this.format = format; popup.addAutoHidePartner(box.getElement()); popup.setWidget(picker); popup.setStyleName("dateBoxPopup"); initWidget(box); setStyleName(DEFAULT_STYLENAME); DateBoxHandler handler = new DateBoxHandler(); picker.addValueChangeHandler(handler); box.addFocusHandler(handler); box.addBlurHandler(handler); box.addClickHandler(handler); box.addKeyDownHandler(handler); box.setDirectionEstimator(false); popup.addCloseHandler(handler); setValue(date); }
protected PopupPanel createPopup() { PopupPanel p = new PopupPanel(true, false); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); //p.setAnimationType(PopupPanel.AnimationType.ROLL_DOWN); return p; }
protected PopupPanel createPopup() { PopupPanel p = new PopupPanel(true, false); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); //p.setAnimationType(PopupPanel.AnimationType.ROLL_DOWN); return p; }
public CustomSuggestionDisplay() { super(); final PopupPanel popup = getPopupPanel(); popup.setStyleName(Styles.DROPDOWN_MENU); popup.getElement().getStyle().setDisplay(Display.BLOCK); }
public CustomSuggestionDisplay() { super(); final PopupPanel popup = getPopupPanel(); popup.setStyleName(Styles.DROPDOWN_MENU); popup.getElement().getStyle().setDisplay(Display.BLOCK); }
/** * Creates an empty popup panel. A child widget must be added to it before it * is shown. */ public PopupPanel() { super(); super.getContainerElement().appendChild(impl.createElement()); // Default position of popup should be in the upper-left corner of the // window. By setting a default position, the popup will not appear in // an undefined location if it is shown before its position is set. setPopupPosition(0, 0); setStyleName(DEFAULT_STYLENAME); setStyleName(getContainerElement(), "popupContent"); }
/** * Creates an empty popup panel. A child widget must be added to it before it * is shown. */ public PopupPanel() { super(); super.getContainerElement().appendChild(impl.createElement()); // Default position of popup should be in the upper-left corner of the // window. By setting a default position, the popup will not appear in // an undefined location if it is shown before its position is set. setPopupPosition(0, 0); setStyleName(DEFAULT_STYLENAME); setStyleName(getContainerElement(), "popupContent"); }
/** * Create the PopupPanel that will hold the list of suggestions. * * @return the popup panel */ protected PopupPanel createPopup() { PopupPanel p = new DecoratedPopupPanel(true, false, "suggestPopup"); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); p.setAnimationType(AnimationType.ROLL_DOWN); return p; }
/** * Create the PopupPanel that will hold the list of suggestions. * * @return the popup panel */ protected PopupPanel createPopup() { PopupPanel p = new DecoratedPopupPanel(true, false, "suggestPopup"); p.setStyleName("gwt-SuggestBoxPopup"); p.setPreviewingAllNativeEvents(true); p.setAnimationType(AnimationType.ROLL_DOWN); return p; }
public void setHoverHTML(String html){ hoverPopup.add(new HTMLPanel(html)); hoverPopup.setStyleName("ks-help-popup"); button.addMouseOverHandler(new MouseOverHandler(){ @Override public void onMouseOver(MouseOverEvent event) { hoverPopup.setPopupPosition(button.getAbsoluteLeft() + button.getOffsetWidth() + 5, button.getAbsoluteTop()); hoverPopup.show(); } }); button.addMouseOutHandler(new MouseOutHandler(){ @Override public void onMouseOut(MouseOutEvent event) { hoverPopup.hide(); } }); }
public PopupCell(String title, PopupCellDelegate delegate) { super("click", "keydown"); this.delegate = delegate; this.popup = new PopupPanel(); this.popup.setStyleName("default-popup"); this.popup.setWidget(delegate.asWidget()); this.html = new SafeHtmlBuilder().appendHtmlConstant( "<div tabindex=\"-1\" class='cell-popup'>"+title+"</div>").toSafeHtml(); }
public ModalUploadStatus() { super(); super.asWidget().addStyleName("upld-status"); box.add(super.asWidget()); box.setGlassEnabled(true); box.setStyleName("upld-modal"); box.setGlassStyleName("upld-modal-glass"); ((Element) box.getElement().getFirstChild()).setClassName("GWTUpld"); }
hoverPopup.setStyleName("ks-help-popup");
public ButtonDropdown(final String text, ClickHandler handler) { button = new Button(text); caret = new Button(TEMPLATES.caret()); menu = new FlowPanel(); popup = new PopupPanel(true); popup.setStyleName(POPUP_STYLE_NAME); popup.add(menu); final FlowPanel root = new FlowPanel(); root.add(button); root.add(caret); caret.addStyleName(CARET_STYLE_NAME); caret.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { popup.showRelativeTo(button); } }); initWidget(root); setStyleName(STYLE_NAME); if (handler != null) { addClickHandler(handler); } }
/** * Create a new date box. * * @param date the default date. * @param picker the picker to drop down from the date box * @param format to use to parse and format dates */ public DateBox(DatePicker picker, Date date, Format format) { this.picker = picker; this.popup = new PopupPanel(true); assert format != null : "You may not construct a date box with a null format"; this.format = format; popup.addAutoHidePartner(box.getElement()); popup.setWidget(picker); popup.setStyleName("dateBoxPopup"); initWidget(box); setStyleName(DEFAULT_STYLENAME); DateBoxHandler handler = new DateBoxHandler(); picker.addValueChangeHandler(handler); box.addFocusHandler(handler); box.addBlurHandler(handler); box.addClickHandler(handler); box.addKeyDownHandler(handler); box.setDirectionEstimator(false); popup.addCloseHandler(handler); setValue(date); }