Class PopupButton

    • Constructor Detail

      • PopupButton

        public PopupButton()
        Constructs a new PopupButton.
      • PopupButton

        public PopupButton​(Component content)
        Constructs a new PopupButton with the given content.
        Parameters:
        content - Content of the pop-up
    • Method Detail

      • getCellReference

        public org.apache.poi.ss.util.CellReference getCellReference()
        Gets the cell reference for the cell that contains this pop-up button.
        Returns:
        Target cell reference
      • getColumn

        public int getColumn()
        Gets the column for this pop-up button.
        Returns:
        Column index, 0-based
      • getRow

        public int getRow()
        Gets the row for this pop-up button.
        Returns:
        Row index, 0-based
      • openPopup

        public void openPopup()
        Opens the pop-up if the button is currently rendered in the visible area of the Spreadsheet.
      • closePopup

        public void closePopup()
        Closes the pop-up if it is open.
      • isHeaderHidden

        public boolean isHeaderHidden()
        Tells if the pop-up header is currently hidden.
        Returns:
        true if header is hidden, false otherwise
      • setHeaderHidden

        public void setHeaderHidden​(boolean headerHidden)
        Sets the pop-up header visible or hidden.
        Parameters:
        headerHidden - true for hidden, false for visible.
      • setPopupWidth

        public void setPopupWidth​(String width)
        Set the width for this pop-up button's pop-up. Can be null or empty for undefined width.
        Parameters:
        width - New width for the pop-up
      • getPopupWidth

        public String getPopupWidth()
        Gets the width for this pop-up button's pop-up. Can be null or empty.
        Returns:
        Width of the pop-up
      • setPopupHeight

        public void setPopupHeight​(String height)
        Set the height for this pop-up button's pop-up. Can be null or empty for undefined height.
        Parameters:
        height - New height for the pop-up
      • getPopupHeight

        public String getPopupHeight()
        Gets the height for this pop-up button's pop-up. Can be null or empty.
        Returns:
        Height of the pop-up
      • setContent

        public void setContent​(Component content)
        Set the contents of the popup.
      • getContent

        public Component getContent()
        Get the contents of the popup.
      • markActive

        public void markActive​(boolean active)
        Mark the button with "active" - style. See PopupButtonWidget for the CSS class name.
        Parameters:
        active - true to add "active" style, false to remove it
      • isActive

        public boolean isActive()