Class PlatformMacOS


  • public class PlatformMacOS
    extends Platform
    Ueberschrieben fuer MacOS-spezfisches Verhalten.
    • Constructor Detail

      • PlatformMacOS

        public PlatformMacOS()
    • Method Detail

      • mapSWTKey

        public int mapSWTKey​(int key)
        Description copied from class: Platform
        Mappt OS-spezifisch einzelne Keys auf andere. In der Default-Implementierung wird hier 1:1 er Eingabewert zurueckgegeben. In PlatformMacOS aber wird zBsp SWT.ALT gegen SWT.COMMAND ersetzt. Siehe https://github.com/willuhn/jameica/pull/6
        Overrides:
        mapSWTKey in class Platform
        Parameters:
        key - der Key.
        Returns:
        der gemappte Key.
        See Also:
        Platform.mapSWTKey(int)
      • mapSWTShortcut

        public java.lang.String mapSWTShortcut​(java.lang.String shortcut)
        Description copied from class: Platform
        Wie oben. Jedoch fuer String-Repraesentationen von Shortcuts. Parameter ist z.Bsp. "ALT+S". Auf OS wird das auf "COMMAND+S" gemappt.
        Overrides:
        mapSWTShortcut in class Platform
        Parameters:
        shortcut - der Shortcut.
        Returns:
        der gemappte Shortcut.
        See Also:
        Platform.mapSWTShortcut(java.lang.String)