1 /******************************************************************************* 2 * Copyright (c) 2000, 2015 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.ui.forms.events; 15 /** 16 * This adapter class provides default implementations for the methods 17 * described by the <code>ExpansionListener</code> interface. 18 * <p> 19 * Classes that wish to deal with <code>ExpansionEvent</code>s can extend 20 * this class and override only the methods which they are interested in. 21 * </p> 22 * 23 * @see IExpansionListener 24 * @see ExpansionEvent 25 * @since 3.0 26 */ 27 public class ExpansionAdapter implements IExpansionListener { 28 /** 29 * Sent when the link is entered. The default behaviour is to do nothing. 30 * 31 * @param e 32 * the event 33 */ 34 @Override expansionStateChanging(ExpansionEvent e)35 public void expansionStateChanging(ExpansionEvent e) { 36 } 37 /** 38 * Sent when the link is exited. The default behaviour is to do nothing. 39 * 40 * @param e 41 * the event 42 */ 43 @Override expansionStateChanged(ExpansionEvent e)44 public void expansionStateChanged(ExpansionEvent e) { 45 } 46 } 47