Mercurial > projects > dwt-linux
comparison dwt/browser/WindowEvent.d @ 286:44258e0b6687
More fixes for xpcom
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 10:11:58 -0700 |
parents | 93409d9838c5 |
children | 4ee8c4237614 |
comparison
equal
deleted
inserted
replaced
280:e72345914350 | 286:44258e0b6687 |
---|---|
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | |
11 * John Reimer <terminal.node@gmail.com> | |
12 *******************************************************************************/ | 10 *******************************************************************************/ |
13 module dwt.browser.WindowEvent; | 11 module dwt.browser.WindowEvent; |
14 | 12 |
15 import dwt.dwthelper.utils; | 13 import dwt.dwthelper.utils; |
16 | 14 |
123 * @see OpenWindowListener | 121 * @see OpenWindowListener |
124 * @see VisibilityWindowListener | 122 * @see VisibilityWindowListener |
125 * | 123 * |
126 * @since 3.0 | 124 * @since 3.0 |
127 */ | 125 */ |
128 | 126 public class WindowEvent extends TypedEvent { |
129 public class WindowEvent : TypedEvent { | |
130 | 127 |
131 /** | 128 /** |
132 * Specifies whether the platform requires the user to provide a | 129 * Specifies whether the platform requires the user to provide a |
133 * <code>Browser</code> to handle the new window. | 130 * <code>Browser</code> to handle the new window. |
134 * | 131 * |
187 */ | 184 */ |
188 public bool toolBar; | 185 public bool toolBar; |
189 | 186 |
190 static final long serialVersionUID = 3617851997387174969L; | 187 static final long serialVersionUID = 3617851997387174969L; |
191 | 188 |
192 this(Widget w) { | 189 WindowEvent(Widget w) { |
193 super(w); | 190 super(w); |
194 } | |
195 | |
196 /** | |
197 * Returns a string containing a concise, human-readable | |
198 * description of the receiver. | |
199 * | |
200 * @return a string representation of the event | |
201 */ | |
202 | |
203 public override String toString () { | |
204 return Format( "WindowEvent {required={} browser={} location={} size={} addressBar={} menuBar={} statusBar={} toolBar={} }", | |
205 required, browser, location, size, addressBar, menuBar, statusBar, tooBar ); | |
206 } | |
207 } | 191 } |
192 | |
193 /** | |
194 * Returns a string containing a concise, human-readable | |
195 * description of the receiver. | |
196 * | |
197 * @return a string representation of the event | |
198 */ | |
199 public String toString() { | |
200 String string = super.toString (); | |
201 return string.substring (0, string.length() - 1) // remove trailing '}' | |
202 + " required=" + required | |
203 + " browser=" + browser | |
204 + " location=" + location | |
205 + " size=" + size | |
206 + " addressBar=" + addressBar | |
207 + " menuBar=" + menuBar | |
208 + " statusBar=" + statusBar | |
209 + " toolBar=" + toolBar | |
210 + "}"; | |
211 } | |
212 } |