Package com.vaadin.terminal.gwt.client

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


                        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

                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

        @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

     * 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

                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

            }

            String description = uidl.getStringAttribute("descr");
            if (description != null && client != null) {
                // Set tooltip
                TooltipInfo info = new TooltipInfo(description);
                client.registerTooltip(VTree.this, key, info);
            } else {
                // Remove possible previous tooltip
                client.registerTooltip(VTree.this, key, null);
            }
View Full Code Here

                    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

                        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

                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

Related Classes of com.vaadin.terminal.gwt.client.TooltipInfo

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.