Files
Brainstorm/Foundation/src/com/foundation/view/IResourceHolderComponent.java
2014-05-30 10:31:51 -07:00

43 lines
2.2 KiB
Java

/*
* Copyright (c) 2006,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.foundation.view;
import com.common.util.IHashSet;
import com.foundation.view.resource.AbstractResourceService;
public interface IResourceHolderComponent {
/**
* Called by a resource holder when the held value changes either due to a new value being set, or due to a resource being changed.
* @param resourceHolder The resource holder that is sending the notification.
* @param oldValue The old value for the resource.
* @param newValue The new value for the resource.
* @param flags The change flags as defined by ISingleResourceAssociationChangeListener.
*/
public void resourceHolderChanged(AbstractResourceHolder resourceHolder, Object oldValue, Object newValue, int flags);
/**
* Called by a resource holder when the held value changes either due to a new value being set, or due to a resource being changed.
* @param resourceHolder The resource holder that is sending the notification.
* @param row The row that is affected by the value change.
* @param oldValue The old value for the resource.
* @param newValue The new value for the resource.
*/
public void resourceHolderChanged(AbstractMultiResourceHolder resourceHolder, Object row, Object oldValue, Object newValue);
/**
* Called by a resource holder when the held value changes either due to a new value being set, or due to a resource being changed.
* @param resourceHolder The resource holder that is sending the notification.
* @param rows The rows that are affected by the value change.
* @param oldValue The old value for the resource.
* @param newValue The new value for the resource.
*/
public void resourceHolderChanged(AbstractMultiResourceHolder resourceHolder, IHashSet rows, Object oldValue, Object newValue);
/**
* Gets the resource service.
* @return The component's resource service.
*/
public AbstractResourceService getResourceService();
}//IResourceHolderComponent//