|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSDocumentController
public abstract class NSDocumentController
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 |
NSDocumentController._class_
|
| Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding |
|---|
NSCoding._static_ |
| Nested classes/interfaces inherited from interface org.rococoa.cocoa.appkit.protocols.NSUserInterfaceValidations |
|---|
NSUserInterfaceValidations._static_ |
| Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
|---|
NSObject._static_ |
| Constructor Summary | |
|---|---|
NSDocumentController()
|
|
| Method Summary | |
|---|---|
abstract void |
addDocument(NSDocument document)
Add or remove a document from the list of open documents. |
static NSDocumentController |
alloc()
|
NSDeprecated |
as_NSDocumentController_NSDeprecated()
|
abstract NSObject |
autosavingDelay()
Original signature : -(id)autosavingDelaynative declaration : NSDocumentController.h:124 |
abstract void |
clearRecentDocuments(ObjCObject sender)
The action of the Open Recent menu's Clear Menu item. |
abstract void |
closeAllDocumentsWithDelegate_didCloseAllSelector_contextInfo(ObjCObject delegate,
Selector didCloseAllSelector,
Pointer contextInfo)
For each open, modified, document present a document-modal alert panel asking whether the document should be saved and giving the option of canceling, not saving the document, or saving the document. |
static NSDocumentController |
create()
Factory method |
abstract NSString |
currentDirectory()
Return the path of the directory containing the active document's file or file package, if there is an active document and it has a file or file package. |
abstract NSObject |
currentDocument()
Return the active document, or nil if there is no active document. |
abstract NSString |
defaultType()
Return the name of the document type that should be used when creating new documents. |
abstract NSString |
displayNameForType(NSString typeName)
Given a document type name, return a string describing the document type that is fit to present to the user, or nil for failure. |
abstract ObjCClass |
documentClassForType(NSString typeName)
Given a document type name, return the subclass of NSDocument that should be instantiated when opening a document of that type, or nil for failure. |
abstract NSArray |
documentClassNames()
Return the names of NSDocument subclasses supported by this application. |
abstract NSObject |
documentForURL(NSURL absoluteURL)
Given a URL, return the open document whose file or file package is located by the URL, or nil if there is no such open document. |
abstract NSObject |
documentForWindow(NSWindow window)
Given a window, return the document corresponding to the window, nil if no document corrresponds to the window. |
abstract NSArray |
documents()
Return an array of all open documents. |
static NSDocumentController._class_ |
getNSClass()
|
abstract boolean |
hasEditedDocuments()
Return YES if any open document is modified, NO otherwise. |
abstract NSDocumentController |
init()
The designated initializer. |
abstract NSObject |
makeDocumentForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL,
NSURL absoluteDocumentContentsURL,
NSString typeName,
PointerByReference outError)
Instantiate a document located by a URL, of a specified type, but by reading the contents for the document from another URL, and return it if successful. |
abstract NSObject |
makeDocumentWithContentsOfURL_ofType_error(NSURL absoluteURL,
NSString typeName,
PointerByReference outError)
Instantiate a document located by a URL, of a specified type, and return it if successful. |
abstract NSObject |
makeUntitledDocumentOfType_error(NSString typeName,
PointerByReference outError)
Instantiate a new untitled document of the specified type and return it if successful. |
abstract NSUInteger |
maximumRecentDocumentCount()
Return the maximum number of items that may be presented in the standard Open Recent menu. |
static NSDocumentController |
new_()
|
abstract void |
newDocument(ObjCObject sender)
The action of the File menu's New item in a document-based application. |
abstract void |
noteNewRecentDocument(NSDocument document)
Add an item corresponding to a document to the Open Recent menu, or replace an existing item for the same document. |
abstract void |
noteNewRecentDocumentURL(NSURL absoluteURL)
Add an item corresponding to the data located by a URL to the Open Recent menu, or replace an existing item with the same URL. |
abstract void |
openDocument(ObjCObject sender)
The action of the File menu's Open... item in a document-based application. |
abstract NSObject |
openDocumentWithContentsOfURL_display_error(NSURL absoluteURL,
boolean displayDocument,
PointerByReference outError)
Open a document located by a URL, present its user interface if displayDocuments is YES, and return the document if successful. |
abstract NSObject |
openUntitledDocumentAndDisplay_error(boolean displayDocument,
PointerByReference outError)
Create a new untitled document, present its user interface if displayDocument is YES, and return the document if successful. |
abstract void |
presentError_modalForWindow_delegate_didPresentSelector_contextInfo(NSError error,
NSWindow window,
ObjCObject delegate,
Selector didPresentSelector,
Pointer contextInfo)
Methods that are declared by NSResponder and also implemented by NSDocumentController, even though for historical reasons NSDocumentController is not a subclass of NSResponder. |
abstract boolean |
presentError(NSError error)
Original signature : -(BOOL)presentError:(NSError*)native declaration : NSDocumentController.h:161 |
abstract NSArray |
recentDocumentURLs()
Return an array of URLs for the entries currently appearing in the Open Recent menu. |
abstract void |
removeDocument(NSDocument document)
Original signature : -(void)removeDocument:(NSDocument*)native declaration : NSDocumentController.h:63 |
abstract boolean |
reopenDocumentForURL_withContentsOfURL_error(NSURL absoluteDocumentURL,
NSURL absoluteDocumentContentsURL,
PointerByReference outError)
Reopen a document located by a URL by reading the contents for the document from another URL, present its user interface, and return YES if successful. |
abstract void |
reviewUnsavedDocumentsWithAlertTitle_cancellable_delegate_didReviewAllSelector_contextInfo(NSString title,
boolean cancellable,
ObjCObject delegate,
Selector didReviewAllSelector,
Pointer contextInfo)
If there is more than one modified document, present an application-modal alert panel telling the user that there are unsaved documents and giving the option of canceling, not saving the documents, or saving the documents. |
abstract NSInteger |
runModalOpenPanel_forTypes(NSOpenPanel openPanel,
NSArray types)
Present the application-modal open panel to the user, specifying a list of UTIs (in Mac OS 10.5), file name extensions, and encoded HFS file types for openable files. |
abstract void |
saveAllDocuments(ObjCObject sender)
The action of the File menu's Save All item in a document-based application. |
static NSDocumentController |
sharedDocumentController()
Return the application's shared document controller. |
abstract NSString |
typeForContentsOfURL_error(NSURL inAbsoluteURL,
PointerByReference outError)
Given a URL, return the name of the document type that should be used when opening the document at that location, if successful. |
abstract NSArray |
URLsFromRunningOpenPanel()
Present an application-modal open panel to the user and, if the user selects one or more files and indicates that they are to be opened, return an array of those files' URLs. |
abstract boolean |
validateUserInterfaceItem(NSValidatedUserInterfaceItem anItem)
Conformance to the NSUserInterfaceValidations protocol. |
abstract NSError |
willPresentError(NSError error)
Original signature : -(NSError*)willPresentError:(NSError*)native declaration : NSDocumentController.h:162 |
| 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 |
|---|
public NSDocumentController()
| Method Detail |
|---|
public NSDeprecated as_NSDocumentController_NSDeprecated()
public static NSDocumentController sharedDocumentController()
+(id)sharedDocumentController
public abstract NSDocumentController init()
-(id)init
init in class NSObjectpublic static NSDocumentController create()
init()public abstract NSArray documents()
-(NSArray*)documents
public abstract NSObject currentDocument()
-(id)currentDocument
public abstract NSString currentDirectory()
-(NSString*)currentDirectory
public abstract NSObject documentForURL(NSURL absoluteURL)
-(id)documentForURL:(NSURL*)
public abstract NSObject documentForWindow(NSWindow window)
-(id)documentForWindow:(NSWindow*)
public abstract void addDocument(NSDocument document)
-(void)addDocument:(NSDocument*)
public abstract void removeDocument(NSDocument document)
-(void)removeDocument:(NSDocument*)
public abstract void newDocument(ObjCObject sender)
-(void)newDocument:(id)
public abstract NSObject openUntitledDocumentAndDisplay_error(boolean displayDocument,
PointerByReference outError)
-(id)openUntitledDocumentAndDisplay:(BOOL) error:(NSError**)
public abstract NSObject makeUntitledDocumentOfType_error(NSString typeName,
PointerByReference outError)
-(id)makeUntitledDocumentOfType:(NSString*) error:(NSError**)
public abstract void openDocument(ObjCObject sender)
-(void)openDocument:(id)
public abstract NSArray URLsFromRunningOpenPanel()
-(NSArray*)URLsFromRunningOpenPanel
public abstract NSInteger runModalOpenPanel_forTypes(NSOpenPanel openPanel,
NSArray types)
-(NSInteger)runModalOpenPanel:(NSOpenPanel*) forTypes:(NSArray*)
public abstract NSObject openDocumentWithContentsOfURL_display_error(NSURL absoluteURL,
boolean displayDocument,
PointerByReference outError)
-(id)openDocumentWithContentsOfURL:(NSURL*) display:(BOOL) error:(NSError**)
public abstract NSObject makeDocumentWithContentsOfURL_ofType_error(NSURL absoluteURL,
NSString typeName,
PointerByReference outError)
-(id)makeDocumentWithContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)
public abstract boolean reopenDocumentForURL_withContentsOfURL_error(NSURL absoluteDocumentURL,
NSURL absoluteDocumentContentsURL,
PointerByReference outError)
-(BOOL)reopenDocumentForURL:(NSURL*) withContentsOfURL:(NSURL*) error:(NSError**)
public abstract NSObject makeDocumentForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL,
NSURL absoluteDocumentContentsURL,
NSString typeName,
PointerByReference outError)
-(id)makeDocumentForURL:(NSURL*) withContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)
public abstract NSObject autosavingDelay()
-(id)autosavingDelay
public abstract void saveAllDocuments(ObjCObject sender)
-(void)saveAllDocuments:(id)
public abstract boolean hasEditedDocuments()
-(BOOL)hasEditedDocuments
public abstract void reviewUnsavedDocumentsWithAlertTitle_cancellable_delegate_didReviewAllSelector_contextInfo(NSString title,
boolean cancellable,
ObjCObject delegate,
Selector didReviewAllSelector,
Pointer contextInfo)
-(void)reviewUnsavedDocumentsWithAlertTitle:(NSString*) cancellable:(BOOL) delegate:(id) didReviewAllSelector:(SEL) contextInfo:(void*)
public abstract void closeAllDocumentsWithDelegate_didCloseAllSelector_contextInfo(ObjCObject delegate,
Selector didCloseAllSelector,
Pointer contextInfo)
-(void)closeAllDocumentsWithDelegate:(id) didCloseAllSelector:(SEL) contextInfo:(void*)
public abstract void presentError_modalForWindow_delegate_didPresentSelector_contextInfo(NSError error,
NSWindow window,
ObjCObject delegate,
Selector didPresentSelector,
Pointer contextInfo)
-(void)presentError:(NSError*) modalForWindow:(NSWindow*) delegate:(id) didPresentSelector:(SEL) contextInfo:(void*)
public abstract boolean presentError(NSError error)
-(BOOL)presentError:(NSError*)
public abstract NSError willPresentError(NSError error)
-(NSError*)willPresentError:(NSError*)
public abstract NSUInteger maximumRecentDocumentCount()
-(NSUInteger)maximumRecentDocumentCount
public abstract void clearRecentDocuments(ObjCObject sender)
-(void)clearRecentDocuments:(id)
public abstract void noteNewRecentDocument(NSDocument document)
-(void)noteNewRecentDocument:(NSDocument*)
public abstract void noteNewRecentDocumentURL(NSURL absoluteURL)
-(void)noteNewRecentDocumentURL:(NSURL*)
public abstract NSArray recentDocumentURLs()
-(NSArray*)recentDocumentURLs
public abstract NSString defaultType()
-(NSString*)defaultType
public abstract NSString typeForContentsOfURL_error(NSURL inAbsoluteURL,
PointerByReference outError)
-(NSString*)typeForContentsOfURL:(NSURL*) error:(NSError**)
public abstract NSArray documentClassNames()
-(NSArray*)documentClassNames
public abstract ObjCClass documentClassForType(NSString typeName)
-(Class)documentClassForType:(NSString*)
public abstract NSString displayNameForType(NSString typeName)
-(NSString*)displayNameForType:(NSString*)
public abstract boolean validateUserInterfaceItem(NSValidatedUserInterfaceItem anItem)
-(BOOL)validateUserInterfaceItem:(id)
validateUserInterfaceItem in interface NSUserInterfaceValidationspublic static NSDocumentController alloc()
public static NSDocumentController new_()
public static NSDocumentController._class_ getNSClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||