@Override public void execute() { if (actionsPopup != null && actionsPopup.isVisible()) { actionsPopup.hide(); } listener.onMenuItemSelected(); }
public void onClick(ClickEvent event) { if (!actionsPopup.isShowing()) { // Instantiate the popup and show it. final Element parent = ActionsLabel.this.getElement(); actionsPopup .setPopupPositionAndShow(new PopupPanel.PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { int left = parent.getAbsoluteLeft(); int top = parent.getAbsoluteTop() + parent.getOffsetHeight() + 2; if (left + actionsPopup.getOffsetWidth() > Window .getClientWidth()) { left = parent.getAbsoluteRight() - actionsPopup.getOffsetWidth(); } actionsPopup.setPopupPosition(left, top); } }); } else { actionsPopup.hide(); } } });
public void onValueChange(ValueChangeEvent<String> event) { if (autoHideOnHistoryEvents) { hide(); } } });
/** * Hide the date picker. */ public void hideDatePicker() { popup.hide(); }
/** * Hides the popup and detaches it from the page. This has no effect if it is * not currently showing. */ public void hide() { hide(false); }
@Override public void hideSuggestions() { suggestionPopup.hide(); }
@Override protected void onPreviewNativeEvent(NativePreviewEvent event) { if (Event.ONKEYUP == event.getTypeInt()) { if (event.getNativeEvent().getKeyCode() == ESCAPE) { // Dismiss when escape is pressed panel.hide(); } } } };
public void onValueChange(ValueChangeEvent<Date> event) { // Remember the values before hiding the popup. Element cellParent = lastParent; Date oldValue = lastValue; Object key = lastKey; int index = lastIndex; int column = lastColumn; panel.hide(); // Update the cell and value updater. Date date = event.getValue(); setViewData(key, date); setValue(new Context(index, column, key), cellParent, oldValue); if (valueUpdater != null) { valueUpdater.update(date); } } });
public void onValueChange(ValueChangeEvent<String> event) { if (autoHideOnHistoryEvents) { hide(); } } });
/** * Hide the date picker. */ public void hideDatePicker() { popup.hide(); }
/** * Hides the popup and detaches it from the page. This has no effect if it is * not currently showing. */ public void hide() { hide(false); }
suggestionPopup.hide();
/** * show/hide the modal dialog. */ @Override public void setVisible(boolean b) { if (b) { box.center(); } else { box.hide(); } } }
@Override public void hide() { asPopupPanel().hide(); // events will not fire call closeHandler manually. if (popupViewCloseHandler != null) { popupViewCloseHandler.onClose(); } }
public void onValueChange( ValueChangeEvent<Date> event ) { setValue( event.getValue() ); panel.hide(); } } );
@Override public void onClick(ClickEvent event) { Scheduler.get().scheduleDeferred(command); popup.hide(); } });
hide(true); return;
public void onValueChange(ValueChangeEvent<Date> event) { if(picker.getValue() != null){ dateField.setText(df.format(picker.getValue())); selectedDate = picker.getValue(); } dateField.setFocus(true); popup.hide(); justPicked = true; focus.setSuppressed(false); fireValueChangeEvent(); } });
/** {@inheritDoc} */ @Override public void onChange(Calendar sender, Date oldValue) { getCalendarPanel().hide(); Date date = getCalendar().getDate(); getSelectedValue().setText(getFormat().format(date)); this.date = date; fireEvent(new ChangeEvent(){}); }
@Override public void onChange(Calendar sender, Date oldValue) { getPopup().hide(); FlexTable table = getGrid(); EditableGrid grid = (EditableGrid) table; GridPanel gridPanel = grid.getGridPanel(); gridPanel.getGridEventManager().dispatch(gridPanel, (char) KeyCodes.KEY_ENTER, 0); grid.setCurrentCell(getRow(), getColumn()); }