Class ActionBarSingleButtonItem
- java.lang.Object
- 
- com._1c.g5.v8.dt.common.ui.controls.ActionBarSingleButtonItem
 
- 
- All Implemented Interfaces:
- IActionBarItem
 
 public class ActionBarSingleButtonItem extends Object implements IActionBarItem Native button-based implementation of an action bar item.
- 
- 
Constructor SummaryConstructors Constructor Description 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.
 - 
Method SummaryAll Methods Instance Methods Concrete 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.
 
- 
- 
- 
Constructor Detail- 
ActionBarSingleButtonItempublic 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.- Parameters:
- parent- Parent composite which holds this button.
- toolkit- Form toolkit reference.
- name- Name of the item.
- style- Inherited style.
 
 
- 
 - 
Method Detail- 
addActionListenerpublic void addActionListener(IActionListener listener) Adds action listener to the item.}- Specified by:
- addActionListenerin interface- IActionBarItem
- Parameters:
- listener- The listener to add.
 
 - 
removeActionListenerpublic void removeActionListener(IActionListener listener) Removes action listener from the item.}- Specified by:
- removeActionListenerin interface- IActionBarItem
- Parameters:
- listener- The listener to remove.
 
 - 
getControlpublic org.eclipse.swt.widgets.Control getControl() Gets the control associated with the item to perform actiob bar processing (like layouts) on it.}- Specified by:
- getControlin interface- IActionBarItem
- Returns:
- The control associated with widget.
 
 - 
getIdpublic String getId() Gets the indetifier of the action bar item.}- Specified by:
- getIdin interface- IActionBarItem
- Returns:
- The identifier of the button.
 
 - 
setImagepublic void setImage(org.eclipse.swt.graphics.Image image) Sets the image decorator for the item.}- Specified by:
- setImagein interface- IActionBarItem
- Parameters:
- image- Image to set.
 
 - 
setToolTipTextpublic void setToolTipText(String toolTip) Sets the tooltip text for the itme.}- Specified by:
- setToolTipTextin interface- IActionBarItem
- Parameters:
- toolTip- Text to set.
 
 
- 
 
-