com.trolltech.qt.gui
Class QAbstractItemView.SelectionMode

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

public static final class QAbstractItemView.SelectionMode
extends java.lang.Enum
implements QtEnumerator

This enum indicates how the view responds to user selections. The most commonly used modes are SingleSelection and ExtendedSelection .

See Also:
Serialized Form

Field Summary
static QAbstractItemView.SelectionMode ContiguousSelection
          When the user selects an item in the usual way, the selection is cleared and the new item selected.
static QAbstractItemView.SelectionMode ExtendedSelection
          When the user selects an item in the usual way, the selection is cleared and the new item selected.
static QAbstractItemView.SelectionMode MultiSelection
          When the user selects an item in the usual way, the selection status of that item is toggled and the other items are left alone.
static QAbstractItemView.SelectionMode NoSelection
          Items cannot be selected.
static QAbstractItemView.SelectionMode SingleSelection
          When the user selects an item, any already-selected item becomes unselected, and the user cannot unselect the selected item by clicking on it.
 
Method Summary
static QAbstractItemView.SelectionMode resolve(int value)
          Returns the QAbstractItemView$SelectionMode 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 QAbstractItemView.SelectionMode valueOf(java.lang.String name)
           
static QAbstractItemView.SelectionMode[] 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

NoSelection

public static final QAbstractItemView.SelectionMode NoSelection
Items cannot be selected.


SingleSelection

public static final QAbstractItemView.SelectionMode SingleSelection
When the user selects an item, any already-selected item becomes unselected, and the user cannot unselect the selected item by clicking on it.


MultiSelection

public static final QAbstractItemView.SelectionMode MultiSelection
When the user selects an item in the usual way, the selection status of that item is toggled and the other items are left alone. Multiple items can be toggled by dragging the mouse over them.


ExtendedSelection

public static final QAbstractItemView.SelectionMode ExtendedSelection
When the user selects an item in the usual way, the selection is cleared and the new item selected. However, if the user presses the Ctrl key when clicking on an item, the clicked item gets toggled and all other items are left untouched. If the user presses the Shift key while clicking on an item, all items between the current item and the clicked item are selected or unselected, depending on the state of the clicked item. Multiple items can be selected by dragging the mouse over them.


ContiguousSelection

public static final QAbstractItemView.SelectionMode ContiguousSelection
When the user selects an item in the usual way, the selection is cleared and the new item selected. However, if the user presses the Shift key while clicking on an item, all items between the current item and the clicked item are selected or unselected, depending on the state of the clicked item.

Method Detail

values

public static QAbstractItemView.SelectionMode[] values()

valueOf

public static QAbstractItemView.SelectionMode 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 QAbstractItemView.SelectionMode resolve(int value)
Returns the QAbstractItemView$SelectionMode constant with the specified int.