Package org.metaworks.validator

Examples of org.metaworks.validator.NotNullValid


//    fd = table.getFieldDescriptor("ServiceType");
//    fd.setAttribute("hidden", new Boolean(true));

    fd = type.getFieldDescriptor("Name");   
    fd.setDisplayName(GlobalContext.getLocalizedMessage("role.name.displayname", "Role Name (id)"));
    fd.setValidators(new Validator[]{new NotNullValid()}); //it's mandatory

    fd = type.getFieldDescriptor("DisplayName");   
    fd.setDisplayName(GlobalContext.getLocalizedMessage("role.displayname.displayname", "Display Name"));

    fd = type.getFieldDescriptor("DefaultEndpoint");   
View Full Code Here


    FieldDescriptor fd;

    type.setName("Deploy process design to uEngine server");
   
    fd = type.getFieldDescriptor("Name");
    fd.setValidators(new Validator[]{new NotNullValid()});

    fd = type.getFieldDescriptor("Version");
    fd.setValidators(new Validator[]{new NotNullValid()});
   
    fd = type.getFieldDescriptor("Alias");
    fd.setValidators(new Validator[]{new NotNullValid()});
   
    type.setFieldOrder(new String[]{"Name", "Alias", "Version", "Author"});
  }
View Full Code Here

TOP

Related Classes of org.metaworks.validator.NotNullValid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.