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

org.zkoss.bind.sys.PropertyBinding Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* PropertyBinding.java

	Purpose:
		
	Description:
		
	History:
		Jul 26, 2011 3:48:41 PM, Created by henrichen

Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind.sys;

import java.util.Map;

import org.zkoss.bind.Converter;
import org.zkoss.xel.ExpressionX;

/**
 * A binding tells how to deal with Load or Save a field of a source object
 * (usually an UI component) and a property of a target object(usually a backing bean).
 * @author henrichen
 * @since 6.0.0
 */
public interface PropertyBinding extends Binding {
	/**
	 * Returns the associated _converter with this binding. 
	 * @return the associated _converter with this binding.
	 */
	public Converter getConverter();

	/**
	 * Returns the field name of the source object.
	 * @return the field name of the source object.
	 */
	public String getFieldName();

	/**
	 * Returns the associated command name of this binding; null if not speicified.
	 * @return the associated command name of this binding; null if not speicified.
	 */
	public String getCommandName();

	/**
	 * Returns the property expression script of this binding.
	 * @return the property expression script of this binding. 
	 */
	public String getPropertyString();

	/**
	 * Returns the condition type of this binding
	 */
	public ConditionType getConditionType();

	/**
	 * Returns an argument {@code } pairs map for converter.
	 * @return an argument {@code } pairs map for converter.
	 */
	public Map getConverterArgs();

	/**
	 * @return the property expression of binding
	 * @since 8.0.0
	 */
	public ExpressionX getProperty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy