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.
        listener - The listener to add.
      • removeActionListener

        void removeActionListener​(IActionListener listener)
        Removes action listener from the item.
        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.
        The control associated with widget.
      • setImage

        void setImage​( image)
        Sets the image decorator for the item.
        image - Image to set.
      • setToolTipText

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

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