Package org.cruxframework.crux.core.rebind.screen

Examples of org.cruxframework.crux.core.rebind.screen.Event


   *
   * @param printer
   */
  private void processDeactivateEvt(SourcePrinter printer)
  {
      Event onDeactivate = view.getEvent("onDeactivate");
    if (onDeactivate != null)
    {
      printer.println(viewVariable+".addViewDeactivateHandler(new "+ViewDeactivateHandler.class.getCanonicalName()+"(){");
      printer.println("public void onDeactivate("+ViewDeactivateEvent.class.getCanonicalName()+" event){");

      EvtProcessor.printEvtCall(printer, onDeactivate.getController()+"."+onDeactivate.getMethod(),
          "onDeactivate", ViewDeactivateEvent.class, "event", context, view, getControllerAccessHandler(), Device.valueOf(device));

      printer.println("}");
      printer.println("});");
    }
View Full Code Here


   * @param printer
   * @return
   */
  private Event processResizedEvt(SourcePrinter printer)
    {
      Event onResized = view.getEvent("onResized");
    if (onResized != null)
    {
      printer.println("screen.addResizeHandler(new "+ResizeHandler.class.getCanonicalName()+"(){");
      printer.println("public void onResize("+ResizeEvent.class.getCanonicalName()+" event){");

      EvtProcessor.printEvtCall(printer, onResized.getController()+"."+onResized.getMethod(), "onResized",
          ResizeEvent.class, "event", context, view, getControllerAccessHandler(), Device.valueOf(device));

      printer.println("}");
      printer.println("});");
    }
View Full Code Here

  private void generateWidgetCreationForCellOnController(SourcePrinter out, C context, JSONObject child, JClassType dataObject, String dataObjectName)
    {
      try
      {
          String onCreateWidget = child.getString("onCreateWidget");
        Event event = EventFactory.getEvent("onCreateWidget", onCreateWidget);
        if (event != null)
        {
          String controllerClass = getControllerAccessorHandler().getControllerImplClassName(event.getController(), getDevice());
          out.println("private "+controllerClass+" controller = " + getControllerAccessorHandler().getControllerExpression(event.getController(), getDevice())+";");
        }
        ControllerAccessHandler controllerAccessHandler = new ControllerAccessHandler()
        {
          @Override
          public String getControllerImplClassName(String controller, Device device)
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.rebind.screen.Event

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.