comparison dwt/browser/VisibilityWindowListener.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children f565d3a95c0a
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 /*******************************************************************************
2 * Copyright (c) 2003, 2007 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 *
11 * Port to the D Programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com>
13 *******************************************************************************/
14 module dwt.browser.VisibilityWindowListener;
15
16 import dwt.browser.WindowEvent;
17 import dwt.dwthelper.utils;
18 import dwt.internal.DWTEventListener;
19
20 /**
21 * This listener interface may be implemented in order to receive
22 * a {@link WindowEvent} notification when a window hosting a
23 * {@link Browser} needs to be displayed or hidden.
24 *
25 * @see Browser#addVisibilityWindowListener(VisibilityWindowListener)
26 * @see Browser#removeVisibilityWindowListener(VisibilityWindowListener)
27 * @see OpenWindowListener
28 * @see CloseWindowListener
29 *
30 * @since 3.0
31 */
32 public interface VisibilityWindowListener : DWTEventListener {
33
34 /**
35 * This method is called when the window hosting a <code>Browser</code>
36 * is requested to be hidden. Application would typically hide the
37 * {@link dwt.widgets.Shell} that hosts the <code>Browser</code>.
38 * <p>
39 *
40 * <p>The following fields in the <code>WindowEvent</code> apply:
41 * <ul>
42 * <li>(in) widget the <code>Browser</code> that needs to be hidden
43 * </ul>
44 *
45 * @param event the <code>WindowEvent</code> that specifies the
46 * <code>Browser</code> that needs to be hidden
47 *
48 * @see dwt.widgets.Shell#setVisible(bool)
49 *
50 * @since 3.0
51 */
52 public void hide (WindowEvent event);
53
54 /**
55 * This method is called when the window hosting a <code>Browser</code>
56 * is requested to be displayed. Application would typically set the
57 * location and the size of the {@link dwt.widgets.Shell}
58 * that hosts the <code>Browser</code>, if a particular location and size
59 * are specified. The application would then open that <code>Shell</code>.
60 * <p>
61 *
62 * <p>The following fields in the <code>WindowEvent</code> apply:
63 * <ul>
64 * <li>(in) widget the <code>Browser</code> to display
65 * <li>(in) location the requested location for the <code>Shell</code>
66 * hosting the browser. It is <code>null</code> if no location is set.
67 * <li>(in) size the requested size for the <code>Browser</code>.
68 * The client area of the <code>Shell</code> hosting the
69 * <code>Browser</code> should be large enough to accommodate that size.
70 * It is <code>null</code> if no size is set.
71 * <li>(in) addressBar <code>true</code> if the <code>Shell</code>
72 * hosting the <code>Browser</code> should display an address bar or
73 * <code>false</code> otherwise
74 * <li>(in) menuBar <code>true</code> if the <code>Shell</code>
75 * hosting the <code>Browser</code> should display a menu bar or
76 * <code>false</code> otherwise
77 * <li>(in) statusBar <code>true</code> if the <code>Shell</code>
78 * hosting the <code>Browser</code> should display a status bar or
79 * <code>false</code> otherwise
80 * <li>(in) toolBar <code>true</code> if the <code>Shell</code>
81 * hosting the <code>Browser</code> should display a tool bar or
82 * <code>false</code> otherwise
83 * </ul>
84 *
85 * @param event the <code>WindowEvent</code> that specifies the
86 * <code>Browser</code> that needs to be displayed
87 *
88 * @see dwt.widgets.Control#setLocation(dwt.graphics.Point)
89 * @see dwt.widgets.Control#setSize(dwt.graphics.Point)
90 * @see dwt.widgets.Shell#open()
91 *
92 * @since 3.0
93 */
94 public void show (WindowEvent event);
95
96 }