org.xwiki.gwt.dom.client.internal.ie
Enum TextRange.Unit

java.lang.Object
  extended by java.lang.Enum<TextRange.Unit>
      extended by org.xwiki.gwt.dom.client.internal.ie.TextRange.Unit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextRange.Unit>
Enclosing class:
TextRange

public static enum TextRange.Unit
extends java.lang.Enum<TextRange.Unit>

A unit defining a fragment of a text range. It is used when moving the end points of a text range.


Enum Constant Summary
CHARACTER
          A character.
SENTENCE
          A sentence is a collection of words terminated by a punctuation character, such as a period.
TEXTEDIT
          The start or end of the original range.
WORD
          A word is a collection of characters terminated by a space or some other white-space character, such as a tab.
 
Method Summary
static TextRange.Unit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextRange.Unit[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHARACTER

public static final TextRange.Unit CHARACTER
A character.


WORD

public static final TextRange.Unit WORD
A word is a collection of characters terminated by a space or some other white-space character, such as a tab.


SENTENCE

public static final TextRange.Unit SENTENCE
A sentence is a collection of words terminated by a punctuation character, such as a period.


TEXTEDIT

public static final TextRange.Unit TEXTEDIT
The start or end of the original range.

Method Detail

values

public static final TextRange.Unit[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TextRange.Unit c : TextRange.Unit.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TextRange.Unit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2004-2009 XWiki. All Rights Reserved.