com.intellij.ide.util.treeView.smartTree
Class ActionPresentationData

java.lang.Object
  extended by com.intellij.ide.util.treeView.smartTree.ActionPresentationData
All Implemented Interfaces:
ActionPresentation

public class ActionPresentationData
extends java.lang.Object
implements ActionPresentation

The default implementation of the ActionPresentation interface, specifying the presentation information for a grouping, sorting or filtering action displayed in a generic tree.


Constructor Summary
ActionPresentationData(java.lang.String text, java.lang.String description, javax.swing.Icon icon)
          Creates an action presentation with the specified text, description and icon.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the action, displayed in the status bar when the mouse is over the toolbar button.
 javax.swing.Icon getIcon()
          Returns the icon for the action, displayed on the toolbar button.
 java.lang.String getText()
          Returns the name of the action, displayed in the tooltip for the toolbar button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionPresentationData

public ActionPresentationData(java.lang.String text,
                              java.lang.String description,
                              javax.swing.Icon icon)
Creates an action presentation with the specified text, description and icon.

Parameters:
text - the name of the action, displayed in the tooltip for the toolbar button.
description - the description of the action, displayed in the status bar when the mouse is over the toolbar button.
icon - the icon for the action, displayed on the toolbar button.
Method Detail

getText

public java.lang.String getText()
Description copied from interface: ActionPresentation
Returns the name of the action, displayed in the tooltip for the toolbar button.

Specified by:
getText in interface ActionPresentation
Returns:
the action name.

getDescription

public java.lang.String getDescription()
Description copied from interface: ActionPresentation
Returns the description of the action, displayed in the status bar when the mouse is over the toolbar button.

Specified by:
getDescription in interface ActionPresentation
Returns:
the action description.

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: ActionPresentation
Returns the icon for the action, displayed on the toolbar button.

Specified by:
getIcon in interface ActionPresentation
Returns:
the action icon.