Class JRibbonTaskToggleButton

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, RichTooltipManager.WithRichTooltip

public class JRibbonTaskToggleButton extends JCommandButton
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

    • uiClassID

      public static final String uiClassID
      The UI class ID string.
      See Also:
    • contextualGroupHueColor

      private Color contextualGroupHueColor
      Color of the matching contextual task group. Can be null if the associated task is not contextual.
    • ribbonTask

      private RibbonTask ribbonTask
  • Constructor Details

  • Method Details

    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JCommandButton
    • getUIClassID

      public String getUIClassID()
      Overrides:
      getUIClassID in class JCommandButton
    • 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.
    • setRibbonTask

      public void setRibbonTask(RibbonTask ribbonTask)
    • 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.