Package org.asmatron.messengine.annotations

Examples of org.asmatron.messengine.annotations.RequestField


    return requestFields.size() + requestMethods.size() + actionMethods.size();
  }

  private void addRequestFieldHandler(Object object, Field field) {
    checkControlEngine();
    RequestField annotation = field.getAnnotation(RequestField.class);
    ActionId<RequestAction<Object, Object>> actionType = ActionId.cm(annotation.value());
    RequestFieldHandler actionHandler = new RequestFieldHandler(object, field);
    controlEngine.addActionHandler(actionType, actionHandler);
  }
View Full Code Here


    controlEngine.addActionHandler(actionType, actionHandler);
  }

  private void removeRequestFieldHandler(Object object, Field field) {
    checkControlEngine();
    RequestField annotation = field.getAnnotation(RequestField.class);
    ActionId<RequestAction<Object, Object>> actionType = ActionId.cm(annotation.value());
    controlEngine.removeActionHandler(actionType);
  }
View Full Code Here

TOP

Related Classes of org.asmatron.messengine.annotations.RequestField

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.