Public Member Functions | Protected Member Functions

SettableTooltipClient Class Reference

An implementation of TooltipClient that stores the tooltip string and a method for changing it. More...

Inherits TooltipClient.

Inherited by Button, ComboBox, FilenameComponent, FileSearchPathListComponent, ImageComponent, Label, ListBox, ProgressBar, PropertyComponent, Slider, TextEditor, and TreeView.

List of all members.

Public Member Functions

virtual ~SettableTooltipClient ()
 Destructor.
virtual void setTooltip (const String &newTooltip)
 Assigns a new tooltip to this object.
virtual const String getTooltip ()
 Returns the tooltip assigned to this object.

Protected Member Functions

 SettableTooltipClient ()

Detailed Description

An implementation of TooltipClient that stores the tooltip string and a method for changing it.

This makes it easy to add a tooltip to a custom component, by simply adding this as a base class and calling setTooltip().

Many of the Juce widgets already use this as a base class to implement their tooltips.

See also:
TooltipClient, TooltipWindow

Constructor & Destructor Documentation

virtual SettableTooltipClient::~SettableTooltipClient (  ) [virtual]

Destructor.

SettableTooltipClient::SettableTooltipClient (  ) [protected]

Member Function Documentation

virtual void SettableTooltipClient::setTooltip ( const String newTooltip ) [virtual]

Assigns a new tooltip to this object.

Reimplemented in Button, ComboBox, and FilenameComponent.

virtual const String SettableTooltipClient::getTooltip (  ) [virtual]

Returns the tooltip assigned to this object.

Implements TooltipClient.

Reimplemented in Button, and ComboBox.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines