File: SourceListToolTipProvider.java

package info (click to toggle)
mac-widgets 0.9.5%2Bsvn369-dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,920 kB
  • sloc: java: 8,318; makefile: 13; sh: 12
file content (25 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.explodingpixels.macwidgets;

/**
 * An interface that allows implementors to supply the tool tip for a {@link SourceListCategory} or
 * {@link SourceListItem}.
 */
public interface SourceListToolTipProvider {

    /**
     * Gets the tool tip to use for the given {@link SourceListCategory}.
     *
     * @param category the {@code SourceListCategory} to get the tooltip for.
     * @return the tool tip, or null if no tool tip should be shown.
     */
    String getTooltip(SourceListCategory category);

    /**
     * Gets the tool tip to use for the given {@link SourceListItem}.
     *
     * @param item the {@code SourceListItem} to get the tooltip for.
     * @return the tool tip, or null if no tool tip should be shown.
     */
    String getTooltip(SourceListItem item);

}