Examples of addEventHandler()


Examples of org.apache.tapestry.components.ILinkComponent.addEventHandler()

        ILinkComponent link = (ILinkComponent) getComponent("link");

        // These don't exist, but that's ok, we're testing the link's sensitivity
        // to be inside a Body

        link.addEventHandler(LinkEventType.CLICK, "eventHandler1");
        link.addEventHandler(LinkEventType.CLICK, "eventHandler2");
        link.addEventHandler(LinkEventType.CLICK, "eventHandler3");
    }

    public IRender getLinkContentRender()
View Full Code Here

Examples of org.apache.velocity.app.event.EventCartridge.addEventHandler()

        Context ctx = new VelocityContext();

        // Attach an Event Cartridge to it, so we get exceptions
        // while invoking methods from the Velocity Screens
        EventCartridge ec = new EventCartridge();
        ec.addEventHandler(this);
        ec.attachToContext(ctx);
        return ctx;
    }

    /**
 
View Full Code Here

Examples of org.berlin.patterns.swing.app.gui.Components.Button.addEventHandler()

                    final Components.IActionHandler action = button.getWindow().getActionHandler();
                    action.handleOnButtonEnter();              
                }
            };       
            final IButton button = new Button(new JButton("Execute"), eventWorker, this.getBasicWindow());
            button.addEventHandler();
            return button;
        }
       
        /**
         * Method createClearButton.
View Full Code Here

Examples of org.berlin.patterns.swing.app.gui.Components.IButton.addEventHandler()

                    final Components.IActionHandler action = button.getWindow().getActionHandler();
                    action.handleOnButtonEnter();              
                }
            };       
            final IButton button = new Button(new JButton("Execute"), eventWorker, this.getBasicWindow());
            button.addEventHandler();
            return button;
        }
       
        /**
         * Method createClearButton.
View Full Code Here

Examples of org.fxmisc.richtext.StyleClassedTextArea.addEventHandler()

                "-fx-text-fill: white;" +
                "-fx-padding: 5;");
        popup.getContent().add(popupMsg);

        area.setMouseOverTextDelay(Duration.ofSeconds(1));
        area.addEventHandler(MouseOverTextEvent.MOUSE_OVER_TEXT_BEGIN, e -> {
            int chIdx = e.getCharacterIndex();
            Point2D pos = e.getScreenPosition();
            popupMsg.setText("Character '" + area.getText(chIdx, chIdx+1) + "' at " + pos);
            popup.show(area, pos.getX(), pos.getY() + 10);
        });
View Full Code Here

Examples of org.jboss.as.test.integration.logging.syslogserver.UDPSyslogServerConfig.addEventHandler()

            final String host = Utils.getHost(managementClient);
            final UDPSyslogServerConfig config = new UDPSyslogServerConfig();
            config.setPort(PORT);
            config.setHost(host);
            config.setUseStructuredData(true);
            config.addEventHandler(new BlockedSyslogServerEventHandler());
            SyslogServer.createInstance(UDP, config);
            // start syslog server
            SyslogServer.getThreadedInstance(SyslogConstants.UDP);

            final ModelNode compositeOp = new ModelNode();
View Full Code Here

Examples of org.openhab.io.gpio.GPIOPin.addEventHandler()

                    gpioPin.removeEventHandler(this);
                  }
                  gpioPin.setDirection(newDirection);
                  if (newDirection == GPIOPin.DIRECTION_IN) {
                    gpioPin.setEdgeDetection(GPIOPin.EDGEDETECTION_BOTH);
                    gpioPin.addEventHandler(this);
                  }
                }

                /* Debouncing is valid only for input pins */
                if (newDirection == GPIOPin.DIRECTION_IN) {
View Full Code Here

Examples of org.pentaho.ui.xul.XulDomContainer.addEventHandler()

      if (controller != null)
      {
        controller.setName("controller"); // NON-NLS
        controller.setXulDomContainer(container);
        controller.init(reportDesignerContext, model, extraFields);
        container.addEventHandler(controller);
      }

      // Start it up!
      final XulRunner runner = new SwingXulRunner();
      runner.addContainer(container);
View Full Code Here

Examples of org.richfaces.renderkit.ScriptOptions.addEventHandler()

        if(evt == null || evt.trim().length() == 0){
          evt = "onmouseover";
        }
        function.addParameter(evt);
        ScriptOptions subMenuOptions = new ScriptOptions(component);
        subMenuOptions.addEventHandler("onopen");
        subMenuOptions.addEventHandler("onclose");
        subMenuOptions.addOption("direction");
        subMenuOptions.addOption("highlightParent", Boolean.TRUE);
        function.addParameter(subMenuOptions);
        function.appendScript(buffer);
View Full Code Here

Examples of org.richfaces.renderkit.ScriptOptions.addEventHandler()

          evt = "onmouseover";
        }
        function.addParameter(evt);
        ScriptOptions subMenuOptions = new ScriptOptions(component);
        subMenuOptions.addEventHandler("onopen");
        subMenuOptions.addEventHandler("onclose");
        subMenuOptions.addOption("direction");
        subMenuOptions.addOption("highlightParent", Boolean.TRUE);
        function.addParameter(subMenuOptions);
        function.appendScript(buffer);
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.