|
|
|
@ -24,6 +24,7 @@ import com.fr.general.FRFont;
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import jdk.nashorn.internal.runtime.regexp.joni.Regex; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -38,6 +39,7 @@ public class XTextEditor extends XWrapperedFieldEditor {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 控件的属性列表 |
|
|
|
|
* |
|
|
|
|
* @return 此控件所用的属性列表 |
|
|
|
|
* @throws IntrospectionException 异常 |
|
|
|
|
*/ |
|
|
|
@ -57,7 +59,8 @@ public class XTextEditor extends XWrapperedFieldEditor {
|
|
|
|
|
CRPropertyDescriptor[] sup = (CRPropertyDescriptor[]) ArrayUtils.addAll(new CRPropertyDescriptor[]{widgetValue}, super.supportedDescriptor()); |
|
|
|
|
Boolean displayRegField = true; |
|
|
|
|
RegExp reg = ((TextEditor) toData()).getRegex(); |
|
|
|
|
if(reg == null || reg.toRegText().equals("")){ |
|
|
|
|
if (reg == null || !StringUtils.isNotEmpty(reg.toRegText())) { |
|
|
|
|
|
|
|
|
|
displayRegField = false; |
|
|
|
|
} |
|
|
|
|
return displayRegField ? (CRPropertyDescriptor[]) ArrayUtils.addAll(sup, |
|
|
|
|