org.zkoss.bind.BindContext Maven / Gradle / Ivy
/* BindContext.java
Purpose:
Description:
History:
Jun 22, 2011 9:50:12 AM, Created by henrichen
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind;
import java.util.Map;
import org.zkoss.bind.sys.Binding;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
/**
* Binding Context
* @author henrichen
* @since 6.0.0
*/
public interface BindContext {
/**
* Returns associated Binder of this Bind context.
* @return associated Binder of this Bind context.
*/
public Binder getBinder();
/**
* Returns associated Binding of this Bind context.
* @return associated Binding of this Bind context.
*/
public Binding getBinding();
/**
* Returns value of the given key in this Bind Context.
* @param key the key to the value.
* @return value of the given key in this Bind Context.
*/
public Object getAttribute(Object key);
/**
* Sets given value to the given key in this Bind context.
* @param key the key to the value
* @param value the value
* @return previous value that associated with the given key.
*/
public Object setAttribute(Object key, Object value);
/**
* Returns a copy of all attributes in this Bind context.
* @return a copy of all attributes in this Bind context.
*/
public Map