public final class PlatformInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SWING
GUI toolkit identifier for Swing.
|
static java.lang.String |
SWT
GUI toolkit identifier for SWT.
|
| Constructor and Description |
|---|
PlatformInfo(java.util.Collection toolkits)
Create a PlatformInfo object for the specified toolkits.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPreferredToolkit()
Get the preferred toolkit for this extension.
|
boolean |
isToolkitSupported(java.lang.String toolkit)
Gets whether a specific toolkit is supported.
|
public static final java.lang.String SWING
public static final java.lang.String SWT
public PlatformInfo(java.util.Collection toolkits)
toolkits - all toolkits supported by this extension. The first toolkit
in the collection should be the preferred toolkit. Must not be null
or empty.public java.lang.String getPreferredToolkit()
public boolean isToolkitSupported(java.lang.String toolkit)
toolkit - to the toolkit to check for support. Either SWING or SWT.