< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/OptionListModel.java

Print this page

        

*** 97,110 **** public void removeListSelectionListener(ListSelectionListener l) { listenerList.remove(ListSelectionListener.class, l); } /** ! * Returns an array of all the <code>ListSelectionListener</code>s added * to this OptionListModel with addListSelectionListener(). * ! * @return all of the <code>ListSelectionListener</code>s added or an empty * array if no listeners have been added * @since 1.4 */ public ListSelectionListener[] getListSelectionListeners() { return listenerList.getListeners(ListSelectionListener.class); --- 97,110 ---- public void removeListSelectionListener(ListSelectionListener l) { listenerList.remove(ListSelectionListener.class, l); } /** ! * Returns an array of all the {@code ListSelectionListener}s added * to this OptionListModel with addListSelectionListener(). * ! * @return all of the {@code ListSelectionListener}s added or an empty * array if no listeners have been added * @since 1.4 */ public ListSelectionListener[] getListSelectionListeners() { return listenerList.getListeners(ListSelectionListener.class);
*** 459,474 **** return getClass().getName() + " " + Integer.toString(hashCode()) + " " + s; } /** * Returns a clone of the receiver with the same selection. ! * <code>listenerLists</code> are not duplicated. * * @return a clone of the receiver * @exception CloneNotSupportedException if the receiver does not ! * both (a) implement the <code>Cloneable</code> interface ! * and (b) define a <code>clone</code> method */ public Object clone() throws CloneNotSupportedException { @SuppressWarnings("unchecked") OptionListModel<E> clone = (OptionListModel)super.clone(); clone.value = (BitSet)value.clone(); --- 459,474 ---- return getClass().getName() + " " + Integer.toString(hashCode()) + " " + s; } /** * Returns a clone of the receiver with the same selection. ! * {@code listenerLists} are not duplicated. * * @return a clone of the receiver * @exception CloneNotSupportedException if the receiver does not ! * both (a) implement the {@code Cloneable} interface ! * and (b) define a {@code clone} method */ public Object clone() throws CloneNotSupportedException { @SuppressWarnings("unchecked") OptionListModel<E> clone = (OptionListModel)super.clone(); clone.value = (BitSet)value.clone();
< prev index next >