⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modelformfield.java

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     * @return     */    public String getTitleStyle() {        if (UtilValidate.isNotEmpty(this.titleStyle)) {            return this.titleStyle;        } else {            return this.modelForm.getDefaultTitleStyle();        }    }    /**     * @return     */    public String getRequiredFieldStyle() {        if (UtilValidate.isNotEmpty(this.requiredFieldStyle)) {            return this.requiredFieldStyle;        } else {            return this.modelForm.getDefaultRequiredFieldStyle();        }    }    /**     * @return     */    public String getTooltip(Map context) {        if (tooltip != null && !tooltip.isEmpty()) {            return tooltip.expandString(context);        } else {            return "";        }    }    /**     * @return     */    public String getUseWhen(Map context) {        if (useWhen != null && !useWhen.isEmpty()) {            return useWhen.expandString(context);        } else {            return "";        }    }    /**     * @return     */    public String getIdName() {        return idName;    }        /**     * @return     */    public String getHeaderLink() {        return headerLink;    }        public String getHeaderLinkStyle() {        return headerLinkStyle;    }        /**     * @param string     */    public void setIdName(String string) {        idName = string;    }    public boolean isUseWhenEmpty() {        if (this.useWhen == null) {            return true;        }        return this.useWhen.isEmpty();    }    public boolean shouldUse(Map context) {        String useWhenStr = this.getUseWhen(context);        if (UtilValidate.isEmpty(useWhenStr)) {            return true;        } else {            try {                Interpreter bsh = this.modelForm.getBshInterpreter(context);                Object retVal = bsh.eval(useWhenStr);                boolean condTrue = false;                // retVal should be a Boolean, if not something weird is up...                if (retVal instanceof Boolean) {                    Boolean boolVal = (Boolean) retVal;                    condTrue = boolVal.booleanValue();                } else {                    throw new IllegalArgumentException("Return value from use-when condition eval was not a Boolean: "                            + retVal.getClass().getName() + " [" + retVal + "] on the field " + this.name + " of form " + this.modelForm.name);                }                return condTrue;            } catch (EvalError e) {                String errMsg = "Error evaluating BeanShell use-when condition [" + useWhenStr + "] on the field "                        + this.name + " of form " + this.modelForm.name + ": " + e.toString();                Debug.logError(e, errMsg, module);                //Debug.logError("For use-when eval error context is: " + context, module);                throw new IllegalArgumentException(errMsg);            }        }    }    /**     * @return     */    public String getWidgetAreaStyle() {        if (UtilValidate.isNotEmpty(this.widgetAreaStyle)) {            return this.widgetAreaStyle;        } else {            return this.modelForm.getDefaultWidgetAreaStyle();        }    }    /**     * @return     */    public String getWidgetStyle() {        if (UtilValidate.isNotEmpty(this.widgetStyle)) {            return this.widgetStyle;        } else {            return this.modelForm.getDefaultWidgetStyle();        }    }    /**     * @return     */    public String getTooltipStyle() {        if (UtilValidate.isNotEmpty(this.tooltipStyle)) {            return this.tooltipStyle;        } else {            return this.modelForm.getDefaultTooltipStyle();        }    }    /**     * @param string     */    public void setAttributeName(String string) {        attributeName = string;    }    /**     * @param string     */    public void setEntityName(String string) {        entityName = string;    }    /**     * @param string     */    public void setEntryName(String string) {        entryAcsr = new FlexibleMapAccessor(string);    }    /**     * @param string     */    public void setFieldName(String string) {        fieldName = string;    }    /**     * @param string     */    public void setMapName(String string) {        this.mapAcsr = new FlexibleMapAccessor(string);    }    /**     * @param string     */    public void setName(String string) {        name = string;    }    /**     * @param string     */    public void setParameterName(String string) {        parameterName = string;    }    /**     * @param i     */    public void setPosition(int i) {        position = new Integer(i);    }    /**     * @param string     */    public void setRedWhen(String string) {        redWhen = string;    }    /**     * @param string     */    public void setEvent(String string) {        event = string;    }    /**     * @param string     */    public void setAction(String string) {        action = string;    }    /**     * @param string     */    public void setServiceName(String string) {        serviceName = string;    }    /**     * @param string     */    public void setTitle(String string) {        this.title = new FlexibleStringExpander(string);    }    /**     * @param string     */    public void setTitleAreaStyle(String string) {        this.titleAreaStyle = string;    }    /**     * @param string     */    public void setTitleStyle(String string) {        this.titleStyle = string;    }    /**     * @param string     */    public void setTooltip(String string) {        this.tooltip = new FlexibleStringExpander(string);    }    /**     * @param string     */    public void setUseWhen(String string) {        this.useWhen = new FlexibleStringExpander(string);    }    /**     * @param string     */    public void setWidgetAreaStyle(String string) {        this.widgetAreaStyle = string;    }       /**     * @param string     */    public void setWidgetStyle(String string) {        this.widgetStyle = string;    }    /**     * @param string     */    public void setTooltipStyle(String string) {        this.tooltipStyle = string;    }    /**     * @return     */    public boolean getSeparateColumn() {        return this.separateColumn;    }    /**     * @param string     */    public void setHeaderLink(String string) {        this.headerLink = string;    }        /**     * @param string     */    public void setHeaderLinkStyle(String string) {        this.headerLinkStyle = string;    }            /**     * @return     */    public boolean getRequiredField() {        return this.requiredField;    }        /**     * @param ModelForm     */    public void setModelForm(ModelForm modelForm) {        this.modelForm = modelForm;    }    public static abstract class FieldInfo {        public static final int DISPLAY = 1;        public static final int HYPERLINK = 2;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -