Qt Jambi Home

com.trolltech.qt.core
Enum Qt.SortOrder

java.lang.Object
  extended by java.lang.Enum<Qt.SortOrder>
      extended by com.trolltech.qt.core.Qt.SortOrder
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable<Qt.SortOrder>
Enclosing interface:
Qt

public static enum Qt.SortOrder
extends java.lang.Enum<Qt.SortOrder>
implements QtEnumerator

This enum describes how the items in a widget are sorted.


Enum Constant Summary
AscendingOrder
          The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales
DescendingOrder
          The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales
 
Method Summary
static Qt.SortOrder resolve(int value)
           
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static Qt.SortOrder valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Qt.SortOrder[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

AscendingOrder

public static final Qt.SortOrder AscendingOrder

The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales


DescendingOrder

public static final Qt.SortOrder DescendingOrder

The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales

Method Detail

values

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

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

valueOf

public static Qt.SortOrder 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
java.lang.NullPointerException - if the argument is null

value

public int value()
Description copied from interface: QtEnumerator
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 Qt.SortOrder resolve(int value)

Qt Jambi Home