Class ActionBarSingleButtonItem

  • All Implemented Interfaces:

    public class ActionBarSingleButtonItem
    extends Object
    implements IActionBarItem
    Native button-based implementation of an action bar item.
    • Constructor Detail

      • ActionBarSingleButtonItem

        public ActionBarSingleButtonItem​(org.eclipse.swt.widgets.Composite parent,
                                         org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                         String name,
                                         int style)
        Creates an instance of the action bar item.
        parent - Parent composite which holds this button.
        toolkit - Form toolkit reference.
        name - Name of the item.
        style - Inherited style.
    • Method Detail

      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Gets the control associated with the item to perform actiob bar processing (like layouts) on it.}
        Specified by:
        getControl in interface IActionBarItem
        The control associated with widget.
      • getId

        public String getId()
        Gets the indetifier of the action bar item.}
        Specified by:
        getId in interface IActionBarItem
        The identifier of the button.
      • setImage

        public void setImage​( image)
        Sets the image decorator for the item.}
        Specified by:
        setImage in interface IActionBarItem
        image - Image to set.
      • setToolTipText

        public void setToolTipText​(String toolTip)
        Sets the tooltip text for the itme.}
        Specified by:
        setToolTipText in interface IActionBarItem
        toolTip - Text to set.