|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlatformSupport
Central interface for all platform-specific code in DrJava. A default platform-neutral implementation is provided in DefaultPlatform.
DefaultPlatform
Method Summary | |
---|---|
void |
afterUISetup(Action about,
Action prefs,
Action quit)
Hook for performing general UI setup. |
void |
beforeUISetup()
Hook for performing general UI setup. |
String |
getJavaSpecVersion()
Returns the current Java specification version. |
boolean |
has13ToolsJar()
Returns true if the classpath's tools.jar is from version 1.3. |
boolean |
has14ToolsJar()
Returns true if the classpath's tools.jar is from version 1.4. |
boolean |
isMacPlatform()
Returns whether this is a Mac OS X platform. |
boolean |
isUsingSystemLAF()
Utility method to determine if the current Swing look and feel is the platform-specific look and feel for the client platform. |
boolean |
isWindowsPlatform()
Returns whether this is a Windows platform. |
boolean |
openURL(URL address)
Utility method for opening a URL in a browser in a platform-specific way. |
void |
setMnemonic(AbstractButton obj,
char mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonic(AbstractButton obj,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonic(ButtonModel obj,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonicAt(JTabbedPane obj,
int tabIndex,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
Method Detail |
---|
boolean isMacPlatform()
boolean isWindowsPlatform()
String getJavaSpecVersion()
boolean has13ToolsJar()
boolean has14ToolsJar()
boolean isUsingSystemLAF()
void beforeUISetup()
void afterUISetup(Action about, Action prefs, Action quit)
about
- the Action associated with openning the About dialogprefs
- the Action associated with openning the Preferences dialogquit
- the Action associated with quitting the DrJava applicationboolean openURL(URL address)
address
- the URL to open
void setMnemonic(AbstractButton obj, int mnemonic)
obj
- the component whose mnemonic should be setmnemonic
- the key code which represents the mnemonicAbstractButton.setMnemonic(int)
,
KeyEvent
void setMnemonic(AbstractButton obj, char mnemonic)
obj
- the component whose mnemonic should be setmnemonic
- a char specifying the mnemonic valueAbstractButton.setMnemonic(char)
void setMnemonic(ButtonModel obj, int mnemonic)
obj
- the component whose mnemonic should be setmnemonic
- the key code which represents the mnemonicButtonModel.setMnemonic(int)
,
KeyEvent
void setMnemonicAt(JTabbedPane obj, int tabIndex, int mnemonic)
obj
- the component whose mnemonic should be settabIndex
- the index of the tab that the mnemonic refers tomnemonic
- the key code which represents the mnemonicJTabbedPane.setMnemonicAt(int,int)
,
KeyEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |