按钮状态

(1)设置按钮可见性

 

this.getBillUI().getButtonObjectByCode(按钮文字).setVisible(true/false);
//说明: true -- 可见  false -- 不可见

 

(2)设置提示信息

 

this.getBillUI().getButtonObjectByCode(按钮文字).setHint(移到按钮上的提示信息);

 

(3)设置按钮名字

 

this.getBillUI().getButtonObjectByCode(按钮文字).setName(修改后的按钮文字);

 

(4)提示信息

 

nc.ui.pub.beans.MessageDialog.showWarningDlg(this.getBillUI(),"提示","提示信息");

 

(5)数据类型

 

nc.vo.pub.lang.UFBoolean
nc.vo.pub.lang.UFDate
nc.vo.pub.lang.UFDateTime
nc.vo.pub.lang.UFDouble

//可以进行new操作,根据创建的对象调用方法进行相关操作

 

 

你可能感兴趣的:(UI)