org.homeunix.thecave.moss.util.apple
Class Application
java.lang.Object
org.homeunix.thecave.moss.util.apple.Application
public class Application
- extends java.lang.Object
Wrapper around the Apple specific classes used to interface with Buddi. This allows
applications to run on non Apple systems, as we don't try loading this class (and by
extension, the classes provided by Apple), unless we are on a Mac system.
We also include a Mac-specific call to set the frameless menu bar. This idea was based
loosely off of MRJAdapter, but modified to fit my needs.
The correct way to use this class is to check if we are on a Mac, and if so,
call one or more of these methods.
- Author:
- wyatt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getApplication
public static Application getApplication()
addAboutMenuItem
public void addAboutMenuItem()
addApplicationListener
public void addApplicationListener(ApplicationAdapter adapter)
addPreferencesMenuItem
public void addPreferencesMenuItem()
getEnabledAboutMenu
public boolean getEnabledAboutMenu()
getEnabledPreferencesMenu
public boolean getEnabledPreferencesMenu()
isAboutMenuItemPresent
public boolean isAboutMenuItemPresent()
isPreferencesMenuItemPresent
public boolean isPreferencesMenuItemPresent()
removeAboutMenuItem
public void removeAboutMenuItem()
removeApplicationListener
public void removeApplicationListener(ApplicationAdapter adapter)
removePreferencesMenuItem
public void removePreferencesMenuItem()
setEnabledAboutMenu
public void setEnabledAboutMenu(boolean arg0)
setEnabledPreferencesMenu
public void setEnabledPreferencesMenu(boolean arg0)
setFramessMenuBar
public void setFramessMenuBar(MossMenuBar menuBar)
getHiddenFrame
public MossFrame getHiddenFrame()