Package de.iritgo.aktera.ui.form

Examples of de.iritgo.aktera.ui.form.CommandInfo.createCommand()


      CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);

      if (viewCommand != null)
      {
        Command cmd = viewCommand.createCommand(request, response, context);

        cmd.setName("command");
        cmd.setParameter(listing.getKeyName(), id);
        cmd.setParameter("link", "Y");
        outItem.setAttribute("command", cmd);
View Full Code Here


        CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);

        if (viewCommand != null)
        {
          Command cmd = viewCommand.createCommand(request, response, context);

          cmd.setName("command");
          cmd.setParameter("id", filler.getId());
          cmd.setParameter("link", "Y");
          outItem.setAttribute("command", cmd);
View Full Code Here

    CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);

    if (viewCommand != null)
    {
      Command cmd = viewCommand.createCommand(request, response, context);

      cmd.setName("command");
      cmd.setParameter(listing.getKeyName(), persistent.getFieldString(listing.getIdColumn()));
      cmd.setParameter("link", "Y");
      outItem.setAttribute("command", cmd);
View Full Code Here

    CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);

    if (viewCommand != null)
    {
      Command cmd = viewCommand.createCommand(request, response, context);

      cmd.setName("command");
      cmd.setParameter(listing.getKeyName(), ids);
      cmd.setParameter("link", "Y");
      outItem.setAttribute("command", cmd);
View Full Code Here

    outList.setAttribute("commandStyle", listing.getCommandStyle());

    CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);
    if (viewCommand != null && viewCommand.checkPermission(request))
    {
      Command cmd = viewCommand.createCommand(request, response, context);

      cmd.setName(outList.getName() + "CmdEdit");
      cmd.setLabel(viewCommand.getLabel() != null ? viewCommand.getLabel() : "edit");
      outList.setAttribute("cmdEdit", cmd);
    }
View Full Code Here

    }

    CommandInfo cmdNew = listing.getCommand(ListingDescriptor.COMMAND_NEW);
    if (cmdNew != null && cmdNew.isVisible() && cmdNew.checkPermission(request))
    {
      Command cmd = cmdNew.createCommand(request, response, context);

      cmd.setName(outList.getName() + "CmdNew");
      outList.setAttribute("cmdNew", cmd);
    }
View Full Code Here

      Output outCommands = response.createOutput("commands");
      outList.setAttribute("commands", outCommands);
      for (Iterator i = listing.getListCommands().iterator(); i.hasNext();)
      {
        CommandInfo descriptor = (CommandInfo) i.next();
        Command command = descriptor.createCommand(request, response, context);
        outCommands.add(command);
      }
    }

    if (listing.getItemCommands() != null)
View Full Code Here

    {
      Output outItemCommands = response.createOutput("itemCommands");
      CommandInfo viewCmd = listing.getCommand(ListingDescriptor.COMMAND_VIEW);
      if (viewCmd != null && viewCmd.checkPermission(request))
      {
        Command cmd = viewCmd.createCommand(request, response, context);
        outItemCommands.add(cmd);
      }
      outItemCommands.setAttribute("label", listing.getItemCommands().getLabel());
      outList.setAttribute("itemCommands", outItemCommands);
      for (Iterator i = listing.getItemCommands().iterator(); i.hasNext();)
View Full Code Here

      for (Iterator i = listing.getItemCommands().iterator(); i.hasNext();)
      {
        CommandInfo descriptor = (CommandInfo) i.next();
        if (viewCmd == null || ! descriptor.getName().equals(viewCmd.getName()))
        {
          Command command = descriptor.createCommand(request, response, context);
          outItemCommands.add(command);
        }
      }

      Command cmdExecute;
View Full Code Here

        input = response.createInput(searchInputName + "Category");
        input.setDefaultValue(listing.getCategory());
        input.setValidValues(listing.getCategories());
        response.add(input);
      }
      Command cmd = cmdSearch.createCommand(request, response, context);
      cmd.setName(outListName + "CmdSearch");
      outList.setAttribute("cmdSearch", cmd);
    }

    CommandInfo cmdBack = listing.getCommand(ListingDescriptor.COMMAND_BACK);
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.