Package de.lessvoid.nifty.controls

Examples of de.lessvoid.nifty.controls.NiftyInputControl


    applyChildren(element, screen, nifty);
    enforceChildLayout(getAttributes(), elements.size());
    applyPostAttributes(element, getAttributes(), nifty.getRenderEngine());

    if (controller != null) {
      NiftyInputControl niftyInputControl = createNiftyInputControl(element.getId(), getAttributes(), controller);
      element.attachInputControl(niftyInputControl);
    }
  }
View Full Code Here


    if (inputMappingClass == null) {
      inputMappingClass = DefaultInputMapping.class.getName();
    }

    NiftyInputMapping inputMapping = ClassHelper.getInstance(inputMappingClass, NiftyInputMapping.class);
    return new NiftyInputControl(controller, inputMapping);
  }
View Full Code Here

   */
  public void connectParentControls(final Element parent) {
    if (parent == null) {
      return;
    }
    NiftyInputControl control = parent.getAttachedInputControl();
    if (control != null) {
      Controller controller = control.getController();
      if (controller != null) {
        controllers.addLast(controller);
      }
    }
    connectParentControls(parent.getParent());
View Full Code Here

    }
    return null;
  }

  private boolean isDroppable(final Element element) {
    NiftyInputControl control = element.getAttachedInputControl();
    if (control != null) {
      return control.getController() instanceof DroppableControl;
    }
    return false;
  }
View Full Code Here

    }
    return null;
  }

  private boolean isDraggable(final Element element) {
    NiftyInputControl control = element.getAttachedInputControl();
    if (control != null) {
      return control.getController() instanceof DraggableControl;
    }
    return false;
  }
View Full Code Here

  }
  protected void initInputTextField()
  {
    textfield = nifty.getScreen("debugGUI").findNiftyControl("txtInput", TextField.class);
    Element elem = textfield.getElement();
    elem.attachInputControl(new NiftyInputControl(elem.getAttachedInputControl().getController(), new TextFieldInputMappingAdv()));
    elem.getAttachedInputControl().addInputHandler(new KeyInputHandler() {
     
      @Override
      public boolean keyEvent(NiftyInputEvent inputEvent) {
        return onTextChanged(inputEvent);
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.controls.NiftyInputControl

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.