Interface IActionBarItem
- 
- All Known Implementing Classes:
- ActionBarSingleButtonItem,- ActionBarSpinnerItem
 
 public interface IActionBarItemAction 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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddActionListener(IActionListener listener)Adds action listener to the item.org.eclipse.swt.widgets.ControlgetControl()Gets the control associated with the item to perform actiob bar processing (like layouts) on it.StringgetId()Gets the indetifier of the action bar item.voidremoveActionListener(IActionListener listener)Removes action listener from the item.voidsetImage(org.eclipse.swt.graphics.Image image)Sets the image decorator for the item.voidsetToolTipText(String toolTip)Sets the tooltip text for the itme.
 
- 
- 
- 
Method Detail- 
addActionListenervoid addActionListener(IActionListener listener) Adds action listener to the item.- Parameters:
- listener- The listener to add.
 
 - 
removeActionListenervoid removeActionListener(IActionListener listener) Removes action listener from the item.- Parameters:
- listener- The listener to remove.
 
 - 
getControlorg.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.
 
 - 
setImagevoid setImage(org.eclipse.swt.graphics.Image image) Sets the image decorator for the item.- Parameters:
- image- Image to set.
 
 - 
setToolTipTextvoid setToolTipText(String toolTip) Sets the tooltip text for the itme.- Parameters:
- toolTip- Text to set.
 
 - 
getIdString getId() Gets the indetifier of the action bar item.- Returns:
- The identifier of the button.
 
 
- 
 
-