-/*
-@ITMillApache2LicenseForJavaFiles@
+/*
+ * @ITMillApache2LicenseForJavaFiles@
*/
package com.vaadin.ui;
}
/**
- * Implement this interface and pass it to Tree.setCellStyleGenerator or Table.setCellStyleGenerator to
- * generate mouse over descriptions ("tooltips") for the rows and cells in Table or for the items in Tree.
+ * Implement this interface and pass it to Tree.setItemDescriptionGenerator
+ * or Table.setItemDescriptionGenerator to generate mouse over descriptions
+ * ("tooltips") for the rows and cells in Table or for the items in Tree.
*/
public interface ItemDescriptionGenerator extends Serializable {
-
- /**
- * Called by Table when a cell (and row) is painted or a item is painted in Tree
- * @param source
- * The source of the generator, the Tree or Table the generator is attached to
- * @param itemId
- * The itemId of the painted cell
- * @param propertyId
- * The propertyId of the cell, null when getting row description
- * @return
- * The description or "tooltip" of the item.
- */
- public String generateDescription(Component source, Object itemId, Object propertyId);
- }
+
+ /**
+ * Called by Table when a cell (and row) is painted or a item is painted
+ * in Tree
+ *
+ * @param source
+ * The source of the generator, the Tree or Table the
+ * generator is attached to
+ * @param itemId
+ * The itemId of the painted cell
+ * @param propertyId
+ * The propertyId of the cell, null when getting row
+ * description
+ * @return The description or "tooltip" of the item.
+ */
+ public String generateDescription(Component source, Object itemId,
+ Object propertyId);
+ }
}