java::text::AttributedCharacterIterator::Attribute Class Reference

Inheritance diagram for java::text::AttributedCharacterIterator::Attribute:

Inheritance graph
java::awt::font::TextAttributejava::lang::Object
[legend]
Collaboration diagram for java::text::AttributedCharacterIterator::Attribute:

Collaboration graph
java::lang::Objectjava::lang::Stringjava::lang::Interfacejava::lang::ObjectRefjava::lang::Comparable
[legend]

List of all members.


Detailed Description

Defines attribute keys that are used to identify text attributes.

These keys are used in AttributedCharacterIterator and AttributedString.

See also:
AttributedCharacterIterator

AttributedString

Since:
1.2

Public Member Functions

 Attribute ()
 Default constructor.
virtual String toString () const
 Returns a hash code value for the object.

Static Public Attributes

static const Attribute LANGUAGE
 Attribute key for the language of some text.
static const Attribute READING
 Attribute key for the reading of some text.
static const Attribute INPUT_METHOD_SEGMENT
 Attribute key for input method segments.

Protected Member Functions

 Attribute (const String &name)
 Constructs an Attribute with the given name.
virtual String getName () const
 Returns the name of the attribute.

Constructor & Destructor Documentation

java::text::AttributedCharacterIterator::Attribute::Attribute (  ) 

Default constructor.

java::text::AttributedCharacterIterator::Attribute::Attribute ( const String name  )  [protected]

Constructs an Attribute with the given name.


Member Function Documentation

virtual String java::text::AttributedCharacterIterator::Attribute::toString (  )  const [virtual]

Returns a hash code value for the object.

This version is identical to the one in Object, but is also final.

Reimplemented from java::lang::Object.

virtual String java::text::AttributedCharacterIterator::Attribute::getName (  )  const [protected, virtual]

Returns the name of the attribute.


Member Data Documentation

const Attribute java::text::AttributedCharacterIterator::Attribute::LANGUAGE [static]

Attribute key for the language of some text.

Values are instances of Locale.

See also:
java.util.Locale

const Attribute java::text::AttributedCharacterIterator::Attribute::READING [static]

Attribute key for the reading of some text.

In languages where the written form and the pronunciation of a word are only loosely related (such as Japanese), it is often necessary to store the reading (pronunciation) along with the written form.

Values are instances of Annotation holding instances of String.

See also:
Annotation

java.lang.String

const Attribute java::text::AttributedCharacterIterator::Attribute::INPUT_METHOD_SEGMENT [static]

Attribute key for input method segments.

Input methods often break up text into segments, which usually correspond to words.

Values are instances of Annotation holding a null reference.

See also:
Annotation


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:45 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3