24 */
25
26 package javax.swing;
27
28 import javax.swing.event.*;
29
30 /**
31 * This interface represents the current state of the
32 * selection for any of the components that display a
33 * list of values with stable indices. The selection is
34 * modeled as a set of intervals, each interval represents
35 * a contiguous range of selected list elements.
36 * The methods for modifying the set of selected intervals
37 * all take a pair of indices, index0 and index1, that represent
38 * a closed interval, i.e. the interval includes both index0 and
39 * index1.
40 *
41 * @author Hans Muller
42 * @author Philip Milne
43 * @see DefaultListSelectionModel
44 */
45
46 public interface ListSelectionModel
47 {
48 /**
49 * A value for the selectionMode property: select one list index
50 * at a time.
51 *
52 * @see #setSelectionMode
53 */
54 int SINGLE_SELECTION = 0;
55
56 /**
57 * A value for the selectionMode property: select one contiguous
58 * range of indices at a time.
59 *
60 * @see #setSelectionMode
61 */
62 int SINGLE_INTERVAL_SELECTION = 1;
63
|
24 */
25
26 package javax.swing;
27
28 import javax.swing.event.*;
29
30 /**
31 * This interface represents the current state of the
32 * selection for any of the components that display a
33 * list of values with stable indices. The selection is
34 * modeled as a set of intervals, each interval represents
35 * a contiguous range of selected list elements.
36 * The methods for modifying the set of selected intervals
37 * all take a pair of indices, index0 and index1, that represent
38 * a closed interval, i.e. the interval includes both index0 and
39 * index1.
40 *
41 * @author Hans Muller
42 * @author Philip Milne
43 * @see DefaultListSelectionModel
44 * @since 1.2
45 */
46
47 public interface ListSelectionModel
48 {
49 /**
50 * A value for the selectionMode property: select one list index
51 * at a time.
52 *
53 * @see #setSelectionMode
54 */
55 int SINGLE_SELECTION = 0;
56
57 /**
58 * A value for the selectionMode property: select one contiguous
59 * range of indices at a time.
60 *
61 * @see #setSelectionMode
62 */
63 int SINGLE_INTERVAL_SELECTION = 1;
64
|