Posted on November 11, 2009
JxBrowser 2.0 Beta
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 renamed toNewWindowContainer.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 moved tocom.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 throughwindow.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.
Follow @JxBrowserTeam to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.