⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractbindinglistener.java

📁 java属性邦定的(JSR-295)的一个实现
💻 JAVA
字号:
/* * Copyright (C) 2007 Sun Microsystems, Inc. All rights reserved. Use is * subject to license terms. */package org.jdesktop.beansbinding;/** * An abstract subclass of {@code BindingListener} that simplifies writing * {@code BindingListeners} by allowing you to extend this class and re-implement * only the methods you care about. * * @author Shannon Hickey */public abstract class AbstractBindingListener implements BindingListener {    /**     * {@inheritDoc}     */    public void bindingBecameBound(Binding binding) {}    /**     * {@inheritDoc}     */    public void bindingBecameUnbound(Binding binding) {}    /**     * {@inheritDoc}     */    public void syncFailed(Binding binding, Binding.SyncFailure failure) {}    /**     * {@inheritDoc}     */    public void synced(Binding binding) {}    /**     * {@inheritDoc}     * <p>     * This implementation calls {@code sourceEdited} if the provided event returns     * {@code true} from {@code getValueChanged}.     */    public void sourceChanged(Binding binding, PropertyStateEvent event) {        if (event.getValueChanged()) {            sourceEdited(binding);        }    }    /**     * {@inheritDoc}     * <p>     * This implementation calls {@code targetEdited} if the provided event returns     * {@code true} from {@code getValueChanged}.     */    public void targetChanged(Binding binding, PropertyStateEvent event) {        if (event.getValueChanged()) {            targetEdited(binding);        }    }        /**     * Notification that the source property of a {@code Binding} has fired     * a {@code PropertyStateEvent} indicating that its <b>value or readability</b>     * has changed for the {@code Binding's} source object. Called by the default     * {@code AbstractBindingListener's} implementation of {@code sourceChanged}.     *     * @param binding the {@code Binding}     * @deprecated This method has been replaced by {@link #sourceChanged} and it     *             will go away soon. It is being kept for a short period only,     *             to assist in migration.     */    @Deprecated    public void sourceEdited(Binding binding) {}    /**     * Notification that the target property of a {@code Binding} has fired     * a {@code PropertyStateEvent} indicating that its <b>value or readability</b>     * has changed for the {@code Binding's} target object. Called by the default     * {@code AbstractBindingListener's} implementation of {@code targetChanged}.     *     * @param binding the {@code Binding}     * @deprecated This method has been replaced by {@link #targetChanged} and it     *             will go away soon. It is being kept for a short period only,     *             to assist in migration.     */    @Deprecated    public void targetEdited(Binding binding) {}}

⌨️ 快捷键说明

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