BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-10-2008, 05:07 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8110
PIN: N/A
Carrier: vodafone
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default retrieve the selected text in a BrowserContent

Please Login to Remove!

I have the following (simplyfied) piece of code to create a BrowserContent and displaying it onto a FullScreen.

Code:
RenderingSession rs = RenderingSession.getNewInstance();
BrowserContent bc = rs.getBrowserContent(conn, this, null);
VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL);
vfm.add(bc.getDisplayableContent());
bc.finishLoading();
(In the loaded HTML page there's a link) My question is whether I can catch the click of the link (in order to load the next page), or alternatively to retrieve the selected text.
I searched the APIs but found no way to achieve this. I tried even the following

Code:
Clipboard cb = Clipboard.getClipboard();
vfm.getField(0).selectionCopy(cb);
Logger.logDebug("fired text: " + cb.toString());
cb.put(null);
but with no success.
Moreover I have no callback on eventOccurred(Event evt).
Someone have a solution to this?
Thanks.


ps. Is there a way to show up the "mouse" pointer?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HP/Agilent 54120B Digitizing Oscilloscope Mainframe
$1695.0
HP/Agilent 54120B Digitizing Oscilloscope Mainframe pictureHP/Agilent 8350B Sweep Oscillator Mainframe
$395.0
HP/Agilent 8350B Sweep Oscillator Mainframe pictureAgilent 16902A -014 Logic Analyzer Mainframe br br br 014 - Gbit LAN Card for
$4500.0
Agilent 16902A -014 Logic Analyzer Mainframe br  br  br 014 - Gbit LAN Card for  pictureHP/Agilent E1401B VXI Mainframe, C Size, 13-Slot High Power
$695.0
HP/Agilent E1401B VXI Mainframe, C Size, 13-Slot High Power pictureKeithley S46T Microwave Switch Mainframe with Switches Microwave Switch Mainfram
$5000.0
Keithley S46T Microwave Switch Mainframe with Switches Microwave Switch Mainfram picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.