|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlatformSupport
The central interface for all platform-specific code in DrJava. A default platform-neutral implementation is provided in DefaultPlatform.
DefaultPlatform| Method Summary | |
|---|---|
void |
afterUISetup(javax.swing.Action about,
javax.swing.Action prefs,
javax.swing.Action quit)
Hook for performing general UI setup. |
boolean |
areDrJavaFileExtensionsRegistered()
|
void |
beforeUISetup()
Hook for performing general UI setup. |
boolean |
canRegisterFileExtensions()
|
java.lang.String |
getJavaSpecVersion()
Returns the current Java specification version. |
boolean |
isJavaFileExtensionRegistered()
|
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(java.net.URL address)
Utility method for opening a URL in a browser in a platform-specific way. |
boolean |
registerDrJavaFileExtensions()
Register .drjava and .djapp file extensions. |
boolean |
registerJavaFileExtension()
Register .java file extension. |
void |
setMnemonic(javax.swing.AbstractButton obj,
char mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonic(javax.swing.AbstractButton obj,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonic(javax.swing.ButtonModel obj,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
void |
setMnemonicAt(javax.swing.JTabbedPane obj,
int tabIndex,
int mnemonic)
Set the keyboard mnemonic for the component in a way that is consistent with the current platform. |
boolean |
unregisterDrJavaFileExtensions()
Unregister .drjava and .djapp file extensions. |
boolean |
unregisterJavaFileExtension()
Unregister .java file extension. |
| Method Detail |
|---|
boolean isMacPlatform()
boolean isWindowsPlatform()
java.lang.String getJavaSpecVersion()
boolean isUsingSystemLAF()
void beforeUISetup()
void afterUISetup(javax.swing.Action about,
javax.swing.Action prefs,
javax.swing.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(java.net.URL address)
address - the URL to open
void setMnemonic(javax.swing.AbstractButton obj,
int mnemonic)
obj - the component whose mnemonic should be setmnemonic - the key code which represents the mnemonicAbstractButton.setMnemonic(int),
KeyEvent
void setMnemonic(javax.swing.AbstractButton obj,
char mnemonic)
obj - the component whose mnemonic should be setmnemonic - a char specifying the mnemonic valueAbstractButton.setMnemonic(char)
void setMnemonic(javax.swing.ButtonModel obj,
int mnemonic)
obj - the component whose mnemonic should be setmnemonic - the key code which represents the mnemonicButtonModel.setMnemonic(int),
KeyEvent
void setMnemonicAt(javax.swing.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),
KeyEventboolean canRegisterFileExtensions()
boolean registerDrJavaFileExtensions()
boolean unregisterDrJavaFileExtensions()
boolean areDrJavaFileExtensionsRegistered()
boolean registerJavaFileExtension()
boolean unregisterJavaFileExtension()
boolean isJavaFileExtensionRegistered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||