All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Workspace

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Workspace

public class Workspace
extends NativeObject
This class wraps the Objective-C class NSWorkspace.


Variable Index

 o WorkspaceDidLaunchApplicationNotification
 o WorkspaceDidMountNotification
 o WorkspaceDidPerformFileOperationNotification
 o WorkspaceDidTerminateApplicationNotification
 o WorkspaceDidUnmountNotification
 o WorkspaceWillLaunchApplicationNotification
 o WorkspaceWillPowerOffNotification
 o WorkspaceWillUnmountNotification

Constructor Index

 o Workspace()
This default constructor is equivalent to Objective-C's [[NSWorkspace alloc] init].
 o Workspace(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.

Method Index

 o checkForRemovableMedia()
A wrapper for the - checkForRemovableMedia Objective-C instance method.
 o extendPowerOffBy(int)
A wrapper for the - extendPowerOffBy: Objective-C instance method.
 o fileSystemChanged()
A wrapper for the - fileSystemChanged Objective-C instance method.
 o findApplications()
A wrapper for the - findApplications Objective-C instance method.
 o fullPathForApplication(String)
A wrapper for the - fullPathForApplication: Objective-C instance method.
 o getApplicationForFile(String)
A wrapper for the - getApplicationForFile: Objective-C instance method.
 o getTypeForFile(String)
A wrapper for the - getTypeForFile: Objective-C instance method.
 o hideOtherApplications()
A wrapper for the - hideOtherApplications Objective-C instance method.
 o iconForFile(String)
A wrapper for the - iconForFile: Objective-C instance method.
 o iconForFiles(Array)
A wrapper for the - iconForFiles: Objective-C instance method.
 o iconForFileType(String)
A wrapper for the - iconForFileType: Objective-C instance method.
 o launchApplication(String)
A wrapper for the - launchApplication: Objective-C instance method.
 o launchApplicationAndShowIcon(String, boolean, boolean)
A wrapper for the - launchApplication:showIcon:autolaunch: Objective-C instance method.
 o mountedRemovableMedia()
A wrapper for the - mountedRemovableMedia Objective-C instance method.
 o mountNewRemovableMedia()
A wrapper for the - mountNewRemovableMedia Objective-C instance method.
 o noteFileSystemChanged()
A wrapper for the - noteFileSystemChanged Objective-C instance method.
 o noteUserDefaultsChanged()
A wrapper for the - noteUserDefaultsChanged Objective-C instance method.
 o notificationCenter()
A wrapper for the - notificationCenter Objective-C instance method.
 o openFile(String)
A wrapper for the - openFile: Objective-C instance method.
 o openFileFromImageAtPointInView(String, Image, Point, View)
A wrapper for the - openFile:fromImage:at:inView: Objective-C instance method.
 o openFileWithApplication(String, String)
A wrapper for the - openFile:withApplication: Objective-C instance method.
 o openFileWithApplicationAndDeactivate(String, String, boolean)
A wrapper for the - openFile:withApplication:andDeactivate: Objective-C instance method.
 o openTempFile(String)
A wrapper for the - openTempFile: Objective-C instance method.
 o performFileOperation(String, String, String, Array)
A wrapper for the - performFileOperation:source:destination:files: Objective-C instance method.
 o selectFile(String, String)
A wrapper for the - selectFile:inFileViewerRootedAtPath: Objective-C instance method.
 o sharedWorkspace()
A wrapper for the + sharedWorkspace Objective-C class method.
 o slideImage(Image, Point, Point)
A wrapper for the - slideImage:from:to: Objective-C instance method.
 o unmountAndEjectDeviceAtPath(String)
A wrapper for the - unmountAndEjectDeviceAtPath: Objective-C instance method.
 o userDefaultsChanged()
A wrapper for the - userDefaultsChanged Objective-C instance method.

Variables

 o WorkspaceDidLaunchApplicationNotification
 public static final String WorkspaceDidLaunchApplicationNotification
 o WorkspaceDidMountNotification
 public static final String WorkspaceDidMountNotification
 o WorkspaceDidPerformFileOperationNotification
 public static final String WorkspaceDidPerformFileOperationNotification
 o WorkspaceDidTerminateApplicationNotification
 public static final String WorkspaceDidTerminateApplicationNotification
 o WorkspaceDidUnmountNotification
 public static final String WorkspaceDidUnmountNotification
 o WorkspaceWillLaunchApplicationNotification
 public static final String WorkspaceWillLaunchApplicationNotification
 o WorkspaceWillPowerOffNotification
 public static final String WorkspaceWillPowerOffNotification
 o WorkspaceWillUnmountNotification
 public static final String WorkspaceWillUnmountNotification

Constructors

 o Workspace
 protected Workspace(boolean shouldAllocate,
                     int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Workspace
 public Workspace()
This default constructor is equivalent to Objective-C's [[NSWorkspace alloc] init].

Methods

 o sharedWorkspace
 public static native Workspace sharedWorkspace()
A wrapper for the + sharedWorkspace Objective-C class method.

 o notificationCenter
 public native NotificationCenter notificationCenter()
A wrapper for the - notificationCenter Objective-C instance method.

 o openFile
 public native boolean openFile(String fullPath)
A wrapper for the - openFile: Objective-C instance method.

 o openFileWithApplication
 public native boolean openFileWithApplication(String fullPath,
                                               String appName)
A wrapper for the - openFile:withApplication: Objective-C instance method.

 o openFileWithApplicationAndDeactivate
 public native boolean openFileWithApplicationAndDeactivate(String fullPath,
                                                            String appName,
                                                            boolean flag)
A wrapper for the - openFile:withApplication:andDeactivate: Objective-C instance method.

 o openTempFile
 public native boolean openTempFile(String fullPath)
A wrapper for the - openTempFile: Objective-C instance method.

 o openFileFromImageAtPointInView
 public native boolean openFileFromImageAtPointInView(String fullPath,
                                                      Image anImage,
                                                      Point point,
                                                      View aView)
A wrapper for the - openFile:fromImage:at:inView: Objective-C instance method.

 o launchApplication
 public native boolean launchApplication(String appName)
A wrapper for the - launchApplication: Objective-C instance method.

 o launchApplicationAndShowIcon
 public native boolean launchApplicationAndShowIcon(String appName,
                                                    boolean showIcon,
                                                    boolean autolaunch)
A wrapper for the - launchApplication:showIcon:autolaunch: Objective-C instance method.

 o fullPathForApplication
 public native String fullPathForApplication(String appName)
A wrapper for the - fullPathForApplication: Objective-C instance method.

 o selectFile
 public native boolean selectFile(String fullPath,
                                  String rootFullpath)
A wrapper for the - selectFile:inFileViewerRootedAtPath: Objective-C instance method.

 o findApplications
 public native void findApplications()
A wrapper for the - findApplications Objective-C instance method.

 o noteFileSystemChanged
 public native void noteFileSystemChanged()
A wrapper for the - noteFileSystemChanged Objective-C instance method.

 o fileSystemChanged
 public native boolean fileSystemChanged()
A wrapper for the - fileSystemChanged Objective-C instance method.

 o noteUserDefaultsChanged
 public native void noteUserDefaultsChanged()
A wrapper for the - noteUserDefaultsChanged Objective-C instance method.

 o userDefaultsChanged
 public native boolean userDefaultsChanged()
A wrapper for the - userDefaultsChanged Objective-C instance method.

 o iconForFile
 public native Image iconForFile(String fullPath)
A wrapper for the - iconForFile: Objective-C instance method.

 o iconForFiles
 public native Image iconForFiles(Array fullPaths)
A wrapper for the - iconForFiles: Objective-C instance method.

 o iconForFileType
 public native Image iconForFileType(String fileType)
A wrapper for the - iconForFileType: Objective-C instance method.

 o unmountAndEjectDeviceAtPath
 public native boolean unmountAndEjectDeviceAtPath(String path)
A wrapper for the - unmountAndEjectDeviceAtPath: Objective-C instance method.

 o extendPowerOffBy
 public native int extendPowerOffBy(int requested)
A wrapper for the - extendPowerOffBy: Objective-C instance method.

 o slideImage
 public native void slideImage(Image image,
                               Point fromPoint,
                               Point toPoint)
A wrapper for the - slideImage:from:to: Objective-C instance method.

 o hideOtherApplications
 public native void hideOtherApplications()
A wrapper for the - hideOtherApplications Objective-C instance method.

 o mountedRemovableMedia
 public native Array mountedRemovableMedia()
A wrapper for the - mountedRemovableMedia Objective-C instance method.

 o mountNewRemovableMedia
 public native Array mountNewRemovableMedia()
A wrapper for the - mountNewRemovableMedia Objective-C instance method.

 o checkForRemovableMedia
 public native void checkForRemovableMedia()
A wrapper for the - checkForRemovableMedia Objective-C instance method.

 o getApplicationForFile
 public final native String getApplicationForFile(String fullPath)
A wrapper for the - getApplicationForFile: Objective-C instance method.

 o getTypeForFile
 public final native String getTypeForFile(String fullPath)
A wrapper for the - getTypeForFile: Objective-C instance method.

 o performFileOperation
 public final native int performFileOperation(String operation,
                                              String source,
                                              String destination,
                                              Array files)
A wrapper for the - performFileOperation:source:destination:files: Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index