Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.HeaderControl


        //        if (!showFrame) {
        //            setShowHeader(false);
        //            setShowEdges(false);

        //configure HeaderControls with toolTips
        HeaderControl RssHeader = new HeaderControl(new HeaderIcon("[SKIN]/headerIcons/clipboard.png"), rssHandler);
        RssHeader.setTooltip(RSS);

        //detect customized Header icon
        headerIcon = null;
        String portletKey = storedPortlet.getPortletKey();
        final String iconUrl = PortletFactory.getRegisteredPortletIcon(portletKey);
        if ((iconUrl != null) && (!iconUrl.trim().isEmpty())) {
            HeaderIcon icon = new HeaderIcon(iconUrl);
            headerIcon = new HeaderControl(icon);
            headerIcon.addMouseOverHandler(new MouseOverHandler() {
                @Override
                public void onMouseOver(MouseOverEvent event) {
                    headerIcon.setIcon(iconUrl);
                }
View Full Code Here


        if (headerIcon != null) {
            headerControls.add(headerIcon);
        }
        headerControls.add(HeaderControls.HEADER_LABEL);
        headerControls.add(new HeaderControl(HeaderControl.REFRESH, refreshHandler));
        headerControls.add(new HeaderControl(HeaderControl.SETTINGS, settingsHandler));
        headerControls.add(new HeaderControl(HeaderControl.HELP, helpHandler));
        headerControls.add(HeaderControls.CLOSE_BUTTON);

        setHeaderControls(headerControls.toArray(new Object[headerControls.size()]));
    }
View Full Code Here

                String src = ((HeaderControl) event.getSource()).getSrc();
                SC.say("Control " + src + " clicked");
            }
        };

        HeaderControl arrowDown = new HeaderControl(HeaderControl.ARROW_DOWN, clickHandler);
        HeaderControl arrowLeft = new HeaderControl(HeaderControl.ARROW_LEFT, clickHandler);
        HeaderControl arrowRight = new HeaderControl(HeaderControl.ARROW_RIGHT, clickHandler);
        HeaderControl arrowUp = new HeaderControl(HeaderControl.ARROW_UP, clickHandler);
        HeaderControl calculator = new HeaderControl(HeaderControl.CALCULATOR, clickHandler);
        HeaderControl cart = new HeaderControl(HeaderControl.CART, clickHandler);
        HeaderControl cascade = new HeaderControl(HeaderControl.CASCADE, clickHandler);
        HeaderControl clipboard = new HeaderControl(HeaderControl.CLIPBOARD, clickHandler);
        HeaderControl clock = new HeaderControl(HeaderControl.CLOCK, clickHandler);
        HeaderControl close = new HeaderControl(HeaderControl.CLOSE, clickHandler);
        HeaderControl comment = new HeaderControl(HeaderControl.COMMENT, clickHandler);
        HeaderControl document = new HeaderControl(HeaderControl.DOCUMENT, clickHandler);
        HeaderControl doubleArrowDown = new HeaderControl(HeaderControl.DOUBLE_ARROW_DOWN, clickHandler);
        HeaderControl doubleArrowLeft = new HeaderControl(HeaderControl.DOUBLE_ARROW_LEFT, clickHandler);
        HeaderControl doubleArrowRight = new HeaderControl(HeaderControl.DOUBLE_ARROW_RIGHT, clickHandler);
        HeaderControl doubleArrowUp = new HeaderControl(HeaderControl.DOUBLE_ARROW_UP, clickHandler);
        HeaderControl favourite = new HeaderControl(HeaderControl.FAVOURITE, clickHandler);
        HeaderControl find = new HeaderControl(HeaderControl.FIND, clickHandler);
        HeaderControl help = new HeaderControl(HeaderControl.HELP, clickHandler);
        HeaderControl home = new HeaderControl(HeaderControl.HOME, clickHandler);
        HeaderControl mail = new HeaderControl(HeaderControl.MAIL, clickHandler);
        HeaderControl maximize = new HeaderControl(HeaderControl.MAXIMIZE, clickHandler);
        HeaderControl minimize = new HeaderControl(HeaderControl.MINIMIZE, clickHandler);
        HeaderControl minus = new HeaderControl(HeaderControl.MINUS, clickHandler);
        HeaderControl person = new HeaderControl(HeaderControl.PERSON, clickHandler);
        HeaderControl pinDown = new HeaderControl(HeaderControl.PIN_DOWN, clickHandler);
        HeaderControl pinLeft = new HeaderControl(HeaderControl.PIN_LEFT, clickHandler);
        HeaderControl plus = new HeaderControl(HeaderControl.PLUS, clickHandler);
        HeaderControl print = new HeaderControl(HeaderControl.PRINT, clickHandler);
        HeaderControl refresh = new HeaderControl(HeaderControl.REFRESH, clickHandler);
        HeaderControl refreshThin = new HeaderControl(HeaderControl.REFRESH_THIN, clickHandler);
        HeaderControl save = new HeaderControl(HeaderControl.SAVE, clickHandler);
        HeaderControl settings = new HeaderControl(HeaderControl.SETTINGS, clickHandler);
        HeaderControl transfer = new HeaderControl(HeaderControl.TRANSFER, clickHandler);
        HeaderControl trash = new HeaderControl(HeaderControl.TRASH, clickHandler);
        HeaderControl zoom = new HeaderControl(HeaderControl.ZOOM, clickHandler);


        Window window1 = new Window();
        window1.setTitle("Title");
        window1.setWidth(200);
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.HeaderControl

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.