Posted on November 11, 2009
API changes
- JxBrowser 1.x classes and interfaces from
com.teamdev.jxbrowser.*
package were moved tocom.teamdev.jxbrowser1.*
- JxBrowser 2.x classes and interfaces from
com.teamdev.jxbrowser2.*
package were moved tocom.teamdev.jxbrowser.*
- Package
com.teamdev.jxbrowser2.promptservice
was renamed tocom.teamdev.jxbrowser.prompt
. - Package
com.teamdev.jxbrowser2.scriptwatcher
was renamed tocom.teamdev.jxbrowser.script
. - Updated
ContextMenuHandler.showContextMenu(ContextMenuEvent event)
method so that it doesn’t returnJPopupMenu
instance anymore. It allows displaying any contextual menu (not only Swing). - The
com.teamdev.jxbrowser2.WebProgress
interface was renamed tocom.teamdev.jxbrowser.ContentLoading
. - Removed
com.teamdev.jxbrowser2.Synchronous
annotation. - The
NewWindowContainer.setBrowser(Browser browser)
method was renamedtoNewWindowContainer.insertBrowser(Browser browser)
. - The
com.teamdev.jxbrowser2.NewWindowInfo
class was renamed tocom.teamdev.jxbrowser.NewWindowParams
. - The
com.teamdev.jxbrowser2.events.WebEvent
class was renamed tocom.teamdev.jxbrowser.events.BrowserEvent
. - The
com.teamdev.jxbrowser2.events.HistoryChangeEvent.ChangeType
is movedtocom.teamdev.jxbrowser.events.HistoryChangeType
. - Changed methods signatures in
com.teamdev.jxbrowser.prompt.PromptService
interface.
New Features
- Cookie management functionality (IE engine) - allows receiving, updating, deleting
Browser
cookies. - Cancel navigation functionality (IE, Mozilla, WebKit engines) - allows receiving notification before web page loading starts and canceling navigation if needed.
- MIME type handling functionality (WebKit engine) - allows making a decision whether to display content with a specified MIME type or not.
- Added
Navigation.waitReady
method that allows blocking current thread execution until document is loaded completely.
Improvements
NewWindowHandler
should provide a new window bounds according to passed window features through window.open JavaScript function.
Resolved Issues
- Load URL with POST data hang on Mozilla engine.
DefaultNewWindowManager
doesn’t close JFrame afterwindow.close
JavaScript is invoked.- Mozilla engine hangs on
printPreview
or print method.
Subscribe to @JxBrowserTeam on Twitter to get notified of the library updates.