# com.bea.ide.ui.browser
IBrowserPanel.IBrowserEvents Interface

public static interface IBrowserPanel.IBrowserEvents

Interface for getting events from the browser.

Enclosing interface
  `IBrowserPanel`

## Field Summary

`public static final int` | `NAVIGATE_BACK` indicates the state for the navigate backward button is changing.
`public static final int` | `NAVIGATE_FORWARD` indicates the state for the navigate forward button is changing.
`public static final int` | `UPDATE_COMMANDS` indicates the update commands are being changed.

## Method Summary

`public boolean` | `beforeNavigate`(`String` url, `String` frameName, `String` strHeaders, byte[] postData) This is called before a navigate occurs.
`public void` | `commandStateChange`(int command, boolean fEnabled) This is called when the enabled state of variopus browser commands are changing.
`public void` | `downloadBegin`() This is called when the browser begins the actual download of a page.
`public void` | `downloadComplete`() This is called when the download is finished.
`public void` | `navigateComplete`(`String` url) This is finished when the navigate has been finished.
`public void` | `progressChange`(int currProgress, int maxProgress) This is called with the progress that has been made on the download.

## Field Detail

### NAVIGATE_BACK

    public static final int NAVIGATE_BACK

  indicates the state for the navigate backward button is changing.

### NAVIGATE_FORWARD

    public static final int NAVIGATE_FORWARD

  indicates the state for the navigate forward button is changing.

### UPDATE_COMMANDS

    public static final int UPDATE_COMMANDS

  indicates the update commands are being changed.

## Method Detail

### beforeNavigate(String, String, String, byte[]) Method

    public boolean beforeNavigate(String url,
                                  String frameName,
                                  String strHeaders,
                                  byte[] postData)

This is called before a navigate occurs.

#### Parameters

url
  - the url the browser is about to navigate to.

frameName
  - the frame that is about to navigate.

strHeaders
  - a string with the headers that are being sent.

postData
  - the data that is being sent in the post body.

#### Returns

true - if the navigate should continue false - if the navigate should abort.

### commandStateChange(int, boolean) Method

    public void commandStateChange(int command,
                                   boolean fEnabled)

This is called when the enabled state of variopus browser commands are changing.

#### Parameters

command
  - the command that is becoming enabled or disabled.

fEnabled
  - whether the command is becoming enabled or disabled.

### downloadBegin() Method

    public void downloadBegin()

This is called when the browser begins the actual download of a page.

### downloadComplete() Method

    public void downloadComplete()

This is called when the download is finished.

### navigateComplete(String) Method

    public void navigateComplete(String url)

This is finished when the navigate has been finished.

#### Parameters

url
  name of the url that has been navigated to.

### progressChange(int, int) Method

    public void progressChange(int currProgress,
                               int maxProgress)

This is called with the progress that has been made on the download.

#### Parameters

currProgress
  current progress.

maxProgress
  progress that will denote the download being finished.