com.trolltech.qt.gui
Class QTextOption.WrapMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.gui.QTextOption.WrapMode
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QTextOption

public static final class QTextOption.WrapMode
extends java.lang.Enum
implements QtEnumerator

This enum describes how text is wrapped in a document.

See Also:
Serialized Form

Field Summary
static QTextOption.WrapMode ManualWrap
          Wrapping occurs at a manually specified length from the start of the line.
static QTextOption.WrapMode NoWrap
          Text is not wrapped at all.
static QTextOption.WrapMode WordWrap
          Text is wrapped at word boundaries.
static QTextOption.WrapMode WrapAnywhere
          Text can be wrapped at any point on a line, even if it occurs in the middle of a word.
static QTextOption.WrapMode WrapAtWordBoundaryOrAnywhere
          If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.
 
Method Summary
static QTextOption.WrapMode resolve(int value)
          Returns the QTextOption$WrapMode constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QTextOption.WrapMode valueOf(java.lang.String name)
           
static QTextOption.WrapMode[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NoWrap

public static final QTextOption.WrapMode NoWrap
Text is not wrapped at all.


WordWrap

public static final QTextOption.WrapMode WordWrap
Text is wrapped at word boundaries.


ManualWrap

public static final QTextOption.WrapMode ManualWrap
Wrapping occurs at a manually specified length from the start of the line.


WrapAnywhere

public static final QTextOption.WrapMode WrapAnywhere
Text can be wrapped at any point on a line, even if it occurs in the middle of a word.


WrapAtWordBoundaryOrAnywhere

public static final QTextOption.WrapMode WrapAtWordBoundaryOrAnywhere
If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.

Method Detail

values

public static QTextOption.WrapMode[] values()

valueOf

public static QTextOption.WrapMode valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QTextOption.WrapMode resolve(int value)
Returns the QTextOption$WrapMode constant with the specified int.