wangting
2024-11-27 3b3fd904b9b34e77445d749bca8c28beadcaf3db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
}