jdk/src/java.desktop/share/classes/javax/swing/table/DefaultTableColumnModel.java
changeset 29894 3e16b51732f5
parent 25859 3317bb8137f4
child 32865 f9cb6e427f9e
equal deleted inserted replaced
29893:fb1610d0d75a 29894:3e16b51732f5
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   650      *
   650      *
   651      * <pre>ColumnModelListener[] cmls = (ColumnModelListener[])(m.getListeners(ColumnModelListener.class));</pre>
   651      * <pre>ColumnModelListener[] cmls = (ColumnModelListener[])(m.getListeners(ColumnModelListener.class));</pre>
   652      *
   652      *
   653      * If no such listeners exist, this method returns an empty array.
   653      * If no such listeners exist, this method returns an empty array.
   654      *
   654      *
   655      * @param listenerType the type of listeners requested; this parameter
   655      * @param <T> the listener type
   656      *          should specify an interface that descends from
   656      * @param listenerType the type of listeners requested
   657      *          <code>java.util.EventListener</code>
       
   658      * @return an array of all objects registered as
   657      * @return an array of all objects registered as
   659      *          <code><em>Foo</em>Listener</code>s on this model,
   658      *          <code><em>Foo</em>Listener</code>s on this model,
   660      *          or an empty array if no such
   659      *          or an empty array if no such
   661      *          listeners have been added
   660      *          listeners have been added
   662      * @exception ClassCastException if <code>listenerType</code>
   661      * @exception ClassCastException if <code>listenerType</code>