@Override public String prompt(String message, String defaultValue) { return Window.prompt(message, defaultValue); }
@Override public void getText(TextType textType, String label, String initVal, Callback<String> callback) { callback.onSuccess(Window.prompt(label, initVal)); }
@Override public RFuture<String> getText(Keyboard.TextType textType, String label, String initVal) { String result = Window.prompt(label, initVal); emitFakeMouseUp(); return RFuture.success(result); }
/*************************************** * Displays a dialog that allows to copy the complete text of a row * (currently unused). */ @SuppressWarnings("unused") private void copyRowText() { StringBuilder aRowText = new StringBuilder(); int nLastCol = aHeader.getColumnCount() - 1; for (int nCol = 0; nCol <= nLastCol; nCol++) { aRowText.append(aDataTable.getText(nSelectedRow, nCol)); if (nCol < nLastCol) { aRowText.append(','); } } Window.prompt("Kopieren", aRowText.toString()); }
@Override public RFuture<String> getText(Keyboard.TextType textType, String label, String initVal) { String result = Window.prompt(label, initVal); emitFakeMouseUp(); return RFuture.success(result); }
@Override public void prompt(String message, PromptCallback callback) { String enteredValue = Window.prompt(message, "OK"); PromptResults results; if (enteredValue == null) { results = new PromptResultsBrowserImpl(1, null); } else { results = new PromptResultsBrowserImpl(0, enteredValue); } callback.onPrompt(results); }
private void addOption() { String newLabel = Window.prompt(I18N.CONSTANTS.enterNameForOption(), ""); if (!Strings.isNullOrEmpty(newLabel)) { EnumItem newValue = new EnumItem(EnumItem.generateId(), newLabel); enumType.getValues().add(newValue); boxPanel.add(createControl(newValue)); } }
private void editLabel(ResourceId id) { EnumItem enumItem = enumValueForId(id); String newLabel = Window.prompt(I18N.CONSTANTS.enterNameForOption(), enumItem.getLabel()); if (!Strings.isNullOrEmpty(newLabel)) { enumItem.setLabel(newLabel); controlForId(id).setHTML(designLabel(newLabel)); } }
public void onClick( ClickEvent w ) { if ( !explorer.isSelected() ) { Window.alert( Constants.INSTANCE.PleaseSelectACategoryToRename() ); return; } final String name = Window.prompt( Constants.INSTANCE.CategoryNewNamePleaseEnter(), "" ); if ( name != null ) { isDirty = true; explorer.renameSelected( name ); } } } );
getExtendedFormatter().insertUnorderedList(); } else if (item == link) { String link = Window.prompt(getMessages().getCreateLinkText(), "http://"); if (link != null && link.length() > 0) { getExtendedFormatter().createLink(link);
formatter.setJustification(RichTextArea.Justification.RIGHT); } else if (sender == insertImage) { String url = Window.prompt("Enter an image URL:", "http://"); if (url != null) { formatter.insertImage(url); String url = Window.prompt("Enter a link URL:", "http://"); if (url != null) { formatter.createLink(url);