public Object tooltip(Coord c, Widget prev) { long now = System.currentTimeMillis(); if (prev == this) { } else if (prev instanceof WItem) { long ps = ((WItem) prev).hoverstart; if (now - ps < 1000) hoverstart = now; else hoverstart = ps; } else { hoverstart = now; } try { List<ItemInfo> info = item.info(); if (info.size() < 1) return (null); if (info != ttinfo) { shorttip = longtip = null; ttinfo = info; } if (now - hoverstart < 1000) { if (shorttip == null) shorttip = new ShortTip(info); return (shorttip); } else { if (longtip == null) longtip = new LongTip(info); return (longtip); } } catch (Loading e) { return ("..."); } }