nl.lxtreme.ols.util
Interface HostInfo
- All Known Implementing Classes:
- HostUtils
public interface HostInfo
Provides information about the host the application is currently running
on.
isLinux
boolean isLinux()
- Returns:
true
if the running host is (any form of) Linux,
false
otherwise.
isMacOS
boolean isMacOS()
- Returns:
true
if the running host is Mac OSX,
false
otherwise.
isSolaris
boolean isSolaris()
- Returns:
true
if the running host is Solaris,
false
otherwise.
isUnix
boolean isUnix()
- Returns:
true
if the running host is any form of Unix, that
is, Linux, Solaris, and so on, false
otherwise.
isWindows
boolean isWindows()
- Returns:
true
if the running host is Windows,
false
otherwise.
needsAboutMenuItem
boolean needsAboutMenuItem()
- Returns:
true
if an explicit about menu item needs to be
added to a UI created on the running host, false
if
the running host already provides an about menu item by default.
needsExitMenuItem
boolean needsExitMenuItem()
- Returns:
true
if an explicit exit menu item needs to be added
to a UI created on the running host, false
if the
running host already provides an exit menu item by default.
needsPreferencesMenuItem
boolean needsPreferencesMenuItem()
- Returns:
true
if an explicit preferences menu item needs to
be added to a UI created on the running host, false
if the running host already provides a preferences menu item by
default.
Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.