[brailleblaster] Setting up an event-listener pair

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Sun, 25 Mar 2012 15:37:16 -0500

I want to display a large file. However, just adopting the brute-force 
approach of appending lines to a StyledText control seems to make it 
choke, so i'm trying the approach of loading the file in segments. One 
class loads a certain amount of text into a StyledText control, then 
listens for an event that is triggered by a different class. The event 
is triggered when the page-down key is pressed. On receiving this event, 
the first class loads more lines into the StyledText control, then 
listens for another event, etc. I don't think these have to be SWT 
events. They can be just java events. I'm concerned about setting up the 
event and listener properly since I've had trouble in a similar 
situation and could never get it to work.

Thanks,
John

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities


Other related posts:

  • » [brailleblaster] Setting up an event-listener pair - John J. Boyer