org.rococoa.cocoa.appkit
Class NSObjectController

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSController
          extended by org.rococoa.cocoa.appkit.NSObjectController
All Implemented Interfaces:
NSCoding, NSObject, ObjCObject
Direct Known Subclasses:
NSArrayController, NSTreeController

public abstract class NSObjectController
extends NSController

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 NSObjectController.__objectControllerFlags
           
static class NSObjectController._class_
           
 
Nested classes/interfaces inherited from class org.rococoa.cocoa.appkit.NSController
NSController.__bindingsControllerFlags
 
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
NSObjectController()
           
 
Method Summary
abstract  void add(ObjCObject sender)
          creates a new object and adds it through addObject:
Original signature : -(void)add:(id)
native declaration : NSObjectController.h:59
abstract  void addObject(ObjCObject object)
          sets the content object of the controller - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be changed
Original signature : -(void)addObject:(id)
native declaration : NSObjectController.h:54
static NSObjectController alloc()
           
 NSManagedController as_NSObjectController_NSManagedController()
           
abstract  boolean automaticallyPreparesContent()
          Original signature : -(BOOL)automaticallyPreparesContent
native declaration : NSObjectController.h:48
abstract  boolean canAdd()
          can be used in bindings controlling the enabling of buttons, for example
Original signature : -(BOOL)canAdd
native declaration : NSObjectController.h:60
abstract  boolean canRemove()
          can be used in bindings controlling the enabling of buttons, for example
Original signature : -(BOOL)canRemove
native declaration : NSObjectController.h:62
abstract  NSObject content()
          Original signature : -(id)content
native declaration : NSObjectController.h:42
static NSObjectController createWithContent(ObjCObject content)
          Factory method
static NSObjectController._class_ getNSClass()
           
abstract  NSObjectController initWithContent(ObjCObject content)
          Original signature : -(id)initWithContent:(id)
native declaration : NSObjectController.h:39
abstract  boolean isEditable()
          Original signature : -(BOOL)isEditable
native declaration : NSObjectController.h:58
static NSObjectController new_()
           
abstract  NSObject newObject()
          creates a new object when adding/inserting objects (default implementation assumes the object class has a standard init method without arguments) - the returned object should not be autoreleased
Original signature : -(id)newObject
native declaration : NSObjectController.h:53
abstract  ObjCClass objectClass()
          Original signature : -(Class)objectClass
native declaration : NSObjectController.h:52
abstract  void prepareContent()
          typically overridden in subclasses which know how to get their content (from the file system or so) - default implementation creates a new object and populates the controller with it
Original signature : -(void)prepareContent
native declaration : NSObjectController.h:49
abstract  void remove(ObjCObject sender)
          removes content object through removeObject:
Original signature : -(void)remove:(id)
native declaration : NSObjectController.h:61
abstract  void removeObject(ObjCObject object)
          if the object is the current content object of the controller, clears the content - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be cleared
Original signature : -(void)removeObject:(id)
native declaration : NSObjectController.h:55
abstract  NSArray selectedObjects()
          array of all objects to be affected by editing (if controller supports a selection mechanisms, the selected objects, otherwise all content objects) - in the concrete case of NSObjectController, returns an array with the content object
Original signature : -(NSArray*)selectedObjects
native declaration : NSObjectController.h:45
abstract  NSObject selection()
          an object representing all objects to be affected by editing as a singleton, returning special marker objects like NSMultipleSelectionMarker if necessary - in the concrete case of NSObjectController, returns an object that is used to access the content object
Original signature : -(id)selection
native declaration : NSObjectController.h:44
abstract  void setAutomaticallyPreparesContent(boolean flag)
          if YES, controllers will automatically invoke prepareContent when loaded from a nib file
Original signature : -(void)setAutomaticallyPreparesContent:(BOOL)
native declaration : NSObjectController.h:47
abstract  void setContent(ObjCObject content)
          Original signature : -(void)setContent:(id)
native declaration : NSObjectController.h:41
abstract  void setEditable(boolean flag)
          determines whether controller allows adding and removing objects
Original signature : -(void)setEditable:(BOOL)
native declaration : NSObjectController.h:57
abstract  void setObjectClass(ObjCClass objectClass)
          sets the object class used when creating new objects
Original signature : -(void)setObjectClass:(Class)
native declaration : NSObjectController.h:51
abstract  boolean validateUserInterfaceItem(NSValidatedUserInterfaceItem item)
          overridden to automatically disable user interface elements sending action methods to the controller (for example if canAdd returns NO, menu items with the add: action are disabled)
Original signature : -(BOOL)validateUserInterfaceItem:(id)
native declaration : NSObjectController.h:63
 
Methods inherited from class org.rococoa.cocoa.appkit.NSController
commitEditing, commitEditingWithDelegate_didCommitSelector_contextInfo, discardEditing, isEditing, objectDidBeginEditing, objectDidEndEditing
 
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

NSObjectController

public NSObjectController()
Method Detail

as_NSObjectController_NSManagedController

public NSManagedController as_NSObjectController_NSManagedController()

initWithContent

public abstract NSObjectController initWithContent(ObjCObject content)
Original signature : -(id)initWithContent:(id)
native declaration : NSObjectController.h:39


createWithContent

public static NSObjectController createWithContent(ObjCObject content)
Factory method

See Also:
initWithContent(org.rococoa.ObjCObject)

setContent

public abstract void setContent(ObjCObject content)
Original signature : -(void)setContent:(id)
native declaration : NSObjectController.h:41


content

public abstract NSObject content()
Original signature : -(id)content
native declaration : NSObjectController.h:42


selection

public abstract NSObject selection()
an object representing all objects to be affected by editing as a singleton, returning special marker objects like NSMultipleSelectionMarker if necessary - in the concrete case of NSObjectController, returns an object that is used to access the content object
Original signature : -(id)selection
native declaration : NSObjectController.h:44


selectedObjects

public abstract NSArray selectedObjects()
array of all objects to be affected by editing (if controller supports a selection mechanisms, the selected objects, otherwise all content objects) - in the concrete case of NSObjectController, returns an array with the content object
Original signature : -(NSArray*)selectedObjects
native declaration : NSObjectController.h:45


setAutomaticallyPreparesContent

public abstract void setAutomaticallyPreparesContent(boolean flag)
if YES, controllers will automatically invoke prepareContent when loaded from a nib file
Original signature : -(void)setAutomaticallyPreparesContent:(BOOL)
native declaration : NSObjectController.h:47


automaticallyPreparesContent

public abstract boolean automaticallyPreparesContent()
Original signature : -(BOOL)automaticallyPreparesContent
native declaration : NSObjectController.h:48


prepareContent

public abstract void prepareContent()
typically overridden in subclasses which know how to get their content (from the file system or so) - default implementation creates a new object and populates the controller with it
Original signature : -(void)prepareContent
native declaration : NSObjectController.h:49


setObjectClass

public abstract void setObjectClass(ObjCClass objectClass)
sets the object class used when creating new objects
Original signature : -(void)setObjectClass:(Class)
native declaration : NSObjectController.h:51


objectClass

public abstract ObjCClass objectClass()
Original signature : -(Class)objectClass
native declaration : NSObjectController.h:52


newObject

public abstract NSObject newObject()
creates a new object when adding/inserting objects (default implementation assumes the object class has a standard init method without arguments) - the returned object should not be autoreleased
Original signature : -(id)newObject
native declaration : NSObjectController.h:53


addObject

public abstract void addObject(ObjCObject object)
sets the content object of the controller - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be changed
Original signature : -(void)addObject:(id)
native declaration : NSObjectController.h:54


removeObject

public abstract void removeObject(ObjCObject object)
if the object is the current content object of the controller, clears the content - if the controller's content is bound to another object or controller through a relationship key, the relationship of the 'master' object will be cleared
Original signature : -(void)removeObject:(id)
native declaration : NSObjectController.h:55


setEditable

public abstract void setEditable(boolean flag)
determines whether controller allows adding and removing objects
Original signature : -(void)setEditable:(BOOL)
native declaration : NSObjectController.h:57


isEditable

public abstract boolean isEditable()
Original signature : -(BOOL)isEditable
native declaration : NSObjectController.h:58


add

public abstract void add(ObjCObject sender)
creates a new object and adds it through addObject:
Original signature : -(void)add:(id)
native declaration : NSObjectController.h:59


canAdd

public abstract boolean canAdd()
can be used in bindings controlling the enabling of buttons, for example
Original signature : -(BOOL)canAdd
native declaration : NSObjectController.h:60


remove

public abstract void remove(ObjCObject sender)
removes content object through removeObject:
Original signature : -(void)remove:(id)
native declaration : NSObjectController.h:61


canRemove

public abstract boolean canRemove()
can be used in bindings controlling the enabling of buttons, for example
Original signature : -(BOOL)canRemove
native declaration : NSObjectController.h:62


validateUserInterfaceItem

public abstract boolean validateUserInterfaceItem(NSValidatedUserInterfaceItem item)
overridden to automatically disable user interface elements sending action methods to the controller (for example if canAdd returns NO, menu items with the add: action are disabled)
Original signature : -(BOOL)validateUserInterfaceItem:(id)
native declaration : NSObjectController.h:63


alloc

public static NSObjectController alloc()

new_

public static NSObjectController new_()

getNSClass

public static NSObjectController._class_ getNSClass()


Copyright © 2009. All Rights Reserved.