/******************************************************************************* * Copyright (c) 2010, 2016 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.swt.accessibility; /** * This adapter class provides default implementations for the * methods in the AccessibleEditableTextListener interface. *

* Classes that wish to deal with AccessibleEditableText events can * extend this class and override only the methods that they are * interested in. *

* * @see AccessibleEditableTextListener * @see AccessibleEditableTextEvent * @see AccessibleTextAttributeEvent * * @since 3.7 */ public class AccessibleEditableTextAdapter implements AccessibleEditableTextListener { /** * Copies the substring beginning at the specified start offset * and extending to the character at offset end - 1 to the clipboard. * * @param e an event object containing the following information: */ @Override public void copyText(AccessibleEditableTextEvent e) {} /** * Moves the substring beginning at the specified start offset * and extending to the character at offset end - 1 to the clipboard. * * @param e an event object containing the following information: */ @Override public void cutText(AccessibleEditableTextEvent e) {} /** * Inserts the text in the clipboard at the leading edge of the specified start offset. * * @param e an event object containing the following information: */ @Override public void pasteText(AccessibleEditableTextEvent e) {} /** * Replaces the substring beginning at the specified start offset * and extending to the character at offset end - 1 by the specified string. *

* This event notification is also used to delete text if string is an empty string, * or to insert text at the leading edge of the specified offset if start and end are equal. *

* * @param e an event object containing the following information: */ @Override public void replaceText(AccessibleEditableTextEvent e) {} /** * Replaces the set of attributes of the substring beginning at the specified start offset * and extending to the character at offset end - 1 by the specified set of attributes. * * @param e an event object containing the following information: */ @Override public void setTextAttributes(AccessibleTextAttributeEvent e) {} }