Package org.jboss.forge.addon.ui.validate

Examples of org.jboss.forge.addon.ui.validate.UIValidator


               .add(buildSystem);
   }

   private void configureProjectNamedInput()
   {
      named.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            if (named.getValue() != null && named.getValue().matches(".*[^-_.a-zA-Z0-9].*"))
 
View Full Code Here


            items.add("org.jboss.forge.addon:");
            return items;
         }
      });

      coordinate.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            String coordinate = (String) context.getCurrentInputComponent().getValue();
View Full Code Here

   public void initializeUI(UIBuilder builder) throws Exception
   {
      Project project = getSelectedProject(builder);
      final JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      // Setup named
      named.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            if (!Types.isSimpleName(named.getValue()))
View Full Code Here

   public void initializeUI(UIBuilder builder) throws Exception
   {
      Project project = getSelectedProject(builder);
      final JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      // Setup named
      named.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            if (!Types.isSimpleName(named.getValue()))
View Full Code Here

               .add(buildSystem);
   }

   private void configureProjectNamedInput()
   {
      named.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            if (named.getValue() != null && named.getValue().matches(".*[^-_.a-zA-Z0-9].*"))
 
View Full Code Here

               .add(buildSystem);
   }

   private void configureProjectNamedInput()
   {
      named.addValidator(new UIValidator()
      {
         @Override
         public void validate(UIValidationContext context)
         {
            if (named.getValue() != null && named.getValue().matches(".*[^-_.a-zA-Z0-9].*"))
 
View Full Code Here

                Collections.sort(list);
                return list;
            }
        });
*/
        file.addValidator(new UIValidator() {
            @Override
            public void validate(UIValidationContext validationContext) {
                InputComponent<?, ?> inputComponent = validationContext.getCurrentInputComponent();
                Object value = inputComponent.getValue();
                if (value instanceof File) {
View Full Code Here

            }
        });

        version.setCompleter(new UIVersionCompleter(this));

        named.addValidator(new UIValidator() {
            @Override
            public void validate(UIValidationContext context) {
                if (availableComponents == null) {
                    availableComponents = initializeAvailableCamelComponents();
                }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.ui.validate.UIValidator

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.