zoukankan      html  css  js  c++  java
  • 输入框枚举


    public enum InputTypeEnum
    {
    /**
    * 表单字段输入框类型枚举
    */
    TEXT("文本", new String[]{""}, true),
    PASSWORD("密码", new String[]{""}, true),
    DATE("日期", new String[]{""}, true),
    TEXTAREA("多行文本", new String[]{""}, true),

    RADIO("单选", new String[]{""}, true),
    CHECKBOX("多选", new String[]{""}, true),
    SELECT("下拉框", new String[]{""}, true),

    FILE("文件上传", new String[]{""}, true);


    private String inputName;

    private String[] config;
    private boolean hasOption;

    InputTypeEnum(String inputName, String[] config, boolean hasOption)
    {
    this.inputName = inputName;
    this.config = config;
    this.hasOption = hasOption;
    }

    /*public static InputTypeEnum getFormFieldEnumByCode(String type)
    {
    if (StringUtil.isEmpty(type))
    {
    return null;
    }
    InputTypeEnum[] inputTypeEnums = InputTypeEnum.values();
    for (InputTypeEnum inputTypeEnum : inputTypeEnums)
    {
    if (type.equals(inputTypeEnum.type))
    {
    return inputTypeEnum;
    }
    }
    return null;
    }*/

    public boolean checkConfig(ObjectNode configNode)
    {
    for (String str : config)
    {
    String value = configNode.get(str).asText();
    }
    return true;
    }

    public String getInputName()
    {
    return inputName;
    }

    public void setInputName(String inputName)
    {
    this.inputName = inputName;
    }

    public String[] getConfig()
    {
    return config;
    }

    public void setConfig(String[] config)
    {
    this.config = config;
    }

    public boolean isHasOption()
    {
    return hasOption;
    }

    public void setHasOption(boolean hasOption)
    {
    this.hasOption = hasOption;
    }
    }
  • 相关阅读:
    HADOOP security
    apache sentry
    spark-deployment-modes-cluster-or-client
    Hadoop,Spark,Flink 相关KB
    OSGi类加载流程
    why-the-default-authentication-hadoop-is-unsecured ?
    Spring源码情操陶冶-PathMatchingResourcePatternResolver路径资源匹配溶解器
    maven跳过单元测试-maven.test.skip和skipTests的区别
    Maven+eclipse+jetty配置
    分布式事务资料
  • 原文地址:https://www.cnblogs.com/zzl0916/p/11145086.html
Copyright © 2011-2022 走看看