org.rococoa.cocoa.appkit
Class NSAlert

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

public abstract class NSAlert
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 NSAlert._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSAlert()
           
 
Method Summary
abstract  NSButton addButtonWithTitle(NSString title)
          customize the buttons in the alert panel.
static NSAlert alertWithError(NSError error)
          Given an NSError, create an NSAlert that can be used to present the error to the user.
static NSAlert alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat(NSString message, NSString defaultButton, NSString alternateButton, NSString otherButton, NSString format, NSObject... varargs)
          the following class method is for use by apps migrating from the C-based API.
static NSAlert alloc()
           
abstract  NSArray buttons()
          get the buttons, where the rightmost button is at index 0.
static NSAlert._class_ getNSClass()
           
abstract  NSImage icon()
          Original signature : -(NSImage*)icon
native declaration : NSAlert.h:82
abstract  NSString informativeText()
          Original signature : -(NSString*)informativeText
native declaration : NSAlert.h:77
abstract  NSString messageText()
          Original signature : -(NSString*)messageText
native declaration : NSAlert.h:76
static NSAlert new_()
           
abstract  void setIcon(NSImage icon)
          customize the icon.
abstract  void setInformativeText(NSString informativeText)
          Original signature : -(void)setInformativeText:(NSString*)
native declaration : NSAlert.h:74
abstract  void setMessageText(NSString messageText)
          Original signature : -(void)setMessageText:(NSString*)
native declaration : NSAlert.h:73
 
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

NSAlert

public NSAlert()
Method Detail

alertWithError

public static NSAlert alertWithError(NSError error)
Given an NSError, create an NSAlert that can be used to present the error to the user. The error's localized description, recovery suggestion, and recovery options will be used to set the alert's message text, informative text, and button titles, respectively.
Original signature : +(NSAlert*)alertWithError:(NSError*)
native declaration : NSAlert.h:65


alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat

public static NSAlert alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat(NSString message,
                                                                                                               NSString defaultButton,
                                                                                                               NSString alternateButton,
                                                                                                               NSString otherButton,
                                                                                                               NSString format,
                                                                                                               NSObject... varargs)
the following class method is for use by apps migrating from the C-based API. Note that this returns an NSAlert that is equivalent to the one created in NSRunAlertPanel, so the layout, button return values, and key equivalents are the same as for the C-based API. For return values, see NSAlertDefaultReturn, etc. in NSPanel.h
Original signature : +(NSAlert*)alertWithMessageText:(NSString*) defaultButton:(NSString*) alternateButton:(NSString*) otherButton:(NSString*) informativeTextWithFormat:(NSString*), ...
native declaration : NSAlert.h:71


setMessageText

public abstract void setMessageText(NSString messageText)
Original signature : -(void)setMessageText:(NSString*)
native declaration : NSAlert.h:73


setInformativeText

public abstract void setInformativeText(NSString informativeText)
Original signature : -(void)setInformativeText:(NSString*)
native declaration : NSAlert.h:74


messageText

public abstract NSString messageText()
Original signature : -(NSString*)messageText
native declaration : NSAlert.h:76


informativeText

public abstract NSString informativeText()
Original signature : -(NSString*)informativeText
native declaration : NSAlert.h:77


setIcon

public abstract void setIcon(NSImage icon)
customize the icon. By default uses the image named NSApplicationIcon.
Original signature : -(void)setIcon:(NSImage*)
native declaration : NSAlert.h:81


icon

public abstract NSImage icon()
Original signature : -(NSImage*)icon
native declaration : NSAlert.h:82


addButtonWithTitle

public abstract NSButton addButtonWithTitle(NSString title)
customize the buttons in the alert panel. Buttons are added from right to left (for left to right languages).
Original signature : -(NSButton*)addButtonWithTitle:(NSString*)
native declaration : NSAlert.h:86


buttons

public abstract NSArray buttons()
get the buttons, where the rightmost button is at index 0.
Original signature : -(NSArray*)buttons
native declaration : NSAlert.h:89


alloc

public static NSAlert alloc()

new_

public static NSAlert new_()

getNSClass

public static NSAlert._class_ getNSClass()


Copyright © 2009. All Rights Reserved.