All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bibliothek.gui.dock.util.UISchemeEvent Maven / Gradle / Ivy

There is a newer version: 1.1.2p6a
Show newest version
/*
 * Bibliothek - DockingFrames
 * Library built on Java/Swing, allows the user to "drag and drop"
 * panels containing any Swing-Component the developer likes to add.
 * 
 * Copyright (C) 2010 Benjamin Sigg
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 * 
 * Benjamin Sigg
 * [email protected]
 * CH - Switzerland
 */
package bibliothek.gui.dock.util;

import java.util.Collection;
import java.util.Set;

import bibliothek.util.Path;

/**
 * An event fired by an {@link UIScheme} after some content changed.
 * @author Benjamin Sigg
 */
public interface UISchemeEvent, B extends UIBridge> {
	/**
	 * Gets the scheme which fired this event.
	 * @return the source of the event
	 */
	public UIScheme getScheme();
	
	/**
	 * Checks which resources have changed, assuming that names are the
	 * only identifiers that are used.
	 * @param names a set of identifiers to check, null indicates that every possible identifier
	 * must be included in the search
	 * @return the identifiers of resources that have actually been changed, should be a subset of names. A
	 * value of null indicates that either all resources changed, or that this method cannot exactly
	 * tell what effect the event had 
	 */
	public Collection changedResources( Set names );
	
	/**
	 * Checks which bridges have changed, assuming that names are the
	 * only identifiers that are used.
	 * @param names a set of identifiers to check, null indicates that every possible identifier
	 * must be included in the search
	 * @return the identifiers of bridges that have actually been changed, should be a subset of names. A
	 * value of null indicates that either all bridges changed, or that this method cannot exactly
	 * tell what effect the event had 
	 */
	public Collection changedBridges( Set names );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy