Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.text

Class Annotation

java.lang.Object
|
+--java.text.Annotation


public class Annotation

extends Object

This class is used as a wrapper for a text attribute object. Annotation objects are associated with a specific range of text. Changing either the text range or the underlying text invalidates the object.

Author:

Constructor Summary

Annotation(java.lang.Object attrib)

This method initializes a new instance of Annotation to wrapper the specified text attribute object.

Method Summary

java.lang.ObjectgetValue()

This method returns the text attribute object this Annotation instance is wrappering.
java.lang.StringtoString()

This method returns a String representation of this object.

Constructor Details

Annotation

public Annotation(java.lang.Object attrib)

This method initializes a new instance of Annotation to wrapper the specified text attribute object.

Parameters:


Method Details

getValue

public Object getValue()

This method returns the text attribute object this Annotation instance is wrappering.

Returns:


toString

public String toString()

This method returns a String representation of this object.

Returns: