ListSelectionModel implementation
will keep the range as small as possible. ListSelectionListeners will
generally query the source of the event for the new selected status of each
potentially changed row.Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
ListSelectionModel
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | ListSelectionEvent(Object
the source, int Object on which the event initially occurredthe first index in the range, <= firstIndex, int lastIndexthe last index in the range, >= lastIndex, boolean firstIndexwhether or not this is one in a series of
multiple events, where changes are still being made isAdjusting)Represents a change in selection status between |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the first row whose selection value may have changed, where zero is the first rowReturns the index of the first row whose selection may have changed. |
| public int | Returns: the last row whose selection value may have changed, where zero is the first rowReturns the index of the last row whose selection may have changed. |
| public boolean | Returns: true if this is one in a series of multiple events,
where changes are still being madeReturns whether or not this is one in a series of multiple events, where changes are still being made. |
| public String | Returns: a string representation of this objectOverrides java. Returns a |
| firstIndex | back to summary |
|---|---|
| private final int firstIndex | |
| isAdjusting | back to summary |
|---|---|
| private final boolean isAdjusting | |
| lastIndex | back to summary |
|---|---|
| private final int lastIndex | |
| ListSelectionEvent | back to summary |
|---|---|
| public ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting) Represents a change in selection status between
| |
| getFirstIndex | back to summary |
|---|---|
| public int getFirstIndex() Returns the index of the first row whose selection may have changed.
| |
| getLastIndex | back to summary |
|---|---|
| public int getLastIndex() Returns the index of the last row whose selection may have changed.
| |
| getValueIsAdjusting | back to summary |
|---|---|
| public boolean getValueIsAdjusting() Returns whether or not this is one in a series of multiple events,
where changes are still being made. See the documentation for
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a
| |