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

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


    private BasicLabel createLabel(String text, Image image) {
        final BasicLabel label = new BasicLabel(text);
        if (image != null) {
            label.setImage(image);
        }
        label.addMouseHoverHandler(new MouseHoverHandler() {
            @Override
            public void onMouseOver(MouseOverEvent event) {
                DOM.setStyleAttribute(label.getElement(), "border", "1px solid blue");
            }
View Full Code Here


    private BasicLabel createLabel(String text, Image image) {
        final BasicLabel label = new BasicLabel(text);
        if (image != null) {
            label.setImage(image);
        }
        label.addMouseHoverHandler(new MouseHoverHandler() {
            @Override
            public void onMouseOver(MouseOverEvent event) {
                DOM.setStyleAttribute(label.getElement(), "border", "1px solid blue");
            }
View Full Code Here

        }

        private ToolButton(Tool tool, ClickHandler clickHandler) {
            super(FocusImpl.getFocusImplForPanel().createFocusable());
            setStylePrimaryName(tool.getStyleName());
            MouseHoverHandler hoverHandler = new MouseHoverHandler() {
                @Override
                public void onMouseOver(MouseOverEvent event) {
                    addStyleDependentName("hover");
                }
View Full Code Here

            super(FocusImpl.getFocusImplForPanel().createFocusable());
            this.tool = tool;
            setStylePrimaryName(tool.getUpStyleName());
            DOM.setStyleAttribute(getElement(), "width", "15px");
            DOM.setStyleAttribute(getElement(), "height", "15px");
            MouseHoverHandler hoverHandler = new MouseHoverHandler() {
                @Override
                public void onMouseOver(MouseOverEvent event) {
                    addStyleDependentName("hover");
                }
View Full Code Here

        private ToolButton(Tool tool, ClickHandler clickHandler) {
            super(FocusImpl.getFocusImplForPanel().createFocusable());
            setStylePrimaryName(tool.getStyleName());
            addStyleName("transparent-75");
            MouseHoverHandler hoverHandler = new MouseHoverHandler() {
                @Override
                public void onMouseOver(MouseOverEvent event) {
                    removeStyleName("transparent-75");
                }
View Full Code Here

            setStylePrimaryName(tool.getUpStyleName());
            addStyleName("transparent-75");
            DOM.setStyleAttribute(getElement(), "width", "15px");
            DOM.setStyleAttribute(getElement(), "height", "15px");
            DOM.setStyleAttribute(getElement(), "cursor", "pointer");
            MouseHoverHandler hoverHandler = new MouseHoverHandler() {
                @Override
                public void onMouseOver(MouseOverEvent event) {
                    removeStyleName("transparent-75");
                }
View Full Code Here

TOP

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

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.