Class JRibbonTaskToggleButton

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class JRibbonTaskToggleButton extends JCommandToggleButton
Toggle button for ribbon tasks. This class is for internal use only and should not be directly used by the applications.
See Also:
  • Field Details

  • Constructor Details

    • JRibbonTaskToggleButton

      public JRibbonTaskToggleButton(RibbonTask ribbonTask)
      Creates a new toggle button.
      Parameters:
      ribbonTask -
  • Method Details

    • updateUI

      public void updateUI()
      Description copied from class: JCommandToggleButton
      Resets the UI property to a value from the current look and feel.
      Overrides:
      updateUI in class JCommandToggleButton
      See Also:
    • getUIClassID

      public String getUIClassID()
      Overrides:
      getUIClassID in class JCommandToggleButton
    • getContextualGroupHueColor

      public Color getContextualGroupHueColor()
      Returns the hue color of the matching contextual task group if the associated task is contextual.
      Returns:
      The hue color of the matching contextual task group if the associated task is contextual, null otherwise.
    • getRibbonTask

      public RibbonTask getRibbonTask()
    • setContextualGroupHueColor

      public void setContextualGroupHueColor(Color contextualGroupHueColor)
      Sets the hue color of the matching contextual task group on this button.
      Parameters:
      contextualGroupHueColor - The hue color of the matching contextual task group.
    • setKeyTip

      public void setKeyTip(String keyTip)
    • getKeyTip

      public String getKeyTip()