__Text editing functionality for use in JOS Applications__
Model Beans
Originally, we were going to design our own. Now we have the option of Swing's Document and also the cooperation of John Jensen, we now have mpEdit ( http://members.tripod.com/~mpTOOLS
) to dissect and customize.
Objective:
to produce a simple text editing bean with pluggability of multiple GUIs and TUIs. The bean will be divided into two sections ie. Model and combined Views/Controllers.
Keep in mind, these are NOT stand-alone applications, but rather a 'work-horse' and UIs for implementation into other applications.
Should could contain the following features:
- Multiple Undo - Using com.sun.java.swing.undo
- Basic editing - cut, copy, paste and selectAll - Using java.awt.datatransfer
- Word-wrapping, Automatic Word/Sentance selection - Using java.text
- Shortcut keys, Pop-up menus, Drop down menus - Using MenuToolbarUtility
Optional plug-in beans could contain the following features:
- Find and Replace - Using FindReplaceBean
- Conversion of text to all Upper/Lowercase
- Color Syntax Highlighting
- Selectable Font, Size and Tab size
(add more as you please - remember, its plain text!)
Links:
http://www.oasis.leo.org/java/applications/editors/00-index.html
http://www.javauniverse.com/Developer/97/09/JWrite/index.html
http://www-elec.enst.fr/java/edit-beta/
http://www.gamelan.com/pages/Gamelan.util.text.html
Back to JosBeans
Well, I really don't think you should worry too much about text editors, gfx-editors, and so on. Right now my diploma project is implementing an XML "word processor" in Java, and Swing provides some nifty lil' thingies like JTextPane, JEditorPane, EditorKit (and it's brothers), there are even html- and rtf-aware kits which can be used for all sorts of weird and wonderfull things. Creating beans out of those should be trivial (but then I think they are allready in a form of a bean in their own right). So, if you need an editor bean, you've got it, and when I'm finished with my project, you'll even have an XML bean aswell.
PredragBalorda
Content of these pages are owned and copyrighted by the poster.
|
Hosted by:
|
|