DOM.appendChild(getElement(), caretSpan); actionsPopup = new PopupPanel(true, false); actionsPopup.addStyleName(Utils.kaaAdminStyle.actionPopup()); actionsPopup.setWidget(menu);
/** * Getter for property 'popup'. * * @return Value for property 'popup'. */ protected PopupPanel getPopup () { if (popup == null) popup = new PopupPanel(false, true); return popup; } }
JButton but = new JButton("Popup"); but.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final JPanel myPanel = new PopupPanel();// Create a separate class extends JPanel int result = JOptionPane.showConfirmDialog(null, myPanel, "Please Enter data into both boxes", JOptionPane.OK_CANCEL_OPTION); if (result == JOptionPane.OK_OPTION) { } } });
/** * 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); }
final PopupPanel pop = new PopupPanel(false, false); pop.setWidget(new Label("popup")); Image image = new CustomTooltipImage(pop); image.setUrl("http://sstatic.net/stackoverflow/img/venn-diagram.png");
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; }
/** * Getter for property 'calendarPanel'. * * @return Value for property 'calendarPanel'. */ protected PopupPanel getCalendarPanel() { if (calendarPanel == null) { calendarPanel = new PopupPanel(false, true); calendarPanel.add(getCalendar()); } return calendarPanel; }
PopupPanel errorValidatorPopUp = new PopupPanel(); errorValidatorPopUp.center();// to show the popup at centre of page or else you can setPosition errorValidatorPopUp.setGlassEnabled(true);//for Modal" effect blocking background /** your Logic for error validator **/ Create a Panel with error validator widgets on it Once done add to the errorValidatorPopup eg : all your widgets on an errorPanel, errorValidatorPopup.add(errorPanel); errorValidatorPopup.show(); //to show popup
// A popup that doesn't auto-hide, and doesn't let the // user click on anything else. PopupPanel popup = new PopupPanel(false,true); popup.setGlassEnabled(); // Dims the rest of the page popup.setWidget(new Image(res.loader())); popup.center(); // Show popup centered
public void onClick(ClickEvent event) { final PopupPanel helpPopup = new PopupPanel(true); helpPopup.setWidget(new HTML("<br><h3> " + appVersion + " <h3>")); helpPopup.setPopupPositionAndShow(new PopupPanel.PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { int left = (Window.getClientWidth() - offsetWidth); int top = 0; helpPopup.setPopupPosition(left, top); } }); } });
@WorkbenchPartView public PopupPanel getView() { return new PopupPanel(); }
@WorkbenchPartView public PopupPanel getView() { return new PopupPanel(); }
@WorkbenchPartView public PopupPanel getView() { return new PopupPanel(); }
PopupPanel popup = new PopupPanel(); Frame frame = new Frame("http://www.yourlink.com/"); popup.setWidget(frame); popup.setGlassEnabled(true); popup.center();
@Inject public GwtPopup(Resources resources, Viewport viewport) { this(new PopupPanel(), viewport); control.setGlassEnabled(true); resources.css().ensureInjected(); control.setGlassStyleName(resources.css().popupGlass()); }
Image phoneImage = new Image(); phoneImage.addMouseOverHandler(new MouseOverHandler() { @Override public void onMouseOver(MouseOverEvent event) { PopupPanel p = new PopupPanel(true); Widget source = (Widget) event.getSource(); int x = source.getAbsoluteLeft() + 10; int y = source.getAbsoluteTop() + 10; p.add(new Label("hi from tooltip")); // you can add any widget here p.setPopupPosition(x, y); p.show(); } });
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(); }
PopupPanel popup = new PopupPanel(true); FlowPanel panel = new FlowPanel(); //add Button etc popup.setSize("1100px","500px"); popup.clear(); popup.add(panel); popup.show(); popup.center();
Image image= new Image(); image.addMouseOverHandler(new MouseOverHandler() { @Override public void onMouseOver(MouseOverEvent event) { PopupPanel p = new PopupPanel(true); Widget source = (Widget) event.getSource(); int x = source.getAbsoluteLeft() + 10; int y = source.getAbsoluteTop() + 10; p.add(image); p.setPopupPosition(x, y); p.show(); } });