< prev index next >

src/java.desktop/share/classes/javax/swing/JList.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 2888,2897 **** --- 2888,2900 ---- implements AccessibleSelection, PropertyChangeListener, ListSelectionListener, ListDataListener { int leadSelectionIndex; + /** + * Constructs an {@code AccessibleJList}. + */ public AccessibleJList() { super(); JList.this.addPropertyChangeListener(this); JList.this.getSelectionModel().addListSelectionListener(this); JList.this.getModel().addListDataListener(this);
*** 3191,3200 **** --- 3194,3208 ---- private Component component = null; private AccessibleContext accessibleContext = null; private ListModel<E> listModel; private ListCellRenderer<? super E> cellRenderer = null; + /** + * Constructs an {@code AccessibleJListChild}. + * @param parent the parent + * @param indexInParent the index in the parent + */ public AccessibleJListChild(JList<E> parent, int indexInParent) { this.parent = parent; this.setAccessibleParent(parent); this.indexInParent = indexInParent; if (parent != null) {
< prev index next >