Class DetailsButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class DetailsButton extends JButton
Since:
3.1.0
Author:
Joel Uckelman
See Also:
  • Field Details

    • collapsedIcon

      protected static final Icon collapsedIcon
    • expandedIcon

      protected static final Icon expandedIcon
    • showText

      protected String showText
    • hideText

      protected String hideText
    • expander

      protected Component expander
    • buddy

      protected Component buddy
    • eh

      protected static int eh
  • Constructor Details

  • Method Details

    • setExpander

      public void setExpander(Component comp)
    • setButtonShowText

      public void setButtonShowText(String text)
    • setButtonHideText

      public void setButtonHideText(String text)
    • setBuddy

      public void setBuddy(Component comp)
      Sets the buddy component for the expanding component. The width of the expanding component is adjusted to match the width of the buddy component when the expanding component is invisible.
      Parameters:
      comp - the buddy component
    • setExpanded

      public void setExpanded(boolean expanded)
    • fixSize

      protected void fixSize(Container c)
    • main

      public static void main(String[] args)