package com.vci.client.uif.engine.client.controls;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import com.vci.client.portal.utility.PRMItem;
|
import com.vci.client.uif.engine.client.custom.ICustomAttributeInteceptor;
|
|
/**
|
* 用户选择控件
|
* <p>返回的都是</p>
|
* @author xiongchao
|
*
|
*/
|
public class UserChooseControl extends BaseCustomControl {
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -8097238918177976518L;
|
|
public UserChooseControl(){
|
super();
|
}
|
|
public UserChooseControl(PRMItem item) {
|
super(item);
|
}
|
|
@Override
|
protected ICustomAttributeInteceptor getCustomInteceptorInstance(){
|
ICustomAttributeInteceptor res = null;
|
String className = getPRMItem().getItemValue();
|
try{
|
if(className == null || "".equals(className)) {
|
className = "plm.uif.actions.client.SelectorUserAction";
|
}
|
Object obj = Class.forName(className).getConstructor(null).newInstance(null);
|
if(obj == null) return res;
|
if(obj instanceof ICustomAttributeInteceptor){
|
res = (ICustomAttributeInteceptor)obj;
|
res.setCustomControl(this);
|
}
|
}catch(Exception ex){
|
ex.printStackTrace();
|
}
|
return res;
|
}
|
}
|