java.lang.Object
org.scubatoolkit.utils.ScubaUtils
- public class ScubaUtils
- extends java.lang.Object
This class provides some general utility functions for use
* throughout the application. These include - internationalisation....
*
* @author Lee Turner, Javier Vilalta
* @version 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceBundlePath
private static java.lang.String resourceBundlePath
- Path to where the resource bunles.
scubaResources
private static java.util.ResourceBundle scubaResources
- Holds the resourcebundle for the application.
ScubaUtils
public ScubaUtils()
getProperty
public static java.lang.String getProperty(java.lang.String propertyName)
- Gets the specified property from the scuba toolkit resource
* bundle. Currently uses the default Locale to determine which
* resource bundle to use. This could be easily changed to allow
* the user to specify which language they want to use via the
* use of some preferences mechanism.
*
* @param propertyName The 'key' of the property who's value you want.
* @return The property value
isDouble
public static boolean isDouble(java.lang.String string)
isInteger
public static boolean isInteger(java.lang.String string)
getItemIndex
public static int getItemIndex(double[] list,
double item,
boolean roundDown)