org.faceless.pdf2.viewer2.feature

## Class AppleSupport

- java.lang.Object
- - org.faceless.pdf2.viewer2.ViewerFeature
  - - org.faceless.pdf2.viewer2.feature.AppleSupport

-     public class AppleSupport
      extends ViewerFeature

  This feature can be added to the viewer on Mac OS X for a more "Mac-like" interface. Some of the menu items will be moved around to match OS X interface guidelines, and rotate and swipe gestures can be used to rotate and switch between pages. Adding this class on a non-OS X system has no effect.

  The following initialization parameters can be specified to configure this feature.

  dockIcon | `true` or `false`, for `setDockIcon(boolean)`, or the path to an image resource to use that instead of the default - the value is passed to `setDockIconResource(java.lang.String)`.
  moveMenus | `true` or `false`, for `setMoveMenus(boolean)`

  The name of this feature is AppleSupport

  This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.

  Since:
    2.11.1

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AppleSupport()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(PDFViewer viewer)` Called when the feature is first added to a viewer
    `void` | `setDockIcon(boolean dockicon)` Set whether to set the dock icon.
    `void` | `setDockIconResource(String resourcename)` Set the path to the resource to use for the dock icon.
    `void` | `setMoveMenus(boolean menus)` Set whether to move the menus from the application window to the System menu bar.

    - ### Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature

      `getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AppleSupport

          public AppleSupport()

  - ### Method Detail

    - #### setMoveMenus

          public void setMoveMenus(boolean menus)

      Set whether to move the menus from the application window to the System menu bar.
      Parameters:
        `menus` - whether to move the menus or not
      Since:
        2.11.6

    - #### setDockIcon

          public void setDockIcon(boolean dockicon)

      Set whether to set the dock icon. The default is true.
      Parameters:
        `dockicon` - whether to customize the dock icon
      Since:
        2.11.6

    - #### setDockIconResource

          public void setDockIconResource(String resourcename)

      Set the path to the resource to use for the dock icon. The default is "resources/bfodockicon.png" - it will be resolved against this class.
      Since:
        2.16

    - #### initialize

          public void initialize(PDFViewer viewer)

      Description copied from class: `ViewerFeature`
      Called when the feature is first added to a viewer
      Overrides:
        `initialize` in class `ViewerFeature`

Copyright © 2001-2015 Big Faceless Organization