focusIndex = -1;
public ExpandBar (Composite parent, int style) {	super (parent, checkStyle (style));	items = new ExpandItem [4];		focusIndex = -1;		listener = new Listener () {		public void handleEvent (Event event) {			switch (event.type) {				case SWT.Dispose:		onDispose (event);        	break;				case SWT.MouseDown:		onMouseDown (event);   		break;				case SWT.MouseUp:		onMouseUp (event);   		break;				case SWT.Paint:			onPaint (event);     		break;				case SWT.Resize:		onResize ();     			break;				case SWT.KeyDown:		onKeyDown (event);    		break;				case SWT.FocusIn:		onFocus ();     			break;				case SWT.FocusOut:		onFocus ();     			break;				case SWT.Traverse:		onTraverse (event);   		break;			}		}	};	addListener (SWT.Dispose, listener);	addListener (SWT.MouseDown, listener);	addListener (SWT.MouseUp, listener);	addListener (SWT.Paint, listener);	addListener (SWT.Resize, listener);	addListener (SWT.KeyDown, listener);	addListener (SWT.FocusIn, listener);	addListener (SWT.FocusOut, listener);	addListener (SWT.Traverse, listener);		ScrollBar verticalBar = getVerticalBar ();	if (verticalBar != null) {		verticalBar.addListener (SWT.Selection, new Listener () {			public void handleEvent (Event event) {				onScroll (event);			}		});	}}