FileDocCategorySizeDatePackage
BufferedToolItem.javaAPI DocAzureus 3.0.3.42003Tue Apr 04 19:58:00 BST 2006org.gudy.azureus2.ui.swt.components

BufferedToolItem

public class BufferedToolItem extends BufferedWidget
author
parg

Fields Summary
protected org.eclipse.swt.widgets.ToolItem
item
Constructors Summary
public BufferedToolItem(org.eclipse.swt.widgets.ToolBar tool_bar, int attributes)

		super( new ToolItem( tool_bar, attributes ));
		
		item = (ToolItem)getWidget();
	
Methods Summary
public voidaddListener(int type, org.eclipse.swt.widgets.Listener l)

		item.addListener( type, l );
	
public java.lang.ObjectgetData(java.lang.String key)

		return( item.getData(key));
	
public voidsetData(java.lang.String key, java.lang.Object d)

		item.setData(key,d);
	
public voidsetEnabled(boolean b)

		if ( item.isDisposed() || item.getEnabled() == b ){
			
			return;
		}
		
		item.setEnabled( b );
	
public voidsetImage(org.eclipse.swt.graphics.Image i)

		if (i != null)
			i.setBackground(item.getParent().getBackground());
		item.setImage(i);
	
public voidsetSelection(boolean b)

		if ( item.isDisposed() || item.getSelection() == b ){
			
			return;
		}
		
		item.setSelection( b );