Microsoft SDK for Java

DhListBox.setSelectionMode

Determines how many items at a time can be selected in the list box.

Syntax

public void setSelectionMode( int value )

Parameters

value

The new selection mode. Possible values are:

SelectionMode.ONE indicates that only one item can be selected at a time.

SelectionMode.MULTI_EXTENDED indicates that more than one item at a time can be selected and that keyboard characters, such as SHIFT and CTRL, can be used to assist in the selection.

Note NONE and MULTI_SIMPLE are not valid for DhListBox.

Exceptions

WFCInvalidArgumentException thrown if value is not ONE or MULTI_EXTENDED.

See Also   getSelectionMode

© 1999 Microsoft Corporation. All rights reserved. Terms of use.