/** * Selects all text in the field. * <p> * As a side effect the field will become focused. */ public void selectAll() { getRpcProxy(AbstractTextFieldClientRpc.class).selectAll(); focus(); }
/** * Sets the range of text to be selected. * <p> * As a side effect the field will become focused. * * @param start * the position of the first character to be selected * @param length * the number of characters to be selected */ public void setSelection(int start, int length) { getRpcProxy(AbstractTextFieldClientRpc.class).selectRange(start, length); focus(); }
Integer.valueOf(rowId)); if (newTF != null) { newTF.focus();
/** * @see org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.I_EntryChangeListener#handleEntryChange(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EntryChangeEvent) */ public void handleEntryChange(EntryChangeEvent event) { if (event.getPropertyId().equals(TableProperty.KEY)) { KeyChangeResult result = m_model.handleKeyChange(event, true); String captionKey = null; String descriptionKey = null; switch (result) { case SUCCESS: handleChange(event.getPropertyId()); return; case FAILED_DUPLICATED_KEY: captionKey = Messages.GUI_NOTIFICATION_MESSAGEBUNDLEEDITOR_KEY_ALREADY_EXISTS_CAPTION_0; descriptionKey = Messages.GUI_NOTIFICATION_MESSAGEBUNDLEEDITOR_KEY_ALREADY_EXISTS_DESCRIPTION_0; break; case FAILED_FOR_OTHER_LANGUAGE: captionKey = Messages.GUI_NOTIFICATION_MESSAGEBUNDLEEDITOR_KEY_RENAMING_FAILED_CAPTION_0; descriptionKey = Messages.GUI_NOTIFICATION_MESSAGEBUNDLEEDITOR_KEY_RENAMING_FAILED_DESCRIPTION_0; break; default: throw new IllegalArgumentException(); } CmsMessageBundleEditorTypes.showWarning(m_messages.key(captionKey), m_messages.key(descriptionKey)); event.getSource().focus(); } handleChange(event.getPropertyId()); }