com.mtp.pounder
Class PounderPrefs

java.lang.Object
  |
  +--com.mtp.pounder.PounderPrefs

public class PounderPrefs
extends Object

The preferences class.

Author:
Matthew Pekar

Field Summary
static boolean DEFAULT_DISPLAY_SCRIPT
           
static int DEFAULT_FAILED_PLAYBACK_DELAY
           
static boolean DEFAULT_FAST_PLAYBACK_ENABLED
           
static boolean DEFAULT_IGNORE_UNNAMED
           
static boolean DEFAULT_ITEM_DELAY_ENABLED
           
static int DEFAULT_PLAYBACK_ATTEMPTS
           
static boolean DEFAULT_SAVE_PREFS_ON_EXIT
           
static boolean DEFAULT_USE_SYSTEM_CLASS_LOADER
           
protected  PointModel defaultTestWindowLocation
           
static int DISPLAY_SCRIPT_CHANGED
           
protected  boolean displayScript
           
protected  EventDetector eventDetector
           
protected  long failedPlaybackDelay
           
protected  boolean fastPlaybackEnabled
          Variables dealing with playback.
protected  File homeDirectory
          The directory where files should first be searched from.
protected  boolean ignoreUnnamed
           
protected  boolean itemDelayEnabled
           
protected  Listeners listeners
           
static int PLAYBACK_OPTIONS_CHANGED
           
protected  int playbackAttempts
           
protected  boolean savePrefsOnExit
          Whether to save the model's PounderPrefs on exit.
protected  boolean useSystemClassLoader
          Whether to use the system class loader instead of a DynamicClassLoader.
protected  VerbatimRecordingOptions verbatimRecordingOptions
           
 
Constructor Summary
PounderPrefs()
           
PounderPrefs(PounderPrefs pp)
           
 
Method Summary
 void addListener(PounderPrefsListener l)
           
 boolean equals(Object o)
           
protected  void fireChanged(int what)
           
 PointModel getDefaultTestWindowLocation()
           
 boolean getDisplayScript()
           
 EventDetector getEventDetector()
           
 long getFailedPlaybackDelay()
           
 boolean getFastPlaybackEnabled()
           
 File getHomeDirectory()
           
 boolean getIgnoreUnnamed()
           
 boolean getItemDelayEnabled()
           
 int getPlaybackAttempts()
           
 boolean getSavePrefsOnExit()
           
 boolean getUseSystemClassLoader()
           
 VerbatimRecordingOptions getVerbatimRecordingOptions()
           
 void removeListener(PounderPrefsListener l)
           
 void retrieveData(PounderPrefs p)
          Update our data to be the same as the given PounderPrefs.
 PounderPrefs retrieveDataFromSystem()
          Retrieve data from preferences stored on system using the Preferences for our class and return self.
 void saveDataToSystem()
          Store our data to the system using the Preferences for our class.
 void setDisplayScript(boolean b)
           
 void setFailedPlaybackDelay(long amount)
          Set the value (in milliseconds) for delay after a playback failure.
 void setFastPlaybackEnabled(boolean whether)
          Set sensible values for a fast playback if desired.
 void setHomeDirectory(File f)
           
 void setIgnoreUnnamed(boolean whether)
           
 void setItemDelayEnabled(boolean b)
          Set whether item delay is enabled.
 void setPlaybackAttempts(int count)
          Set the number of attempts to playback a failing item before halting the playback session.
 void setPlaybackOptions(boolean itemDelayEnabled, int playbackAttempts, long failedPlaybackDelay)
           
 void setSavePrefsOnExit(boolean whether)
           
 void setUseSystemClassLoader(boolean whether)
           
 void setVerbatimRecordingOptions(VerbatimRecordingOptions vro)
          Actually just updates current values, rather than changing the pointer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISPLAY_SCRIPT_CHANGED

public static final int DISPLAY_SCRIPT_CHANGED
See Also:
Constant Field Values

PLAYBACK_OPTIONS_CHANGED

public static final int PLAYBACK_OPTIONS_CHANGED
See Also:
Constant Field Values

DEFAULT_FAST_PLAYBACK_ENABLED

public static boolean DEFAULT_FAST_PLAYBACK_ENABLED

DEFAULT_ITEM_DELAY_ENABLED

public static boolean DEFAULT_ITEM_DELAY_ENABLED

DEFAULT_IGNORE_UNNAMED

public static boolean DEFAULT_IGNORE_UNNAMED

DEFAULT_USE_SYSTEM_CLASS_LOADER

public static boolean DEFAULT_USE_SYSTEM_CLASS_LOADER

DEFAULT_DISPLAY_SCRIPT

public static boolean DEFAULT_DISPLAY_SCRIPT

DEFAULT_SAVE_PREFS_ON_EXIT

public static boolean DEFAULT_SAVE_PREFS_ON_EXIT

DEFAULT_PLAYBACK_ATTEMPTS

public static int DEFAULT_PLAYBACK_ATTEMPTS

DEFAULT_FAILED_PLAYBACK_DELAY

public static int DEFAULT_FAILED_PLAYBACK_DELAY

defaultTestWindowLocation

protected PointModel defaultTestWindowLocation

eventDetector

protected EventDetector eventDetector

verbatimRecordingOptions

protected VerbatimRecordingOptions verbatimRecordingOptions

listeners

protected volatile Listeners listeners

displayScript

protected volatile boolean displayScript

savePrefsOnExit

protected volatile boolean savePrefsOnExit
Whether to save the model's PounderPrefs on exit.


useSystemClassLoader

protected volatile boolean useSystemClassLoader
Whether to use the system class loader instead of a DynamicClassLoader.


homeDirectory

protected File homeDirectory
The directory where files should first be searched from.


fastPlaybackEnabled

protected volatile boolean fastPlaybackEnabled
Variables dealing with playback.


itemDelayEnabled

protected volatile boolean itemDelayEnabled

ignoreUnnamed

protected volatile boolean ignoreUnnamed

playbackAttempts

protected volatile int playbackAttempts

failedPlaybackDelay

protected volatile long failedPlaybackDelay
Constructor Detail

PounderPrefs

public PounderPrefs()

PounderPrefs

public PounderPrefs(PounderPrefs pp)
Method Detail

retrieveDataFromSystem

public PounderPrefs retrieveDataFromSystem()
Retrieve data from preferences stored on system using the Preferences for our class and return self.


saveDataToSystem

public void saveDataToSystem()
Store our data to the system using the Preferences for our class.


retrieveData

public void retrieveData(PounderPrefs p)
Update our data to be the same as the given PounderPrefs.


getIgnoreUnnamed

public boolean getIgnoreUnnamed()

setIgnoreUnnamed

public void setIgnoreUnnamed(boolean whether)

setHomeDirectory

public void setHomeDirectory(File f)

getHomeDirectory

public File getHomeDirectory()

getUseSystemClassLoader

public boolean getUseSystemClassLoader()

setSavePrefsOnExit

public void setSavePrefsOnExit(boolean whether)

getSavePrefsOnExit

public boolean getSavePrefsOnExit()

setUseSystemClassLoader

public void setUseSystemClassLoader(boolean whether)

getFastPlaybackEnabled

public boolean getFastPlaybackEnabled()

setFastPlaybackEnabled

public void setFastPlaybackEnabled(boolean whether)
Set sensible values for a fast playback if desired.


setPlaybackOptions

public void setPlaybackOptions(boolean itemDelayEnabled,
                               int playbackAttempts,
                               long failedPlaybackDelay)

setItemDelayEnabled

public void setItemDelayEnabled(boolean b)
Set whether item delay is enabled.


setPlaybackAttempts

public void setPlaybackAttempts(int count)
Set the number of attempts to playback a failing item before halting the playback session.


setFailedPlaybackDelay

public void setFailedPlaybackDelay(long amount)
Set the value (in milliseconds) for delay after a playback failure.


getPlaybackAttempts

public int getPlaybackAttempts()

getFailedPlaybackDelay

public long getFailedPlaybackDelay()

getItemDelayEnabled

public boolean getItemDelayEnabled()

getDisplayScript

public boolean getDisplayScript()

setDisplayScript

public void setDisplayScript(boolean b)

addListener

public void addListener(PounderPrefsListener l)

removeListener

public void removeListener(PounderPrefsListener l)

fireChanged

protected void fireChanged(int what)

getEventDetector

public EventDetector getEventDetector()

getDefaultTestWindowLocation

public PointModel getDefaultTestWindowLocation()

getVerbatimRecordingOptions

public VerbatimRecordingOptions getVerbatimRecordingOptions()

setVerbatimRecordingOptions

public void setVerbatimRecordingOptions(VerbatimRecordingOptions vro)
Actually just updates current values, rather than changing the pointer.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002 Matthew Pekar. All Rights Reserved.