|
|
@ -36,10 +36,6 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Object initialSelected = null; |
|
|
|
private Object initialSelected = null; |
|
|
|
|
|
|
|
|
|
|
|
//数据集和模板的名称
|
|
|
|
|
|
|
|
private String oldDsName; |
|
|
|
|
|
|
|
private String oldTemplateName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected LazyComboBox() { |
|
|
|
protected LazyComboBox() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
@ -58,15 +54,6 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public abstract Object[] load(); |
|
|
|
public abstract Object[] load(); |
|
|
|
|
|
|
|
|
|
|
|
public void changeLoaded(String dsName, String templateName){ |
|
|
|
|
|
|
|
if (!StringUtils.equals(dsName, oldDsName) || !StringUtils.equals(templateName, oldTemplateName)){ |
|
|
|
|
|
|
|
this.setLoaded(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
oldDsName = dsName; |
|
|
|
|
|
|
|
oldTemplateName = templateName; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void setSelectedItem(Object anObject) { |
|
|
|
public void setSelectedItem(Object anObject) { |
|
|
|
initialSelected = anObject; |
|
|
|
initialSelected = anObject; |
|
|
|