File: SourceListToolTipProvider.java

package info (click to toggle)
mac-widgets 0.10.0%2Bsvn416-dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,968 kB
  • ctags: 2,003
  • sloc: java: 9,909; 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);

}