jdk/src/java.desktop/share/classes/javax/swing/table/DefaultTableColumnModel.java
equal
deleted
inserted
replaced
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> |