/** * Factory method<br> * * @see #initWithIndex(org.rococoa.cocoa.foundation.NSUInteger) */ public static org.rococoa.cocoa.foundation.NSIndexSet createWithIndex(org.rococoa.cocoa.foundation.NSUInteger value) { return getNSClass().alloc().initWithIndex(value); } /**
/** * Original signature : <code>+(id)indexSetWithIndex:(NSUInteger)</code><br> * <i>native declaration : NSIndexSet.h:52</i> */ public static org.rococoa.cocoa.foundation.NSIndexSet indexSetWithIndex(org.rococoa.cocoa.foundation.NSUInteger value) { return getNSClass().indexSetWithIndex(value); }
/** * Original signature : <code>+(id)indexSet</code><br> * <i>native declaration : NSIndexSet.h:51</i> */ public static org.rococoa.cocoa.foundation.NSIndexSet indexSet() { return getNSClass().indexSet(); }
@Override public NSUInteger draggingSourceOperationMaskForLocal(boolean flag) { return new NSUInteger(NSDraggingInfo.NSDragOperationMove.intValue() | NSDraggingInfo.NSDragOperationCopy.intValue()); }
/** * Factory method<br> * * @see #init() */ public static org.rococoa.cocoa.foundation.NSIndexSet create() { return getNSClass().alloc().init(); }
/** * Factory method<br> * * @see #initWithIndexSet(org.rococoa.cocoa.foundation.NSIndexSet) */ public static org.rococoa.cocoa.foundation.NSIndexSet createWithIndexSet(org.rococoa.cocoa.foundation.NSIndexSet indexSet) { return getNSClass().alloc().initWithIndexSet(indexSet); }
@Override protected void reset() { pool = NSAutoreleasePool.new_(); }
private static NSArray toNSArray(final String... strings) { if (strings == null) { return null; } NSObject[] types = new NSObject[strings.length]; for (int i = 0; i < strings.length; i++) { types[i] = NSString.stringWithString(strings[i]); } return NSArray.CLASS.arrayWithObjects(types); }
public static org.rococoa.cocoa.foundation.NSMutableIndexSet alloc() { return getNSClass().alloc(); }
public static org.rococoa.cocoa.foundation.NSMutableIndexSet new_() { return getNSClass().new_(); }
public static NSString getGlobalString(String globalVarName) { return getGlobalString("AppKit", globalVarName); } }
/** Set the value associated with the given key. * @param key the key whose value will be set * @param value the value to set */ public void setString(E key, String value) { data.setValue_forKey(NSString.stringWithString(value), key.getNativeValue()); }
public Entry(final String spelling, final String phonemes) { this(NSMutableDictionary.dictionaryWithObjectsAndKeys( NSString.stringWithString(phonemes), DictionaryEntryProperty.Phonemes.getNativeValue(), NSString.stringWithString(spelling), DictionaryEntryProperty.Spelling.getNativeValue(), null) ); } public String getSpelling() {
/** Construct a new empty dictionary with the given initial capacity. * @param initialCapacity the initial capacity to use */ protected AbstractPropertyDictionary(int initialCapacity) { this.data = NSMutableDictionary.dictionaryWithCapacity(initialCapacity); } /** Construct a new dictionary with the given dictionary.
/** Construct a new dictionary with the given dictionary. * The dictionary <strong>is</strong> copied into a mutable dictionary. * @param data the dictionary to use */ protected AbstractPropertyDictionary(final NSDictionary data) { this.data = NSMutableDictionary.dictionaryWithDictionary(data); } /** Get the underlying dictionary
@Override public NSUInteger draggingSourceOperationMaskForLocal(boolean flag) { return new NSUInteger(NSDraggingInfo.NSDragOperationMove.intValue() | NSDraggingInfo.NSDragOperationCopy.intValue()); }