Examples of TooltipInfo


Examples of com.vaadin.client.TooltipInfo

            }

            public TooltipInfo getTooltip(
                    com.google.gwt.dom.client.Element target) {

                TooltipInfo info = null;
                final Element targetTdOrTr = getTdOrTr(target);
                if (targetTdOrTr != null
                        && "td".equals(targetTdOrTr.getTagName().toLowerCase())) {
                    TableCellElement td = (TableCellElement) targetTdOrTr
                            .cast();
View Full Code Here

Examples of com.vaadin.client.TooltipInfo

        getWidget().iLayout();
    }

    @Override
    public TooltipInfo getTooltipInfo(Element element) {
        TooltipInfo info = null;

        // Check content of widget to find tooltip for element
        if (element != getWidget().getElement()) {

            VMenuBar.CustomMenuItem item = getWidget().getMenuItemWithElement(
View Full Code Here

Examples of com.vaadin.client.TooltipInfo

        }
    }

    @Override
    public TooltipInfo getTooltipInfo(Element element) {
        return new TooltipInfo(getState().description, getState().errorMessage);
    }
View Full Code Here

Examples of com.vaadin.client.TooltipInfo

            AriaHelper.ensureHasId(getElement());
        }

        private boolean update(TabState tabState) {
            if (tabState.description != null || tabState.componentError != null) {
                setTooltipInfo(new TooltipInfo(tabState.description,
                        tabState.componentError, this));
            } else {
                setTooltipInfo(null);
            }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

                    addStyleName(CLASSNAME + "-row-" + rowStyle);
                }

                String rowDescription = uidl.getStringAttribute("rowdescr");
                if (rowDescription != null && !rowDescription.equals("")) {
                    TooltipInfo info = new TooltipInfo(rowDescription);
                    client.registerTooltip(VScrollTable.this, rowElement, info);
                } else {
                    // Remove possibly previously set tooltip
                    client.registerTooltip(VScrollTable.this, rowElement, null);
                }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

                        break;
                    }
                }

                if (description != null && !description.equals("")) {
                    TooltipInfo info = new TooltipInfo(description);
                    client.registerTooltip(VScrollTable.this, td, info);
                } else {
                    // Remove possibly previously set tooltip
                    client.registerTooltip(VScrollTable.this, td, null);
                }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

                addStyleDependentName(itemStyle);
            }

            if (uidl.hasAttribute("description")) {
                String description = uidl.getStringAttribute("description");
                TooltipInfo info = new TooltipInfo(description);

                VMenuBar root = findRootMenu();
                client.registerTooltip(root, this, info);
            }
        }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

        @Override
        public boolean updateCaption(UIDL uidl) {
            if (uidl.hasAttribute(ATTRIBUTE_DESCRIPTION)
                    || uidl.hasAttribute(ATTRIBUTE_ERROR)) {
                TooltipInfo tooltipInfo = new TooltipInfo();
                tooltipInfo.setTitle(uidl
                        .getStringAttribute(ATTRIBUTE_DESCRIPTION));
                if (uidl.hasAttribute(ATTRIBUTE_ERROR)) {
                    tooltipInfo.setErrorUidl(uidl.getErrors());
                }
                client.registerTooltip(VTabsheet.this, getElement(),
                        tooltipInfo);
            } else {
                client.registerTooltip(VTabsheet.this, getElement(), null);
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

     * This way, any event displaying widget can use the event index as a key to
     * display the tooltip.
     */
    private void registerEventToolTip(CalendarEvent e) {
        if (e.getDescription() != null && !"".equals(e.getDescription())) {
            TooltipInfo info = new TooltipInfo(e.getDescription());
            client.registerTooltip(this, e.getIndex(), info);

        } else {
            client.registerTooltip(this, e.getIndex(), null);
        }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.TooltipInfo

                addStyleDependentName(itemStyle);
            }

            if (uidl.hasAttribute("description")) {
                String description = uidl.getStringAttribute("description");
                TooltipInfo info = new TooltipInfo(description);

                VMenuBar root = findRootMenu();
                client.registerTooltip(root, this, info);
            }
        }
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.