org.rococoa.cocoa.appkit
Class NSPrintPanel

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSPrintPanel
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSPrintPanel
extends NSObject
implements ObjCObject

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 NSPrintPanel._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSPrintPanel()
           
 
Method Summary
abstract  NSArray accessoryControllers()
          Original signature : -(NSArray*)accessoryControllers
native declaration : NSPrintPanel.h:110
abstract  void addAccessoryController(NSViewController accessoryController)
          Controllers for the accessory views that will be presented in the print panel by the methods below.
static NSPrintPanel alloc()
           
 NSDeprecated as_NSPrintPanel_NSDeprecated()
           
abstract  void beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo(NSPrintInfo printInfo, NSWindow docWindow, ObjCObject delegate, Selector didEndSelector, Pointer contextInfo)
          Present a print panel to the user, document-modally.
abstract  NSString defaultButtonTitle()
          Original signature : -(NSString*)defaultButtonTitle
native declaration : NSPrintPanel.h:120
static NSPrintPanel._class_ getNSClass()
           
abstract  NSString helpAnchor()
          Original signature : -(NSString*)helpAnchor
native declaration : NSPrintPanel.h:125
abstract  NSString jobStyleHint()
          Original signature : -(NSString*)jobStyleHint
native declaration : NSPrintPanel.h:133
static NSPrintPanel new_()
           
abstract  int options()
          Original signature : -(NSPrintPanelOptions)options
native declaration : NSPrintPanel.h:115
abstract  NSPrintInfo printInfo()
          A simple accessor.
static NSPrintPanel printPanel()
          Create a new NSPrintPanel.
abstract  void removeAccessoryController(NSViewController accessoryController)
          Original signature : -(void)removeAccessoryController:(NSViewController*)
native declaration : NSPrintPanel.h:109
abstract  NSInteger runModal()
          Original signature : -(NSInteger)runModal
native declaration : NSPrintPanel.h:148
abstract  NSInteger runModalWithPrintInfo(NSPrintInfo printInfo)
          Original signature : -(NSInteger)runModalWithPrintInfo:(NSPrintInfo*)
native declaration : NSPrintPanel.h:146
abstract  void setDefaultButtonTitle(NSString defaultButtonTitle)
          The title of the default button in the print panel.
abstract  void setHelpAnchor(NSString helpAnchor)
          The HTML help anchor for the print panel.
abstract  void setJobStyleHint(NSString hint)
          Set or get a string that provides a hint about the type of print job in which this print panel is being used.
abstract  void setOptions(int options)
          The options described above.
 
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.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

NSPrintPanel

public NSPrintPanel()
Method Detail

as_NSPrintPanel_NSDeprecated

public NSDeprecated as_NSPrintPanel_NSDeprecated()

printPanel

public static NSPrintPanel printPanel()
Create a new NSPrintPanel.
Original signature : +(NSPrintPanel*)printPanel
native declaration : NSPrintPanel.h:102


addAccessoryController

public abstract void addAccessoryController(NSViewController accessoryController)
Controllers for the accessory views that will be presented in the print panel by the methods below. When the print panel is presented to the user each controller is automatically sent a -setRepresentedObject: message with this object's NSPrintInfo. Because NSViewControllers are KVC and KVO compliant for "representedObject," you can use one as the file's owner of an accessory view's nib and bind controls to the file's owner using key paths that start with "representedObject." to take advantage of NSPrintInfo's KVC and KVO compliance. Each controller is also automatically sent a -title message. If that returns nil the application's short name is used in the popup menu that lets the user choose an accessory view.
Original signature : -(void)addAccessoryController:(NSViewController*)
native declaration : NSPrintPanel.h:108


removeAccessoryController

public abstract void removeAccessoryController(NSViewController accessoryController)
Original signature : -(void)removeAccessoryController:(NSViewController*)
native declaration : NSPrintPanel.h:109


accessoryControllers

public abstract NSArray accessoryControllers()
Original signature : -(NSArray*)accessoryControllers
native declaration : NSPrintPanel.h:110


setOptions

public abstract void setOptions(int options)
The options described above. In Mac OS 10.5 an -options message sent to a freshly-created NSPrintPanel will return (NSPrintPanelShowsCopies | NSPrintPanelShowsPageRange) unless it was created by an NSPrintOperation, in which case it will also return NSPrintPanelShowsPreview. (See the release notes for backward binary compatibility information though.) To allow your application to take advantage of controls that may be added by default in future versions of Mac OS X, get the options from the print panel you've just created, turn on and off the flags you care about, and then set the options.
Original signature : -(void)setOptions:(NSPrintPanelOptions)
native declaration : NSPrintPanel.h:114

Parameters:
options - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSPrintPanelOptions

options

public abstract int options()
Original signature : -(NSPrintPanelOptions)options
native declaration : NSPrintPanel.h:115


setDefaultButtonTitle

public abstract void setDefaultButtonTitle(NSString defaultButtonTitle)
The title of the default button in the print panel. You can override the standard button title, "Print," when you're using an NSPrintPanel in such a way that printing isn't actually going to happen when the user presses that button.
Original signature : -(void)setDefaultButtonTitle:(NSString*)
native declaration : NSPrintPanel.h:119


defaultButtonTitle

public abstract NSString defaultButtonTitle()
Original signature : -(NSString*)defaultButtonTitle
native declaration : NSPrintPanel.h:120


setHelpAnchor

public abstract void setHelpAnchor(NSString helpAnchor)
The HTML help anchor for the print panel. You can override the standard anchor of the print panel's help button.
Original signature : -(void)setHelpAnchor:(NSString*)
native declaration : NSPrintPanel.h:124


helpAnchor

public abstract NSString helpAnchor()
Original signature : -(NSString*)helpAnchor
native declaration : NSPrintPanel.h:125


setJobStyleHint

public abstract void setJobStyleHint(NSString hint)
Set or get a string that provides a hint about the type of print job in which this print panel is being used. This controls the set of items that appear in the Presets menu. The string must be one of the job style hint strings declared above, or nil to show general presets.
Original signature : -(void)setJobStyleHint:(NSString*)
native declaration : NSPrintPanel.h:132


jobStyleHint

public abstract NSString jobStyleHint()
Original signature : -(NSString*)jobStyleHint
native declaration : NSPrintPanel.h:133


beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo

public abstract void beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo(NSPrintInfo printInfo,
                                                                                                NSWindow docWindow,
                                                                                                ObjCObject delegate,
                                                                                                Selector didEndSelector,
                                                                                                Pointer contextInfo)
Present a print panel to the user, document-modally. When the user has dismissed it, send the message selected by didEndSelector to the delegate, with the contextInfo as the last argument. The method selected by didEndSelector must have the same signature as:
- (void)printPanelDidEnd:(NSPrintPanel *)printPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
Original signature : -(void)beginSheetWithPrintInfo:(NSPrintInfo*) modalForWindow:(NSWindow*) delegate:(id) didEndSelector:(SEL) contextInfo:(void*)
native declaration : NSPrintPanel.h:141


runModalWithPrintInfo

public abstract NSInteger runModalWithPrintInfo(NSPrintInfo printInfo)
Original signature : -(NSInteger)runModalWithPrintInfo:(NSPrintInfo*)
native declaration : NSPrintPanel.h:146


runModal

public abstract NSInteger runModal()
Original signature : -(NSInteger)runModal
native declaration : NSPrintPanel.h:148


printInfo

public abstract NSPrintInfo printInfo()
A simple accessor. Your -beginSheetWithPrintInfo:... delegate can use this so it doesn't have to keep a pointer to the NSPrintInfo elsewhere while waiting for the user to dismiss the print panel.
Original signature : -(NSPrintInfo*)printInfo
native declaration : NSPrintPanel.h:154


alloc

public static NSPrintPanel alloc()

new_

public static NSPrintPanel new_()

getNSClass

public static NSPrintPanel._class_ getNSClass()


Copyright © 2009. All Rights Reserved.