Method Summary |
|
protected JemmyProperties | cloneThis() Creates an exact copy on this instance. |
public boolean | contains(String name) Checks if "name" propery currently has a value.
Parameters: name - Property name. |
public void | copyTo(JemmyProperties properties) Copy all properties from this instance into another. |
public static String | getBuild() Returns build (like 20011231 (yyyymmdd)). |
public BundleManager | getBundleManager() Returns bundle manager. |
public CharBindingMap | getCharBindingMap() Returns char binding map. |
public static BundleManager | getCurrentBundleManager() Just like getProperties().getBundleManager(). |
public static CharBindingMap | getCurrentCharBindingMap() Just like getProperties().getCharBindingMap(). |
public static int | getCurrentDispatchingModel() Returns the current dispatching model. |
public static int | getCurrentDragAndDropStepLength() Returns the current drag and drop step length value. |
public static String[] | getCurrentKeys() Returns the current key values. |
public static TestOut | getCurrentOutput() Just like getProperties().getOutput(). |
public static Object | getCurrentProperty(String propertyName) Just like getProperties().getProperty(propertyName). |
public static String | getCurrentResource(String key) Just like getProperties().getBundleManager().getResource(key).
Parameters: key - a resource key. |
public static String | getCurrentResource(String bundleID, String key) Just like getProperties().getBundleManager().getResource(bundleID, key). |
public static long | getCurrentTimeout(String name) Just like getProperties().getTimeouts().getTimeout(name). |
public static Timeouts | getCurrentTimeouts() Just like getProperties().getTimeouts(). |
public static int | getDefaultDispatchingModel() Returns default event dispatching model. |
public int | getDispatchingModel() Returns the dispatching model. |
public int | getDragAndDropStepLength() Returns the drag and drop step length value. |
public static String | getFullVersion() Returns full version string (like 1.0.1-20011231). |
public String[] | getKeys() Returns the key values. |
public static String | getMajorVersion() Returns major version (like 1.0). |
public static String | getMinorVersion() Returns minor version (like 1). |
public TestOut | getOutput() Returns output. |
public static JemmyProperties | getProperties() Peeks upper JemmyProperties instance from stack. |
public Object | getProperty(String name) Returns the property value.
Parameters: name - Property name. |
public String | getResource(String key) Returns resource value.
Parameters: key - Resource key. |
public String | getResource(String bundleID, String key) Returns resource value from the specified bundle.
Parameters: bundleID - Id of a bundle to get resource from. Parameters: key - Resource key. |
public long | getTimeout(String name) Returns a timeouts value. |
public Timeouts | getTimeouts() Returns timeouts. |
public static String | getVersion() Returns version string (like 1.0.1). |
public void | init() Inits properties and dispatching model from system environment variables. |
public static long | initCurrentTimeout(String name, long newValue) Just like getProperties().getTimeouts().initTimeout(name, newValue). |
public void | initDispatchingModel(boolean queue, boolean robot, boolean shortcut) Initializes dispatching model. |
public void | initDispatchingModel(boolean queue, boolean robot, boolean shortcut, boolean smooth) Initializes dispatching model. |
public void | initDispatchingModel(boolean queue, boolean robot) Initializes dispatching model. |
public void | initDispatchingModel() Initializes dispatching model.
Uses "jemmy.queue_dispatching" and "jemmy.robot_dispatching" system properties
to determine what model should be used.
Possible values for the both properties:
"off" - switch mode off. |
public void | initProperties(String prop_file) Method to initialize timeouts and resources.
Parameters: prop_file - File to get filenames from. |
public void | initProperties() Method to initialize timeouts and resources. |
public long | initTimeout(String name, long newValue) Inits a timeouts value. |
public static void | main(String[] argv) Prints full version into satndart output. |
public static JemmyProperties | pop() Pops last pushed properties from the properties stack. |
public static JemmyProperties | push() Creates a copy of the current JemmyProperties object
and pushes it into the properties stack. |
protected static JemmyProperties | push(JemmyProperties props) Pushes properties stack. |
public static Object | removeCurrentProperty(String propertyName) Removes a property from current properties list.
Parameters: propertyName - a property key. |
public Object | removeProperty(String name) Removes the property.
Parameters: name - A name of the property to be removed. |
public BundleManager | setBundleManager(BundleManager resources) Changes bundle manager.
Parameters: resources - new bundle manager. |
public CharBindingMap | setCharBindingMap(CharBindingMap map) Changes char binding map.
Parameters: map - new char binding map. |
public static BundleManager | setCurrentBundleManager(BundleManager resources) Just like getProperties().setBundleManager(resources). |
public static CharBindingMap | setCurrentCharBindingMap(CharBindingMap map) Just like getProperties().setCharBindingMap(map).
Parameters: map - new CharBindingMap. |
public static int | setCurrentDispatchingModel(int model) Defines event dispatching model.
If (model & ROBOT_MODEL_MASK) != 0 java.awt.Robot class
is used to reproduce user actions, otherwise actions
are reproduced by event posting.
If (model & QUEUE_MODEL_MASK) != 0 actions are reproduced through
event queue.
Parameters: model - New dispatching model value. |
public static int | setCurrentDragAndDropStepLength(int model) Specifies the current drag and drop step length value.
Parameters: model - Pixel count to move mouse during one drag'n'drop step. |
public static TestOut | setCurrentOutput(TestOut out) Just like getProperties().setOutput(out). |
public static Object | setCurrentProperty(String propertyName, Object propertyValue) Just like getProperties().setProperty(propertyName, propertyValue). |
public static long | setCurrentTimeout(String name, long newValue) Just like getProperties().getTimeouts().setTimeout(name, newValue). |
public static Timeouts | setCurrentTimeouts(Timeouts to) Just like getProperties().setTimeouts(to). |
public int | setDispatchingModel(int model) Specifies the dispatching model value.
Parameters: model - New dispatching model value. |
public int | setDragAndDropStepLength(int length) Specifies the drag and drop step length value.
Parameters: length - Pixel count to move mouse during one drag'n'drop step. |
public TestOut | setOutput(TestOut out) Changes output.
Parameters: out - new output. |
public Object | setProperty(String name, Object newValue) Saves object as a static link to be used by other objects.
Parameters: name - Property name. |
public long | setTimeout(String name, long newValue) Changes a timeouts value. |
public Timeouts | setTimeouts(Timeouts to) Changes timeouts.
Parameters: to - new timeouts. |