|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.tools.EjsTool
public class EjsTool
Utility classes to work with Ejs at a high level
Field Summary | |
---|---|
static java.lang.String |
GET_MODEL_METHOD
|
static java.lang.String |
GET_RESOURCES_METHOD
|
Constructor Summary | |
---|---|
EjsTool()
|
Method Summary | |
---|---|
static java.util.List<?> |
ejsConfirmList(java.awt.Component _target,
java.awt.Dimension _size,
java.lang.String _message,
java.lang.String _title,
java.util.List<?> _list)
|
static java.util.List<?> |
ejsConfirmList(java.awt.Component _target,
java.awt.Dimension _size,
java.lang.String _message,
java.lang.String _title,
java.util.List<?> _list,
javax.swing.JComponent _bottomComponent)
This method receives a list of objects which it exposes to the user. |
static java.lang.String |
getPath(java.io.File _file)
Gets the path of a file in standard form. |
static java.lang.String |
getString(java.lang.String key)
|
static boolean |
hasEjsModel(java.lang.Class<?> _ejsClass)
Whether a class provides an Ejs model. |
static boolean |
runEjs(java.lang.Class<?> _ejsClass)
Runs the Ejs model corresponding to the given class. |
static void |
saveInformation(java.lang.String _home,
java.lang.String _release)
To be used by EJS version 3.47 and earlier only. |
static void |
saveInformation(java.lang.String _binDirectoryPath,
java.lang.String _sourceDirectoryPath,
java.lang.String _release)
To be used by EJS version 4.0 and later only. |
static void |
setLocale(java.util.Locale locale)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GET_MODEL_METHOD
public static final java.lang.String GET_RESOURCES_METHOD
Constructor Detail |
---|
public EjsTool()
Method Detail |
---|
public static void setLocale(java.util.Locale locale)
public static java.lang.String getString(java.lang.String key)
public static boolean hasEjsModel(java.lang.Class<?> _ejsClass)
_ejsClass
- Class
public static boolean runEjs(java.lang.Class<?> _ejsClass)
_ejsClass
- Class
public static void saveInformation(java.lang.String _home, java.lang.String _release)
_release
- Stringpublic static void saveInformation(java.lang.String _binDirectoryPath, java.lang.String _sourceDirectoryPath, java.lang.String _release)
_binDirectoryPath
- String The binary directory from which EJS was launched_consoleOptionsFilePath
- String The location of the console options file_sourceDirectoryPath
- String The source directory path_release
- String The EJS release versionpublic static java.lang.String getPath(java.io.File _file)
public static java.util.List<?> ejsConfirmList(java.awt.Component _target, java.awt.Dimension _size, java.lang.String _message, java.lang.String _title, java.util.List<?> _list)
public static java.util.List<?> ejsConfirmList(java.awt.Component _target, java.awt.Dimension _size, java.lang.String _message, java.lang.String _title, java.util.List<?> _list, javax.swing.JComponent _bottomComponent)
_target
- Component The dialog will be shown relative to this component_size
- Dimension The size of the display dialog_message
- String The message to display_title
- String The title for the display dialog_list
- java.util.List> The initial list of objects_bottomComponent
- JComponent and additional component to show at the bottom
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |