1 /******************************************************************************* 2 * Copyright (c) 2009, 2017 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 * alice <stigma@disroot.org> 12 *******************************************************************************/ 13 module org.eclipse.swt.accessibility.AccessibleActionEvent; 14 15 import java.lang.all; 16 import java.util.EventObject; 17 18 /** 19 * Instances of this class are sent as a result of accessibility clients 20 * sending AccessibleAction messages to an accessible object. 21 * 22 * @see AccessibleActionListener 23 * @see AccessibleActionAdapter 24 * 25 * @since 3.6 26 */ 27 public class AccessibleActionEvent : EventObject { 28 29 /** 30 * The value of this field must be set in the accessible action listener method 31 * before returning. What to set it to depends on the listener method called. 32 */ 33 public String result; 34 public int count; 35 public int index; 36 public bool localized; 37 38 // static const long serialVersionUID = 2849066792640153087L; 39 40 /** 41 * Constructs a new instance of this class. 42 * 43 * @param source the object that fired the event 44 */ 45 public this(Object source) { 46 super(source); 47 } 48 49 /** 50 * Returns a string containing a concise, human-readable 51 * description of the receiver. 52 * 53 * @return a string representation of the event 54 */ 55 override 56 public String toString() const { 57 return Format("AccessibleActionEvent {{string={} count={} index={}}", 58 result, 59 count, 60 index); 61 } 62 }