diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java deleted file mode 100644 index cbc470421a..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.swt.internal.cocoa; - -public class NSOutlineView extends NSTableView { - -public NSOutlineView() { - super(); -} - -public NSOutlineView(int /*long*/ id) { - super(id); -} - -public NSOutlineView(id id) { - super(id); -} - -public void collapseItem(id item) { - OS.objc_msgSend(this.id, OS.sel_collapseItem_, item != null ? item.id : 0); -} - -public void collapseItem(id item, boolean collapseChildren) { - OS.objc_msgSend(this.id, OS.sel_collapseItem_collapseChildren_, item != null ? item.id : 0, collapseChildren); -} - -public void expandItem(id item) { - OS.objc_msgSend(this.id, OS.sel_expandItem_, item != null ? item.id : 0); -} - -public void expandItem(id item, boolean expandChildren) { - OS.objc_msgSend(this.id, OS.sel_expandItem_expandChildren_, item != null ? item.id : 0, expandChildren); -} - -public NSRect frameOfOutlineCellAtRow(int /*long*/ row) { - NSRect result = new NSRect(); - OS.objc_msgSend_stret(result, this.id, OS.sel_frameOfOutlineCellAtRow_, row); - return result; -} - -public float /*double*/ indentationPerLevel() { - return (float)OS.objc_msgSend_fpret(this.id, OS.sel_indentationPerLevel); -} - -public boolean isItemExpanded(id item) { - return OS.objc_msgSend_bool(this.id, OS.sel_isItemExpanded_, item != null ? item.id : 0); -} - -public id itemAtRow(int /*long*/ row) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_itemAtRow_, row); - return result != 0 ? new id(result) : null; -} - -public int /*long*/ levelForItem(id item) { - return OS.objc_msgSend(this.id, OS.sel_levelForItem_, item != null ? item.id : 0); -} - -public NSTableColumn outlineTableColumn() { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_outlineTableColumn); - return result != 0 ? new NSTableColumn(result) : null; -} - -public void reloadItem(id item, boolean reloadChildren) { - OS.objc_msgSend(this.id, OS.sel_reloadItem_reloadChildren_, item != null ? item.id : 0, reloadChildren); -} - -public int /*long*/ rowForItem(id item) { - return OS.objc_msgSend(this.id, OS.sel_rowForItem_, item != null ? item.id : 0); -} - -public void setAutoresizesOutlineColumn(boolean resize) { - OS.objc_msgSend(this.id, OS.sel_setAutoresizesOutlineColumn_, resize); -} - -public void setAutosaveExpandedItems(boolean save) { - OS.objc_msgSend(this.id, OS.sel_setAutosaveExpandedItems_, save); -} - -public void setDropItem(id item, int /*long*/ index) { - OS.objc_msgSend(this.id, OS.sel_setDropItem_dropChildIndex_, item != null ? item.id : 0, index); -} - -public void setOutlineTableColumn(NSTableColumn outlineTableColumn) { - OS.objc_msgSend(this.id, OS.sel_setOutlineTableColumn_, outlineTableColumn != null ? outlineTableColumn.id : 0); -} - -public static int /*long*/ cellClass() { - return OS.objc_msgSend(OS.class_NSOutlineView, OS.sel_cellClass); -} - -public static void setCellClass(int /*long*/ factoryId) { - OS.objc_msgSend(OS.class_NSOutlineView, OS.sel_setCellClass_, factoryId); -} - -} |