public interface HostInfo
Modifier and Type | Method and Description |
---|---|
boolean |
isLinux() |
boolean |
isMacOS() |
boolean |
isSolaris() |
boolean |
isUnix() |
boolean |
isWindows() |
boolean |
needsAboutMenuItem() |
boolean |
needsExitMenuItem() |
boolean |
needsPreferencesMenuItem() |
boolean isLinux()
true
if the running host is (any form of) Linux,
false
otherwise.boolean isMacOS()
true
if the running host is Mac OSX,
false
otherwise.boolean isSolaris()
true
if the running host is Solaris,
false
otherwise.boolean isUnix()
true
if the running host is any form of Unix, that
is, Linux, Solaris, and so on, false
otherwise.boolean isWindows()
true
if the running host is Windows,
false
otherwise.boolean needsAboutMenuItem()
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.boolean needsExitMenuItem()
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.boolean needsPreferencesMenuItem()
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 © 2015 L'Xtreme IT consultancy. All rights reserved.