Interface IActionBarItem

  • All Known Implementing Classes:
    ActionBarSingleButtonItem, ActionBarSpinnerItem

    public interface IActionBarItem
    Action bar item is being contained in the actiob bar and processes actions/activities from the user via associated listeners.
    Action bar item should contain control the user performs item activities through
    Action bar supplies image and tool tip text for using by the item implementations.
    • Method Detail

      • addActionListener

        void addActionListener​(IActionListener listener)
        Adds action listener to the item.
        Parameters:
        listener - The listener to add.
      • removeActionListener

        void removeActionListener​(IActionListener listener)
        Removes action listener from the item.
        Parameters:
        listener - The listener to remove.
      • getControl

        org.eclipse.swt.widgets.Control getControl()
        Gets the control associated with the item to perform actiob bar processing (like layouts) on it.
        Returns:
        The control associated with widget.
      • setImage

        void setImage​(org.eclipse.swt.graphics.Image image)
        Sets the image decorator for the item.
        Parameters:
        image - Image to set.
      • setToolTipText

        void setToolTipText​(String toolTip)
        Sets the tooltip text for the itme.
        Parameters:
        toolTip - Text to set.
      • getId

        String getId()
        Gets the indetifier of the action bar item.
        Returns:
        The identifier of the button.