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, Label, ListBox, ProgressBar, PropertyComponent, Slider, TextEditor, and TreeView.

List of all members.

Public Member Functions

virtual ~SettableTooltipClient ()
 Destructor.
virtual void setTooltip (const String &newTooltip)
virtual const String getTooltip ()
 Returns the string that this object wants to show as its tooltip.

Protected Attributes

String tooltipString

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.


Member Function Documentation

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

Reimplemented in Button, ComboBox, and FilenameComponent.

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

Returns the string that this object wants to show as its tooltip.

Implements TooltipClient.

Reimplemented in Button, and ComboBox.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Apr 26 11:42:17 2010 for JUCE by  doxygen 1.6.3