Mercurial > projects > dwt-mac
view dwt/custom/CTabFolderEvent.d @ 13:f565d3a95c0a
Ported dwt.internal
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 22 Aug 2008 16:46:34 +0200 |
parents | 380af2bdd8e5 |
children | 6337764516f1 |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * * Port to the D programming language: * Jacob Carlborg <jacob.carlborg@gmail.com> *******************************************************************************/ module dwt.custom.CTabFolderEvent; import dwt.events.TypedEvent; import dwt.widgets.Widget; import dwt.dwthelper.utils; /** * */ public class CTabFolderEvent : TypedEvent { /** * The tab item for the operation. */ public Widget item; /** * A flag indicating whether the operation should be allowed. * Setting this field to <code>false</code> will cancel the operation. * Applies to the close and showList events. */ public bool doit; /** * The widget-relative, x coordinate of the chevron button * at the time of the event. Applies to the showList event. * * @since 3.0 */ public int x; /** * The widget-relative, y coordinate of the chevron button * at the time of the event. Applies to the showList event. * * @since 3.0 */ public int y; /** * The width of the chevron button at the time of the event. * Applies to the showList event. * * @since 3.0 */ public int width; /** * The height of the chevron button at the time of the event. * Applies to the showList event. * * @since 3.0 */ public int height; static final long serialVersionUID = 3760566386225066807L; /** * Constructs a new instance of this class. * * @param w the widget that fired the event */ this (Widget w) { super(w); } /** * Returns a String containing a concise, human-readable * description of the receiver. * * @return a String representation of the event */ public String toString () { String str = super.toString(); return str.substring(0, str.length - 1) // remove trailing '}' + " item=" + item + " doit=" + doit + " x=" + x + " y=" + y + " width=" + width + " height=" + height + "}"; } }