void releaseChildren (boolean destroy) { if (items != null) { for (int i=0; i<items.length; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); }
@Override void releaseChildren (boolean destroy) { if (items != null) { for (int i=0; i<items.length; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); }
@Override void releaseChildren (boolean destroy) { if (items != null) { for (int i=0; i<items.length; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); }
@Override void releaseChildren (boolean destroy) { if (items != null) { for (int i=0; i<items.length; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); }
@Override void releaseChildren (boolean destroy) { if (items != null) { int count = (int)/*64*/OS.SendMessage (handle, OS.TCM_GETITEMCOUNT, 0, 0); for (int i=0; i<count; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); }
/** * Searches the receiver's list starting at the first item * (index 0) until an item is found that is equal to the * argument, and returns the index of that item. If no item * is found, returns -1. * * @param item the search item * @return the index of the item * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the string is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public int indexOf( TabItem item ) { checkWidget(); if( item == null ) { SWT.error( SWT.ERROR_NULL_ARGUMENT ); } if( item.isDisposed() ) { SWT.error( SWT.ERROR_INVALID_ARGUMENT ); } return itemHolder.indexOf( item ); }