org.rococoa.cocoa.appkit
Class NSCollectionView

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSResponder
          extended by org.rococoa.cocoa.appkit.NSView
              extended by org.rococoa.cocoa.appkit.NSCollectionView
All Implemented Interfaces:
NSCoding, NSObject, ObjCObject

public abstract class NSCollectionView
extends NSView

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSCollectionView._class_
           
static class NSCollectionView._cvFlags_struct
          native declaration : NSCollectionView.h:138
Conversion Error : /**
* This method computes and returns an image to use for dragging.
 
Nested classes/interfaces inherited from class org.rococoa.cocoa.appkit.NSView
NSView.__VFlags2
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSCollectionView()
           
 
Method Summary
static NSCollectionView alloc()
           
abstract  boolean allowsMultipleSelection()
          Original signature : -(BOOL)allowsMultipleSelection
native declaration : NSCollectionView.h:101
abstract  NSArray backgroundColors()
          Original signature : -(NSArray*)backgroundColors
native declaration : NSCollectionView.h:120
abstract  NSArray content()
          Original signature : -(NSArray*)content
native declaration : NSCollectionView.h:97
abstract  NSCollectionViewDelegate delegate()
          Original signature : -(id)delegate
native declaration : NSCollectionView.h:92
abstract  NSObject frameForItemAtIndex(NSUInteger index)
          Returns the frame calculated by the receiver where it intends to place the subview for the NSCollectionViewItem at the given index.
static NSCollectionView._class_ getNSClass()
           
abstract  boolean isFirstResponder()
          fully KVO compliant - can be used determine different selection colors, etc.
abstract  boolean isSelectable()
          Original signature : -(BOOL)isSelectable
native declaration : NSCollectionView.h:99
abstract  NSCollectionViewItem itemAtIndex(NSUInteger index)
          Returns the NSCollectionViewItem instance associated with the represented object at the given index.
abstract  NSCollectionViewItem itemPrototype()
          Original signature : -(NSCollectionViewItem*)itemPrototype
native declaration : NSCollectionView.h:108
abstract  NSSize.ByValue maxItemSize()
          Original signature : -(NSSize)maxItemSize
native declaration : NSCollectionView.h:117
abstract  NSUInteger maxNumberOfColumns()
          Original signature : -(NSUInteger)maxNumberOfColumns
native declaration : NSCollectionView.h:113
abstract  NSUInteger maxNumberOfRows()
          Original signature : -(NSUInteger)maxNumberOfRows
native declaration : NSCollectionView.h:111
abstract  NSSize.ByValue minItemSize()
          Original signature : -(NSSize)minItemSize
native declaration : NSCollectionView.h:115
static NSCollectionView new_()
           
abstract  NSCollectionViewItem newItemForRepresentedObject(ObjCObject object)
          override if item should not be generated from prototype (or if view needs to be customized) - the returned object should not be autoreleased
Original signature : -(NSCollectionViewItem*)newItemForRepresentedObject:(id)
native declaration : NSCollectionView.h:105
abstract  NSIndexSet selectionIndexes()
          Original signature : -(NSIndexSet*)selectionIndexes
native declaration : NSCollectionView.h:103
abstract  void setAllowsMultipleSelection(boolean flag)
          default: YES
Original signature : -(void)setAllowsMultipleSelection:(BOOL)
native declaration : NSCollectionView.h:100
abstract  void setBackgroundColors(NSArray colors)
          passing nil or an empty array resets the background colors back to the default
Original signature : -(void)setBackgroundColors:(NSArray*)
native declaration : NSCollectionView.h:119
abstract  void setContent(NSArray content)
          Original signature : -(void)setContent:(NSArray*)
native declaration : NSCollectionView.h:96
abstract  void setDelegate(NSCollectionViewDelegate aDelegate)
          Original signature : -(void)setDelegate:(id)
native declaration : NSCollectionView.h:91
abstract  void setDraggingSourceOperationMask_forLocal(NSUInteger dragOperationMask, boolean localDestination)
          Configures the value returned from -draggingSourceOperationMaskForLocal:.
abstract  void setItemPrototype(NSCollectionViewItem prototype)
          Original signature : -(void)setItemPrototype:(NSCollectionViewItem*)
native declaration : NSCollectionView.h:107
abstract  void setMaxItemSize(NSSize.ByValue size)
          default: (0; 0), which means no limit
Original signature : -(void)setMaxItemSize:(NSSize)
native declaration : NSCollectionView.h:116
abstract  void setMaxNumberOfColumns(NSUInteger number)
          default: 0, which means no limit
Original signature : -(void)setMaxNumberOfColumns:(NSUInteger)
native declaration : NSCollectionView.h:112
abstract  void setMaxNumberOfRows(NSUInteger number)
          default: 0, which means no limit
Original signature : -(void)setMaxNumberOfRows:(NSUInteger)
native declaration : NSCollectionView.h:110
abstract  void setMinItemSize(NSSize.ByValue size)
          default: (0; 0)
Original signature : -(void)setMinItemSize:(NSSize)
native declaration : NSCollectionView.h:114
abstract  void setSelectable(boolean flag)
          Original signature : -(void)setSelectable:(BOOL)
native declaration : NSCollectionView.h:98
abstract  void setSelectionIndexes(NSIndexSet indexes)
          Original signature : -(void)setSelectionIndexes:(NSIndexSet*)
native declaration : NSCollectionView.h:102
 
Methods inherited from class org.rococoa.cocoa.appkit.NSView
addSubview, ancestorSharedWithView, as_NSView_NSClipViewSuperview, as_NSView_NSRulerMarkerClientViewDelegation, as_NSView_NSViewEnclosingMenuItem, createWithFrame, getRectsBeingDrawn_count, getRectsBeingDrawn_count, initWithFrame, isDescendantOf, isHidden, isHiddenOrHasHiddenAncestor, needsToDrawRect, opaqueAncestor, setHidden, setSubviews, subviews, superview, viewDidHide, viewDidUnhide, wantsDefaultClipping, window
 
Methods inherited from class org.rococoa.cocoa.appkit.NSResponder
acceptsFirstResponder, as_NSResponder_NSErrorPresentation, as_NSResponder_NSInterfaceStyle, as_NSResponder_NSKeyboardUI, as_NSResponder_NSStandardKeyBindingMethods, as_NSResponder_NSUndoSupport, becomeFirstResponder, beginGestureWithEvent, cursorUpdate, endGestureWithEvent, flagsChanged, flushBufferedKeyEvents, helpRequested, interpretKeyEvents, keyDown, keyUp, magnifyWithEvent, menu, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, nextResponder, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, rotateWithEvent, scrollWheel, setMenu, setNextResponder, shouldBeTreatedAsInkEvent, showContextHelp, swipeWithEvent, tabletPoint, tabletProximity, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesMovedWithEvent, tryToPerform_with, validRequestorForSendType_returnType
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSCollectionView

public NSCollectionView()
Method Detail

setDelegate

public abstract void setDelegate(NSCollectionViewDelegate aDelegate)
Original signature : -(void)setDelegate:(id)
native declaration : NSCollectionView.h:91


delegate

public abstract NSCollectionViewDelegate delegate()
Original signature : -(id)delegate
native declaration : NSCollectionView.h:92


isFirstResponder

public abstract boolean isFirstResponder()
fully KVO compliant - can be used determine different selection colors, etc.
Original signature : -(BOOL)isFirstResponder
native declaration : NSCollectionView.h:94


setContent

public abstract void setContent(NSArray content)
Original signature : -(void)setContent:(NSArray*)
native declaration : NSCollectionView.h:96


content

public abstract NSArray content()
Original signature : -(NSArray*)content
native declaration : NSCollectionView.h:97


setSelectable

public abstract void setSelectable(boolean flag)
Original signature : -(void)setSelectable:(BOOL)
native declaration : NSCollectionView.h:98


isSelectable

public abstract boolean isSelectable()
Original signature : -(BOOL)isSelectable
native declaration : NSCollectionView.h:99


setAllowsMultipleSelection

public abstract void setAllowsMultipleSelection(boolean flag)
default: YES
Original signature : -(void)setAllowsMultipleSelection:(BOOL)
native declaration : NSCollectionView.h:100


allowsMultipleSelection

public abstract boolean allowsMultipleSelection()
Original signature : -(BOOL)allowsMultipleSelection
native declaration : NSCollectionView.h:101


setSelectionIndexes

public abstract void setSelectionIndexes(NSIndexSet indexes)
Original signature : -(void)setSelectionIndexes:(NSIndexSet*)
native declaration : NSCollectionView.h:102


selectionIndexes

public abstract NSIndexSet selectionIndexes()
Original signature : -(NSIndexSet*)selectionIndexes
native declaration : NSCollectionView.h:103


newItemForRepresentedObject

public abstract NSCollectionViewItem newItemForRepresentedObject(ObjCObject object)
override if item should not be generated from prototype (or if view needs to be customized) - the returned object should not be autoreleased
Original signature : -(NSCollectionViewItem*)newItemForRepresentedObject:(id)
native declaration : NSCollectionView.h:105


setItemPrototype

public abstract void setItemPrototype(NSCollectionViewItem prototype)
Original signature : -(void)setItemPrototype:(NSCollectionViewItem*)
native declaration : NSCollectionView.h:107


itemPrototype

public abstract NSCollectionViewItem itemPrototype()
Original signature : -(NSCollectionViewItem*)itemPrototype
native declaration : NSCollectionView.h:108


setMaxNumberOfRows

public abstract void setMaxNumberOfRows(NSUInteger number)
default: 0, which means no limit
Original signature : -(void)setMaxNumberOfRows:(NSUInteger)
native declaration : NSCollectionView.h:110


maxNumberOfRows

public abstract NSUInteger maxNumberOfRows()
Original signature : -(NSUInteger)maxNumberOfRows
native declaration : NSCollectionView.h:111


setMaxNumberOfColumns

public abstract void setMaxNumberOfColumns(NSUInteger number)
default: 0, which means no limit
Original signature : -(void)setMaxNumberOfColumns:(NSUInteger)
native declaration : NSCollectionView.h:112


maxNumberOfColumns

public abstract NSUInteger maxNumberOfColumns()
Original signature : -(NSUInteger)maxNumberOfColumns
native declaration : NSCollectionView.h:113


setMinItemSize

public abstract void setMinItemSize(NSSize.ByValue size)
default: (0; 0)
Original signature : -(void)setMinItemSize:(NSSize)
native declaration : NSCollectionView.h:114


minItemSize

public abstract NSSize.ByValue minItemSize()
Original signature : -(NSSize)minItemSize
native declaration : NSCollectionView.h:115


setMaxItemSize

public abstract void setMaxItemSize(NSSize.ByValue size)
default: (0; 0), which means no limit
Original signature : -(void)setMaxItemSize:(NSSize)
native declaration : NSCollectionView.h:116


maxItemSize

public abstract NSSize.ByValue maxItemSize()
Original signature : -(NSSize)maxItemSize
native declaration : NSCollectionView.h:117


setBackgroundColors

public abstract void setBackgroundColors(NSArray colors)
passing nil or an empty array resets the background colors back to the default
Original signature : -(void)setBackgroundColors:(NSArray*)
native declaration : NSCollectionView.h:119


backgroundColors

public abstract NSArray backgroundColors()
Original signature : -(NSArray*)backgroundColors
native declaration : NSCollectionView.h:120


itemAtIndex

public abstract NSCollectionViewItem itemAtIndex(NSUInteger index)
Returns the NSCollectionViewItem instance associated with the represented object at the given index. You can also use this to access the view at the given index.
Original signature : -(NSCollectionViewItem*)itemAtIndex:(NSUInteger)
native declaration : NSCollectionView.h:124


frameForItemAtIndex

public abstract NSObject frameForItemAtIndex(NSUInteger index)
Returns the frame calculated by the receiver where it intends to place the subview for the NSCollectionViewItem at the given index. You can use this method in the draggingImage methods to determine which views are in the visible portion of the enclosing scroll view. Overriding this method will have no effect on the receiver's subview layout.
Original signature : -(id)frameForItemAtIndex:(NSUInteger)
native declaration : NSCollectionView.h:128


setDraggingSourceOperationMask_forLocal

public abstract void setDraggingSourceOperationMask_forLocal(NSUInteger dragOperationMask,
                                                             boolean localDestination)
Configures the value returned from -draggingSourceOperationMaskForLocal:. An isLocal value of YES indicates that 'dragOperationMask' applies when the destination object is in the same application. By default, NSDragOperationEvery will be returned. An isLocal value of NO indicates that 'dragOperationMask' applies when the destination object is in an application outside the receiver's application. By default, NSDragOperationNone is returned. NSCollectionView will save the values you set for each isLocal setting. You typically will invoke this method, and not override it.
Original signature : -(void)setDraggingSourceOperationMask:(NSDragOperation) forLocal:(BOOL)
native declaration : NSCollectionView.h:134


alloc

public static NSCollectionView alloc()

new_

public static NSCollectionView new_()

getNSClass

public static NSCollectionView._class_ getNSClass()


Copyright © 2009. All Rights Reserved.