observablelist.java

来自「java属性邦定的(JSR-295)的一个实现」· Java 代码 · 共 41 行

JAVA
41
字号
/* * Copyright (C) 2006-2007 Sun Microsystems, Inc. All rights reserved. Use is * subject to license terms. */package org.jdesktop.observablecollections;import java.util.List;/** * A {@code List} that notifies listeners of changes. * * @author sky */public interface ObservableList<E> extends List<E> {    /**     * Adds a listener that is notified when the list changes.     *     * @param listener the listener to add     */    public void addObservableListListener(ObservableListListener listener);    /**     * Removes a listener.     *     * @param listener the listener to remove     */    public void removeObservableListListener(ObservableListListener listener);    /**     * Returns {@code true} if this list sends out notification when     * the properties of an element change. This method may be used     * to determine if a listener needs to be installed on each of     * the elements of the list.     *     * @return {@code true} if this list sends out notification when     *         the properties of an element change     */    public boolean supportsElementPropertyChanged();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?