Source Code Cross Referenced for SelectionEvent.java in  » IDE-Eclipse » swt » org » eclipse » swt » events » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » swt » org.eclipse.swt.events 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2000, 2007 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.swt.events;
011:
012:        import org.eclipse.swt.widgets.*;
013:
014:        /**
015:         * Instances of this class are sent as a result of
016:         * widgets being selected.
017:         * <p>
018:         * Note: The fields that are filled in depend on the widget.
019:         * </p>
020:         *
021:         * @see SelectionListener
022:         */
023:
024:        public class SelectionEvent extends TypedEvent {
025:
026:            /**
027:             * The item that was selected.
028:             */
029:            public Widget item;
030:
031:            /**
032:             * Extra detail information about the selection, depending on the widget.
033:             * 
034:             * <p><b>Sash</b><ul>
035:             * <li>{@link org.eclipse.swt.SWT#DRAG}</li>
036:             * </ul></p><p><b>ScrollBar and Slider</b><ul>
037:             * <li>{@link org.eclipse.swt.SWT#DRAG}</li>
038:             * <li>{@link org.eclipse.swt.SWT#HOME}</li>
039:             * <li>{@link org.eclipse.swt.SWT#END}</li>
040:             * <li>{@link org.eclipse.swt.SWT#ARROW_DOWN}</li>
041:             * <li>{@link org.eclipse.swt.SWT#ARROW_UP}</li>
042:             * <li>{@link org.eclipse.swt.SWT#PAGE_DOWN}</li>
043:             * <li>{@link org.eclipse.swt.SWT#PAGE_UP}</li>
044:             * </ul></p><p><b>Table and Tree</b><ul>
045:             * <li>{@link org.eclipse.swt.SWT#CHECK}</li>
046:             * </ul></p><p><b>Text</b><ul>
047:             * <li>{@link org.eclipse.swt.SWT#CANCEL}</li>
048:             * </ul></p><p><b>CoolItem and ToolItem</b><ul>
049:             * <li>{@link org.eclipse.swt.SWT#ARROW}</li>
050:             * </ul></p>
051:             */
052:            public int detail;
053:
054:            /**
055:             * The x location of the selected area.
056:             */
057:            public int x;
058:
059:            /**
060:             * The y location of selected area.
061:             */
062:            public int y;
063:
064:            /**
065:             * The width of selected area.
066:             */
067:            public int width;
068:
069:            /**
070:             * The height of selected area.
071:             */
072:            public int height;
073:
074:            /**
075:             * The state of the keyboard modifier keys at the time
076:             * the event was generated.
077:             */
078:            public int stateMask;
079:
080:            /**
081:             * The text of the hyperlink that was selected.
082:             * This will be either the text of the hyperlink or the value of its HREF,
083:             * if one was specified.
084:             * 
085:             * @see org.eclipse.swt.widgets.Link#setText(String)
086:             * @since 3.1
087:             */
088:            public String text;
089:
090:            /**
091:             * A flag indicating whether the operation should be allowed.
092:             * Setting this field to <code>false</code> will cancel the
093:             * operation, depending on the widget.
094:             */
095:            public boolean doit;
096:
097:            static final long serialVersionUID = 3976735856884987953L;
098:
099:            /**
100:             * Constructs a new instance of this class based on the
101:             * information in the given untyped event.
102:             *
103:             * @param e the untyped event containing the information
104:             */
105:            public SelectionEvent(Event e) {
106:                super (e);
107:                this .item = e.item;
108:                this .x = e.x;
109:                this .y = e.y;
110:                this .width = e.width;
111:                this .height = e.height;
112:                this .detail = e.detail;
113:                this .stateMask = e.stateMask;
114:                this .text = e.text;
115:                this .doit = e.doit;
116:            }
117:
118:            /**
119:             * Returns a string containing a concise, human-readable
120:             * description of the receiver.
121:             *
122:             * @return a string representation of the event
123:             */
124:            public String toString() {
125:                String string = super .toString();
126:                return string.substring(0, string.length() - 1) // remove trailing '}'
127:                        + " item=" + item + " detail=" + detail + " x="
128:                        + x
129:                        + " y=" + y + " width=" + width + " height="
130:                        + height
131:                        + " stateMask=" + stateMask + " text="
132:                        + text
133:                        + " doit=" + doit + "}";
134:            }
135:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.