Examples of Input


Examples of org.graylog2.restclient.models.Input

    }

    public Result importExtractorsPage(String nodeId, String inputId) {
        try {
            Node node = nodeService.loadNode(nodeId);
            Input input = node.getInput(inputId);

            BreadcrumbList bc = standardBreadcrumbs(node, input);
            bc.addCrumb("Import", controllers.routes.ExtractorsController.importExtractorsPage(nodeId, inputId));

            return ok(views.html.system.inputs.extractors.importPage.render(
View Full Code Here

Examples of org.jboss.seam.pages.Input

         page.setResourceBundleName(bundle);
      }
      List<Element> moreChildElements = element.elements("in");
      for (Element child: moreChildElements)
      {
         Input input = new Input();
         input.setName( child.attributeValue("name") );
         input.setValue( Expressions.instance().createValueBinding( child.attributeValue("value") ) );
         String scopeName = child.attributeValue("scope");
         if (scopeName!=null)
         {
            input.setScope( ScopeType.valueOf( scopeName.toUpperCase() ) );
         }
         page.getInputs().add(input);
      }
     
      return page;
View Full Code Here

Examples of org.newdawn.slick.Input

    Text.drawString(120, Text.extractLength("Esc - exit to main menu", 120), 545, "Esc - exit to main menu", Color.black, 0);
  }
 
  public void update(GameContainer gc, StateBasedGame sbg, int delta)
  {
    Input input = gc.getInput();
    if (input.isKeyPressed(Input.KEY_ENTER)) sbg.enterState(Game.GAMEPLAYSTATE);
    else if (input.isKeyPressed(Input.KEY_ESCAPE)) sbg.enterState(Game.MAINMENUSTATE);
  }
View Full Code Here

Examples of org.ofbiz.pos.component.Input

        pos.getInput().setFunction("QTY");
    }

    public static synchronized void triggerEnter(PosScreen pos, AWTEvent event) {
        // enter key maps to various different events; depending on the function
        Input input = pos.getInput();
        String[] lastFunc = input.getLastFunction();
        if (lastFunc != null) {
            if ("MGRLOGIN".equals(lastFunc[0])) {
                SecurityEvents.mgrLogin(pos);
            } else if ("LOGIN".equals(lastFunc[0])) {
                SecurityEvents.login(pos);
            } else if ("OPEN".equals(lastFunc[0])) {
                ManagerEvents.openTerminal(pos);
            } else if ("CLOSE".equals(lastFunc[0])) {
                ManagerEvents.closeTerminal(pos);
            } else if ("PAID_IN".equals(lastFunc[0])) {
                ManagerEvents.paidOutAndIn(pos, "IN");
            } else if ("PAID_OUT".equals(lastFunc[0])) {
                ManagerEvents.paidOutAndIn(pos, "OUT");
            } else if ("VOID".equals(lastFunc[0])) {
                ManagerEvents.voidOrder(pos);
            } else if ("REFNUM".equals(lastFunc[0])) {
                PaymentEvents.setRefNum(pos);
            } else if ("CREDIT".equals(lastFunc[0])) {
                PaymentEvents.payCredit(pos);
            } else if ("CREDITEXP".equals(lastFunc[0])) {
                PaymentEvents.payCredit(pos);
            } else if ("SECURITYCODE".equals(lastFunc[0])) {
                PaymentEvents.payCredit(pos);
            } else if ("POSTALCODE".equals(lastFunc[0])) {
                PaymentEvents.payCredit(pos);
            } else if ("CHECK".equals(lastFunc[0])) {
                PaymentEvents.payCheck(pos);
            } else if ("GIFTCARD".equals(lastFunc[0])) {
                PaymentEvents.payGiftCard(pos);
            } else if ("MSRINFO".equals(lastFunc[0])) {
                if (input.isFunctionSet("CREDIT")) {
                    PaymentEvents.payCredit(pos);
                } else if (input.isFunctionSet("GIFTCARD")) {
                    PaymentEvents.payGiftCard(pos);
                }
            } else if ("SKU".equals(lastFunc[0])) {
                MenuEvents.addItem(pos, event);
            } else if ("PROMOCODE".equals(lastFunc[0])) {
                PromoEvents.addPromoCode(pos);
            }
        } else if (input.value().length() > 0) {
            MenuEvents.addItem(pos, event);
        }
    }
View Full Code Here

Examples of org.openqa.jetty.html.Input

        page.add(Break.rule);
        Form form=new Form(request.getContextPath()+
                           request.getServletPath()+
                           "?A=exit");
        form.method("GET");
        form.add(new Input(Input.Submit,"A","Exit All Servers"));
        page.add(form);
        page.add(Break.rule);
        page.add(new Heading(3,"Components:"));

        List sList=new List(List.Ordered);
View Full Code Here

Examples of org.red5.io.amf.Input

    int version = in.getUnsignedShort(); // skip
    log.debug("Version: {}", version);
    // the version by now, AMF3 is not yet implemented
    int count = in.getUnsignedShort();
    log.debug("Count: {}", count);
    Input input = new Input(in);
    for (int i = 0; i < count; i++) {
      String name = input.getString(in);
      //String name = deserializer.deserialize(input, String.class);
      log.debug("Name: {}", name);
      boolean required = (in.get() == 0x01);
      log.debug("Required: {}", required);
      int len = in.getInt();
View Full Code Here

Examples of org.red5.io.object.Input

    log.debug("Read headers - version: {} count: {}", version, count);
    if (count == 0) {
      // No headers present
      return Collections.EMPTY_MAP;
    }
    Input input;
    if (version == 3) {
      input = new org.red5.io.amf3.Input(in);
    } else {
      input = new org.red5.io.amf.Input(in);
    }
    Map<String, Object> result = new HashMap<String, Object>();
    for (int i = 0; i < count; i++) {
      String name = input.getString();
      boolean required = in.get() == 0x01;
      int size = in.getInt();
      Object value = Deserializer.deserialize(input, Object.class);
      log.debug("Header: {} Required: {} Size: {} Value: {}", new Object[] { name, required, size, value });
      result.put(name, value);
View Full Code Here

Examples of org.rhq.helpers.perftest.support.Input


            System.out.flush();
            FileFormat format = state.format();

            Input input = format.getInput(streamProvider);

            try {
                DbSetup dbSetup = new DbSetup(jdbcConnection);
                dbSetup.setup(state.dbVersion());
                Importer.run(connection, input);
                dbSetup.upgrade(null);
            } finally {
                input.close();
            }
        } catch (Exception e) {
            LOG.warn("Failed to setup a database at [ " + dbUrl + "] for method '" + method.getTestMethod().getMethodName() + "'.", e);
        }
        finally {
View Full Code Here

Examples of org.sbml.jsbml.ext.qual.Input

        return qualSpecies;

      } else if (elementName.equals("input") && groupList.equals(QualList.listOfInputs)) {
        Transition transition = (Transition) listOf.getParentSBMLObject();

        Input input = new Input();
        transition.addInput(input);
        return input;

      } else if (elementName.equals("output") && groupList.equals(QualList.listOfOutputs)) {
        Transition transition = (Transition) listOf.getParentSBMLObject();
View Full Code Here

Examples of org.seattlegamer.spacegame.core.Input

  @Test
  public void keyPressesAreRecordedCorrectly() {
   
    int keyCode = KeyEvent.VK_SPACE;
   
    Input input = new Input();
    assertFalse(input.isKeyInputActive(keyCode));
    input.keyPressed(getMockKeyEvent(keyCode));
    assertTrue(input.isKeyInputActive(keyCode));

  }
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.