Package org.gwtoolbox.commons.ui.client.event

Examples of org.gwtoolbox.commons.ui.client.event.CompoundHandlerRegistration


            initWidget(main);
            setStylePrimaryName("TitleBar");
        }

        public HandlerRegistration addCommonMouseHandler(CommonMouseHandler handler) {
            CompoundHandlerRegistration registration = new CompoundHandlerRegistration();
            registration.addRegistration(titleLabel.addMouseMoveHandler(handler));
            registration.addRegistration(titleLabel.addMouseOutHandler(handler));
            registration.addRegistration(titleLabel.addMouseOverHandler(handler));
            registration.addRegistration(titleLabel.addMouseDownHandler(handler));
            registration.addRegistration(titleLabel.addMouseUpHandler(handler));
            return registration;
        }
View Full Code Here


    @Override
    protected void onLoad() {
        super.onLoad();

        internalHandlerRegistration = new CompoundHandlerRegistration();

        internalHandlerRegistration.addRegistration(addDomHandler(new MouseDownHandler() {
            public void onMouseDown(MouseDownEvent event) {
                Element target = event.getNativeEvent().getEventTarget().cast();
                if (DOM.isOrHasChild(leftSplitElement, target)) {
View Full Code Here

    public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
        return addDomHandler(handler, MouseMoveEvent.getType());
    }

    public HandlerRegistration addCommonMouseHandler(CommonMouseHandler handler) {
        CompoundHandlerRegistration registration = new CompoundHandlerRegistration();
        registration.addRegistration(addMouseDownHandler(handler));
        registration.addRegistration(addMouseUpHandler(handler));
        registration.addRegistration(addMouseOverHandler(handler));
        registration.addRegistration(addMouseOutHandler(handler));
        registration.addRegistration(addMouseMoveHandler(handler));
        return registration;
    }
View Full Code Here

        registration.addRegistration(addMouseMoveHandler(handler));
        return registration;
    }

    public HandlerRegistration addMouseHoverHandler(MouseHoverHandler handler) {
        CompoundHandlerRegistration registration = new CompoundHandlerRegistration();
        registration.addRegistration(addMouseOverHandler(handler));
        registration.addRegistration(addMouseOutHandler(handler));
        return registration;
    }
View Full Code Here

    @Override
    protected void onLoad() {
        super.onLoad();

        internalHandlerRegistration = new CompoundHandlerRegistration();

        internalHandlerRegistration.addRegistration(addDomHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                Element target = event.getNativeEvent().getEventTarget().cast();
                MenuItemBase item = findItem(target);
View Full Code Here

    //================================================ Helper Methods ==================================================

    @Override
    protected void onLoad() {
        super.onLoad();
        internalHandlerRegistrations = new CompoundHandlerRegistration();

        internalHandlerRegistrations.addRegistration(addDomHandler(new MouseDownHandler() {
            public void onMouseDown(MouseDownEvent event) {
                if (event.getNativeButton() == NativeEvent.BUTTON_LEFT) {
                    DOM.setCapture(getElement());
View Full Code Here

    protected void onLoad() {
        super.onLoad();

        DragHandler handler = new DragHandler();

        dragHandlerRegistration = new CompoundHandlerRegistration();
        dragHandlerRegistration.addRegistration(addDomHandler(handler, MouseDownEvent.getType()));
        dragHandlerRegistration.addRegistration(addDomHandler(handler, MouseUpEvent.getType()));
        dragHandlerRegistration.addRegistration(addDomHandler(handler, MouseMoveEvent.getType()));
    }
View Full Code Here

            initWidget(main);
            setStylePrimaryName("TitleBar");
        }

        public HandlerRegistration addCommonMouseHandler(CommonMouseHandler handler) {
            CompoundHandlerRegistration registration = new CompoundHandlerRegistration();
            registration.addRegistration(titleLabel.addMouseMoveHandler(handler));
            registration.addRegistration(titleLabel.addMouseOutHandler(handler));
            registration.addRegistration(titleLabel.addMouseOverHandler(handler));
            registration.addRegistration(titleLabel.addMouseDownHandler(handler));
            registration.addRegistration(titleLabel.addMouseUpHandler(handler));
            return registration;
        }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onLoad() {
        internalHandlerRegistration = new CompoundHandlerRegistration();

        // Change to the "hover" face when mouse hovers over the button
        internalHandlerRegistration.addRegistration(addMouseOverHandler(new MouseOverHandler() {
            public void onMouseOver(MouseOverEvent event) {
                Button.this.addStyleDependentName(FACE_HOVER_CSS_CLASS);
View Full Code Here

    @Override
    protected void onLoad() {
        super.onLoad();

        internalHandlerRegistration = new CompoundHandlerRegistration();

        internalHandlerRegistration.addRegistration(addDomHandler(new MouseDownHandler() {
            public void onMouseDown(MouseDownEvent event) {
                Element target = event.getNativeEvent().getEventTarget().cast();
                if (DOM.isOrHasChild(splitElem, target)) {
View Full Code Here

TOP

Related Classes of org.gwtoolbox.commons.ui.client.event.CompoundHandlerRegistration

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.