| 1 |
/******************************************************************************* |
|---|
| 2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
|---|
| 3 |
* All rights reserved. This program and the accompanying materials |
|---|
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
|---|
| 5 |
* which accompanies this distribution, and is available at |
|---|
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
|---|
| 7 |
* |
|---|
| 8 |
* Contributors: |
|---|
| 9 |
* IBM Corporation - initial API and implementation |
|---|
| 10 |
* Port to the D programming language: |
|---|
| 11 |
* Frank Benoit <benoit@tionex.de> |
|---|
| 12 |
*******************************************************************************/ |
|---|
| 13 |
module dwt.events.ExpandListener; |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
public import dwt.internal.DWTEventListener; |
|---|
| 17 |
public import dwt.events.ExpandEvent; |
|---|
| 18 |
|
|---|
| 19 |
/** |
|---|
| 20 |
* Classes which implement this interface provide methods |
|---|
| 21 |
* that deal with the expanding and collapsing of <code>ExpandItem</code>s. |
|---|
| 22 |
* |
|---|
| 23 |
* <p> |
|---|
| 24 |
* After creating an instance of a class that : |
|---|
| 25 |
* this interface it can be added to a <code>ExpandBar</code> |
|---|
| 26 |
* control using the <code>addExpandListener</code> method and |
|---|
| 27 |
* removed using the <code>removeExpandListener</code> method. |
|---|
| 28 |
* When a item of the <code>ExpandBar</code> is expanded or |
|---|
| 29 |
* collapsed, the appropriate method will be invoked. |
|---|
| 30 |
* </p> |
|---|
| 31 |
* |
|---|
| 32 |
* @see ExpandAdapter |
|---|
| 33 |
* @see ExpandEvent |
|---|
| 34 |
* |
|---|
| 35 |
* @since 3.2 |
|---|
| 36 |
*/ |
|---|
| 37 |
public interface ExpandListener : DWTEventListener { |
|---|
| 38 |
|
|---|
| 39 |
/** |
|---|
| 40 |
* Sent when an item is collapsed. |
|---|
| 41 |
* |
|---|
| 42 |
* @param e an event containing information about the operation |
|---|
| 43 |
*/ |
|---|
| 44 |
public void itemCollapsed(ExpandEvent e); |
|---|
| 45 |
|
|---|
| 46 |
/** |
|---|
| 47 |
* Sent when an item is expanded. |
|---|
| 48 |
* |
|---|
| 49 |
* @param e an event containing information about the operation |
|---|
| 50 |
*/ |
|---|
| 51 |
public void itemExpanded(ExpandEvent e); |
|---|
| 52 |
} |
|---|