Examples of help()


Examples of org.internna.iwebmvc.metadata.ui.FormField.help()

        FormFieldImpl formField = new FormFieldImpl();
        formField.setPath(field.getName());
        formField.setEmbeddedClass(field.getDeclaringClass());
        FormField form = field.getAnnotation(FormField.class);
        formField.setType(form.type());
        formField.setHelp(form.help());
        addValidation(field, formField);
        formField.setRenderCrud(form.renderCrud());
        if (EntityFilter.WIDGET_TYPE.EMBEDDED.equals(formField.getType())) formField.setSubfields(getSubFields(field));
        return formField;
    }
View Full Code Here

Examples of org.jboss.forge.addon.ui.annotation.Command.help()

      String name = ann.value();
      if (name.isEmpty())
      {
         name = method.getName();
      }
      return Metadata.forCommand(method.getDeclaringClass()).name(name).description(ann.help())
               .category(Categories.create(ann.categories()));
   }

   @Override
   public boolean isEnabled(UIContext context)
View Full Code Here

Examples of org.jboss.forge.addon.ui.annotation.Command.help()

      String name = ann.value();
      if (name.isEmpty())
      {
         name = method.getName();
      }
      return Metadata.forCommand(method.getDeclaringClass()).name(name).description(ann.help());
   }

   @Override
   public boolean isEnabled(UIContext context)
   {
View Full Code Here

Examples of org.jboss.forge.addon.ui.annotation.Command.help()

      String name = ann.value();
      if (name.isEmpty())
      {
         name = method.getName();
      }
      return Metadata.forCommand(method.getDeclaringClass()).name(name).description(ann.help())
               .category(Categories.create(ann.categories()));
   }

   @Override
   public boolean isEnabled(UIContext context)
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Command.help()

         if (Annotations.isAnnotationPresent(method, Command.class))
         {
            Command command = Annotations.getAnnotation(method, Command.class);
            CommandMetadata commandMeta = new CommandMetadata();
            commandMeta.setMethod(method);
            commandMeta.setHelp(command.help());
            commandMeta.setParent(pluginMeta);

            // Default commands are invoked via the name of the plug-in, not by
            // plug-in + command
            if ("".equals(command.value()))
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Command.help()

         if (Annotations.isAnnotationPresent(method, Command.class))
         {
            Command command = Annotations.getAnnotation(method, Command.class);
            CommandMetadataImpl commandMeta = new CommandMetadataImpl();
            commandMeta.setMethod(method);
            commandMeta.setHelp(command.help());
            commandMeta.setParent(pluginMeta);

            // Default commands are invoked via the name of the plug-in, not by
            // plug-in + command
            if ("".equals(command.value()))
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Command.help()

         if (Annotations.isAnnotationPresent(method, Command.class))
         {
            Command command = Annotations.getAnnotation(method, Command.class);
            CommandMetadataImpl commandMeta = new CommandMetadataImpl();
            commandMeta.setMethod(method);
            commandMeta.setHelp(command.help());
            commandMeta.setParent(pluginMeta);

            // Default commands are invoked via the name of the plug-in, not by
            // plug-in + command
            if ("".equals(command.value()))
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Command.help()

         if (Annotations.isAnnotationPresent(method, Command.class))
         {
            Command command = Annotations.getAnnotation(method, Command.class);
            CommandMetadataImpl commandMeta = new CommandMetadataImpl();
            commandMeta.setMethod(method);
            commandMeta.setHelp(command.help());
            commandMeta.setParent(pluginMeta);

            // Default commands are invoked via the name of the plug-in, not by
            // plug-in + command
            if ("".equals(command.value()))
View Full Code Here

Examples of org.jboss.forge.shell.plugins.DefaultCommand.help()

               commandMeta.setDefault(true);
               commandMeta.setName(pluginMeta.getName());

               // favor help text from this annotation over others
               DefaultCommand def = Annotations.getAnnotation(method, DefaultCommand.class);
               if ((def.help() != null) && !def.help().trim().isEmpty())
               {
                  commandMeta.setHelp(def.help());
               }
            }
View Full Code Here

Examples of org.jboss.forge.shell.plugins.DefaultCommand.help()

               commandMeta.setDefault(true);
               commandMeta.setName(pluginMeta.getName());

               // favor help text from this annotation over others
               DefaultCommand def = Annotations.getAnnotation(method, DefaultCommand.class);
               if ((def.help() != null) && !def.help().trim().isEmpty())
               {
                  commandMeta.setHelp(def.help());
               }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.