JAVA/CORBA CLASSES


Navigating in rich text items in Java classes
Use Document.getFirstItem or Document.getItems to access an item as a rich text item. Cast the return value to RichTextItem.

For navigation, a rich text item is a collection of elements of various types accessible through RichTextNavigator. You can find (navigate to) all types of elements. You can get some types of elements as objects; others you cannot get but must access through RichTextRange. The element types are:


Use RichTextItem.createNavigator or RichTextRange.getNavigator to create a RichTextNavigator object.

Navigation is within elements of the same type. You can find or get the first element of a type, the next element of a type, and the nth element of a type. You cannot find or get an element regardless of type.

The navigator maintains a current position. Both find and get operations change the current position in the rich text item.

RichTextNavigator has the following methods: