Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p>
Adds the listener to the collection of listeners who will be notified when the window hosting the receiver should be closed. <p> This notification occurs when a javascript command such as <code>window.close</code> gets executed by a <code>Browser</code>. </p>
Adds the listener to the collection of listeners who will be notified when the current location has changed or is about to change. <p> This notification typically occurs when the application navigates to a new location with {@link #setUrl(String)} or when the user activates a hyperlink. </p>
Adds the listener to the collection of listeners who will be notified when a new window needs to be created. <p> This notification occurs when a javascript command such as <code>window.open</code> gets executed by a <code>Browser</code>. </p>
Adds the listener to the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
Adds the listener to the collection of listeners who will be notified when the status text is changed. <p> The status text is typically displayed in the status bar of a browser application. </p>
Adds the listener to the collection of listeners who will be notified when the title of the current document is available or has changed.
Adds the listener to the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
Navigate to the previous session history item.
Execute the specified script.
Navigate to the next session history item.
Returns a string with HTML that represents the content of the current page.
Returns the current URL.
Returns the JavaXPCOM <code>nsIWebBrowser</code> for the receiver, or <code>null</code> if it is not available. In order for an <code>nsIWebBrowser</code> to be returned all of the following must be true: <ul> <li>the receiver's style must be <code>SWT.MOZILLA</code></li> <li>the classes from JavaXPCOM >= 1.8.1.2 must be resolvable at runtime</li> <li>the version of the underlying XULRunner must be >= 1.8.1.2</li> </ul>
Returns <code>true</code> if the receiver can navigate to the previous session history item, and <code>false</code> otherwise.
Returns <code>true</code> if the receiver can navigate to the next session history item, and <code>false</code> otherwise.
Refresh the current page.
Removes the listener from the collection of listeners who will be notified when the window hosting the receiver should be closed.
Removes the listener from the collection of listeners who will be notified when the current location is changed or about to be changed.
Removes the listener from the collection of listeners who will be notified when a new window needs to be created.
Removes the listener from the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
Removes the listener from the collection of listeners who will be notified when the status text is changed.
Removes the listener from the collection of listeners who will be notified when the title of the current document is available or has changed.
Removes the listener from the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
Renders HTML.
Loads a URL.
Stop any loading and rendering activity.
Clears all session cookies from all current Browser instances.
Clears any data that has been cached by a Layout for all widgets that are in the parent hierarchy of the changed control up to and including the receiver. If an ancestor does not have a layout, it is skipped.
Returns the receiver's background drawing mode. This will be one of the following constants defined in class <code>SWT</code>: <code>INHERIT_NONE</code>, <code>INHERIT_DEFAULT</code>, <code>INHERTIT_FORCE</code>.
Returns a (possibly empty) array containing the receiver's children. Children are returned in the order that they are drawn. The topmost control appears at the beginning of the array. Subsequent controls draw beneath this control and appear later in the array. <p> Note: This is not the actual structure used by the receiver to maintain its list of children, so modifying the array will not affect the receiver. </p>
Returns layout which is associated with the receiver, or null if one has not been set.
Returns <code>true</code> if the receiver has deferred the performing of layout, and <code>false</code> otherwise.
Gets the (possibly empty) tabbing order for the control.
Returns <code>true</code> if the receiver or any ancestor up to and including the receiver's nearest ancestor shell has deferred the performing of layouts. Otherwise, <code>false</code> is returned.
If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the receiver does not have a layout, do nothing. <p> This is equivalent to calling <code>layout(true)</code>. </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>
If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the argument is <code>true</code> the layout must not rely on any information it has cached about the immediate children. If it is <code>false</code> the layout may (potentially) optimize the work it is doing by assuming that none of the receiver's children has changed state since the last layout. If the receiver does not have a layout, do nothing. <p> If a child is resized as a result of a call to layout, the resize event will invoke the layout of the child. The layout will cascade down through all child widgets in the receiver's widget tree until a child is encountered that does not resize. Note that a layout due to a resize will not flush any cached information (same as <code>layout(false)</code>). </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>
If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the changed argument is <code>true</code> the layout must not rely on any information it has cached about its children. If it is <code>false</code> the layout may (potentially) optimize the work it is doing by assuming that none of the receiver's children has changed state since the last layout. If the all argument is <code>true</code> the layout will cascade down through all child widgets in the receiver's widget tree, regardless of whether the child has changed size. The changed argument is applied to all layouts. If the all argument is <code>false</code>, the layout will <em>not</em> cascade down through all child widgets in the receiver's widget tree. However, if a child is resized as a result of a call to layout, the resize event will invoke the layout of the child. Note that a layout due to a resize will not flush any cached information (same as <code>layout(false)</code>). </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>
Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarchy of the changed control up to and including the receiver. The layouts in the hierarchy must not rely on any information cached about the changed control or any of its ancestors. The layout may (potentially) optimize the work it is doing by assuming that none of the peers of the changed control have changed state since the last layout. If an ancestor does not have a layout, skip it. <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>
Sets the background drawing mode to the argument which should be one of the following constants defined in class <code>SWT</code>: <code>INHERIT_NONE</code>, <code>INHERIT_DEFAULT</code>, <code>INHERIT_FORCE</code>.
Sets the layout which is associated with the receiver to be the argument which may be null.
If the argument is <code>true</code>, causes subsequent layout operations in the receiver or any of its children to be ignored. No layout of any kind can occur in the receiver or any of its children until the flag is set to false. Layout operations that occurred while the flag was <code>true</code> are remembered and when the flag is set to <code>false</code>, the layout operations are performed in an optimized manner. Nested calls to this method are stacked.
Sets the tabbing order for the specified controls to match the order that they occur in the argument list.
Instances of this class implement the browser user interface metaphor. It allows the user to visualize and navigate through HTML documents. <p> Note that although this class is a subclass of <code>Composite</code>, it does not make sense to set a layout on it. </p> <dl> <dt><b>Styles:</b></dt> <dd>MOZILLA</dd> <dt><b>Events:</b></dt> <dd>CloseWindowListener, LocationListener, OpenWindowListener, ProgressListener, StatusTextListener, TitleListener, VisibilityWindowListener</dd> </dl> <p> IMPORTANT: This class is <em>not</em> intended to be subclassed. </p>
@since 3.0