public class PlatformHookUnixoid extends Object implements PlatformHook
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PlatformHookUnixoid.LinuxReleaseInfo |
| Modifier and Type | Field and Description |
|---|---|
private String |
osDescription |
| Constructor and Description |
|---|
PlatformHookUnixoid() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
askUpdateJava(String version) |
protected String |
buildOSDescription() |
boolean |
canFullscreen()
Determines if the platform allows full-screen.
|
String |
getDefaultStyle()
Returns the default LAF to be used on this platform to look almost as a native application.
|
String |
getJavaPackageDetails()
Get the Java package name including detailed version.
|
String |
getOSDescription()
Returns a detailed OS description (at least family + version).
|
void |
initSystemShortcuts()
The initSystemShortcuts hook will be called by the
Shortcut class after the modifier groups have been read
from the config, but before any shortcuts are read from
it or registered from within the application.
|
String |
makeTooltip(String name,
Shortcut sc)
This should work for all platforms.
|
void |
openUrl(String url)
The openURL hook will be used to open an URL in the
default web browser.
|
void |
preStartupHook()
The preStartupHook will be called extremly early.
|
boolean |
rename(File from,
File to)
Renames a file.
|
void |
startupHook()
The startupHook will be called early, but after the GUI
setup has started.
|
private String osDescription
public PlatformHookUnixoid()
public void preStartupHook()
PlatformHookpreStartupHook in interface PlatformHookpublic void startupHook()
PlatformHookstartupHook in interface PlatformHookpublic void openUrl(String url) throws IOException
PlatformHookopenUrl in interface PlatformHookurl - The URL to openIOException - if any I/O error occurspublic void initSystemShortcuts()
PlatformHookinitSystemShortcuts in interface PlatformHookpublic String makeTooltip(String name, Shortcut sc)
makeTooltip in interface PlatformHookname - Tooltip text to displaysc - Shortcut associated (to display accelerator between parenthesis)public String getDefaultStyle()
PlatformHookgetDefaultStyle in interface PlatformHookpublic boolean canFullscreen()
PlatformHookcanFullscreen in interface PlatformHooktrue if full screen is allowed, false otherwisepublic boolean rename(File from, File to)
PlatformHookrename in interface PlatformHookfrom - Source fileto - Target filetrue if the file has been renamed, false otherwisepublic String getJavaPackageDetails()
protected String buildOSDescription()
public String getOSDescription()
PlatformHookgetOSDescription in interface PlatformHookprotected void askUpdateJava(String version)