org.homeunix.thecave.moss.util.apple
Class Application

java.lang.Object
  extended by 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

Method Summary
 void addAboutMenuItem()
           
 void addApplicationListener(ApplicationAdapter adapter)
           
 void addPreferencesMenuItem()
           
static Application getApplication()
           
 boolean getEnabledAboutMenu()
           
 boolean getEnabledPreferencesMenu()
           
 MossFrame getHiddenFrame()
           
 boolean isAboutMenuItemPresent()
           
 boolean isPreferencesMenuItemPresent()
           
 void removeAboutMenuItem()
           
 void removeApplicationListener(ApplicationAdapter adapter)
           
 void removePreferencesMenuItem()
           
 void setEnabledAboutMenu(boolean arg0)
           
 void setEnabledPreferencesMenu(boolean arg0)
           
 void setFramessMenuBar(MossMenuBar menuBar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()