void expandItem (TableTreeItem item) { if (item == null) return; expandItem(item.parentItem); if (!item.getVisible()) item.setVisible(true); if ( !item.expanded && item.items.length > 0) { item.setExpanded(true); Event event = new Event(); event.item = item; notifyListeners(SWT.Expand, event); } } @Override
void expandItem (TableTreeItem item) { if (item == null) return; expandItem(item.parentItem); if (!item.getVisible()) item.setVisible(true); if ( !item.expanded && item.items.length > 0) { item.setExpanded(true); Event event = new Event(); event.item = item; notifyListeners(SWT.Expand, event); } } @Override
void expandItem (TableTreeItem item) { if (item == null) return; expandItem(item.parentItem); if (!item.getVisible()) item.setVisible(true); if ( !item.expanded && item.items.length > 0) { item.setExpanded(true); Event event = new Event(); event.item = item; notifyListeners(SWT.Expand, event); } } @Override
void expandItem (TableTreeItem item) { if (item == null) return; expandItem(item.parentItem); if (!item.getVisible()) item.setVisible(true); if ( !item.expanded && item.items.length > 0) { item.setExpanded(true); Event event = new Event(); event.item = item; notifyListeners(SWT.Expand, event); } } public Color getBackground () {
void expandItem (TableTreeItem item) { if (item == null) return; expandItem(item.parentItem); if (!item.getVisible()) item.setVisible(true); if ( !item.expanded && item.items.length > 0) { item.setExpanded(true); Event event = new Event(); event.item = item; notifyListeners(SWT.Expand, event); } } @Override
/** * Shows the item. If the item is already showing in the receiver, * this method simply returns. Otherwise, the items are scrolled * and expanded until the item is visible. * * @param item the item to be shown * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item has been disposed</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> * * @see TableTree#showSelection() */ public void showItem (TableTreeItem item) { checkWidget(); if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (!item.getVisible()) expandItem (item); TableItem tableItem = item.tableItem; table.showItem(tableItem); }
/** * Shows the item. If the item is already showing in the receiver, * this method simply returns. Otherwise, the items are scrolled * and expanded until the item is visible. * * @param item the item to be shown * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item has been disposed</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> * * @see TableTree#showSelection() */ public void showItem (TableTreeItem item) { checkWidget(); if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (!item.getVisible()) expandItem (item); TableItem tableItem = item.tableItem; table.showItem(tableItem); }
/** * Shows the item. If the item is already showing in the receiver, * this method simply returns. Otherwise, the items are scrolled * and expanded until the item is visible. * * @param item the item to be shown * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item has been disposed</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> * * @see TableTree#showSelection() */ public void showItem (TableTreeItem item) { checkWidget(); if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (!item.getVisible()) expandItem (item); TableItem tableItem = item.tableItem; table.showItem(tableItem); }
/** * Shows the item. If the item is already showing in the receiver, * this method simply returns. Otherwise, the items are scrolled * and expanded until the item is visible. * * @param item the item to be shown * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item has been disposed</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> * * @see TableTree#showSelection() */ public void showItem (TableTreeItem item) { checkWidget(); if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (!item.getVisible()) expandItem (item); TableItem tableItem = item.tableItem; table.showItem(tableItem); }
/** * Shows the item. If the item is already showing in the receiver, * this method simply returns. Otherwise, the items are scrolled * and expanded until the item is visible. * * @param item the item to be shown * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item has been disposed</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> * * @see TableTree#showSelection() */ public void showItem (TableTreeItem item) { checkWidget(); if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (!item.getVisible()) expandItem (item); TableItem tableItem = item.tableItem; table.showItem(tableItem); }
for (int i = 0; i < length; i++) { if (items[i] == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (!items[i].getVisible()) expandItem (items[i]); tableItems[i] = items[i].tableItem;
for (int i = 0; i < length; i++) { if (items[i] == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (!items[i].getVisible()) expandItem (items[i]); tableItems[i] = items[i].tableItem;
for (int i = 0; i < length; i++) { if (items[i] == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (!items[i].getVisible()) expandItem (items[i]); tableItems[i] = items[i].tableItem;
for (int i = 0; i < length; i++) { if (items[i] == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (!items[i].getVisible()) expandItem (items[i]); tableItems[i] = items[i].tableItem;
for (int i = 0; i < length; i++) { if (items[i] == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (!items[i].getVisible()) expandItem (items[i]); tableItems[i] = items[i].tableItem;