600 |
{ |
{ |
601 |
return (ListSelectionListener[]) getListeners(ListSelectionListener.class); |
return (ListSelectionListener[]) getListeners(ListSelectionListener.class); |
602 |
} |
} |
603 |
|
|
604 |
|
/** |
605 |
|
* Returns a clone of this object. |
606 |
|
* <code>listenerList</code> don't gets duplicated. |
607 |
|
* |
608 |
|
* @return the cloned object |
609 |
|
* |
610 |
|
* @throws CloneNotSupportedException if an error occurs |
611 |
|
*/ |
612 |
|
public Object clone() |
613 |
|
throws CloneNotSupportedException |
614 |
|
{ |
615 |
|
DefaultListSelectionModel model = |
616 |
|
(DefaultListSelectionModel) super.clone(); |
617 |
|
model.sel = (BitSet) sel.clone(); |
618 |
|
return model; |
619 |
|
} |
620 |
} |
} |