de.sciss.desktop

Desktop

object Desktop

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Desktop
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Listener = PartialFunction[Update, Unit]

  2. case class OpenFiles(search: Option[String], files: List[File]) extends Update with Product with Serializable

    One or several files which are associated with the application were opened from the desktop environment.

  3. sealed trait Update extends AnyRef

    The type of updates dispatched by this desktop model to instances registered via addListener.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object ApplicationActivated extends Update with Product with Serializable

    The application was activated or brought to the front.

  7. object ApplicationDeactivated extends Update with Product with Serializable

    The application was deactivated or moved to the background.

  8. object ApplicationHidden extends Update with Product with Serializable

    The application and its windows were hidden.

  9. object ApplicationShown extends Update with Product with Serializable

    The application and its windows were made visible.

  10. def addListener(pf: Listener): pf.type

    Registers a listener for desktop and application events.

    Registers a listener for desktop and application events. The listener receives update of type Update.

    pf

    the partial reaction function

    returns

    pf for convenience

  11. def addQuitAcceptor(accept: ⇒ Future[Unit]): () ⇒ Future[Unit]

    Adds a veto function invoked when calling mayQuit.

    Adds a veto function invoked when calling mayQuit. The function should return true if it is ok to quit, and false if not (for example, because a document is dirty and a confirmation dialog was cancelled).

    accept

    the function to invoke when attempting to quit.

    returns

    the function argument for convenience

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def browseURI(uri: URI): Unit

    Launches the default browser to display a URI.

    Launches the default browser to display a URI.

    uri

    the URI to be displayed in the user default browser

    See also

    java.awt.Desktop#browse

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def composeMail(uri: Option[URI] = None): Unit

    Launches the mail composing window of the user default mail client.

    Launches the mail composing window of the user default mail client.

    uri

    the specified mailto: URI, or None to open the mail composing window without a specific address

    See also

    java.awt.Desktop#mail(URI)

  16. def editFile(file: File): Unit

    Launches the associated editor application and opens a file for editing.

    Launches the associated editor application and opens a file for editing.

    file

    the file to be opened for editing

    See also

    java.awt.Desktop#edit

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val isLinux: Boolean

    true when running the application on a Linux system.

  24. val isMac: Boolean

    true when running the application on a Mac (OS X) system.

  25. val isWindows: Boolean

    true when running the application on a Windows system.

  26. def mayQuit(): Future[Unit]

    Traverses the registered quit interceptors.

    Traverses the registered quit interceptors. If all of them accept the quit action, successfully completes the future. If any of them refuses the request, aborts the future with failure.

  27. def moveFileToTrash(file: File): Unit

    Tries to move a file to the plaform's symbolic trash can.

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def openFile(file: File): Unit

    Launches the associated (external) application to open the file.

    Launches the associated (external) application to open the file.

    file

    the file to be opened with the associated application

    See also

    java.awt.Desktop#open

  32. def printFile(file: File): Unit

    Prints a file with the native desktop printing facility, using the associated application's print command.

    Prints a file with the native desktop printing facility, using the associated application's print command.

    file

    the file to be printed

    See also

    java.awt.Desktop#print

  33. def removeListener(pf: Listener): Unit

  34. def removeQuitAcceptor(accept: () ⇒ Future[Unit]): Unit

  35. def requestForeground(allWindows: Boolean = false): Unit

    Requests that the application be brought to the foreground.

    Requests that the application be brought to the foreground.

    allWindows

    if true then all of the application's windows should be made visible and brought to the foreground, if false only (the most recent?) one window is affected.

  36. def requestUserAttention(repeat: Boolean = false): Unit

    Requests that the desktop environment signalize that the user should pay attention to the application.

    Requests that the desktop environment signalize that the user should pay attention to the application.

    repeat

    if true, the signalization is continuous until the user confirms the request, if false the signalization is a one time action and less intrusive

  37. def revealFile(file: File): Unit

    Reveals a file in the platform's desktop environment.

    Reveals a file in the platform's desktop environment. On OS X this shows the file in the Finder.

  38. def setDockBadge(label: Option[String]): Unit

    Marks the application's icon in the desktop environment's dock with a "badge" string.

    Marks the application's icon in the desktop environment's dock with a "badge" string. For example, a mail application may want to indicate the number of unread messages.

    label

    the text label to display, or None to remove the current badge.

  39. def setDockImage(image: Image): Unit

    Sets the application's appearance in the desktop environment's dock.

    Sets the application's appearance in the desktop environment's dock. This can also be used to create non-textual badges or overlays (e.g. a progress indicator).

    image

    the new image to use in the dock

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped