package com.vci.client.uif.engine.client.custom;
|
|
import java.awt.Component;
|
|
import com.vci.client.portal.utility.PRMItem;
|
import com.vci.client.uif.engine.client.controls.ICustomControl;
|
import com.vci.corba.common.VCIError;
|
|
public interface ICustomAttributeInteceptor {
|
|
public final static String SPLIT_CHAR = "##VCI##";
|
|
/**
|
* 返回 自定义属性控件 所属的自定义控件
|
* @return
|
*/
|
public ICustomControl getOwnerCustomControl();
|
/**
|
* 设置 自定义属性控件 所属的自定义控件
|
* @param ownerCustomControl
|
*/
|
public void setCustomControl(ICustomControl ownerCustomControl);
|
|
|
/**
|
* 返回自定义属性的 存储值##VCI##显示
|
* @param prm 当前属性的定义信息
|
* @param parentComponent 父组件对象
|
* @return 返回数据格式 存储值##VCI##显示值
|
* <p>存储值:将是实际存储到BTM属性上的值</p>
|
* <p>显示值:控件UI展示时的显示值</p>
|
*/
|
public String getCustomAttributeSaveValue(PRMItem prm, Component parentComponent) throws VCIError;
|
|
|
/**
|
* 获取当前属性值的显示值
|
*
|
* @param attrVal,数据库记录的值
|
* @param prm,当前属性列的定义信息
|
* @return
|
* @throws VCIError
|
*/
|
public String getCustomAttributeDisplayValue(String attrVal, PRMItem prm) throws VCIError;
|
}
|