abbot.script
Class Annotation
java.lang.Object
|
+--abbot.script.Step
|
+--abbot.script.Annotation
- All Implemented Interfaces:
- Serializable, Tags, XMLifiable
- public class Annotation
- extends Step
Provides a method for communicating a message on the display. May display
for a reasonable delay or require user input to continue.
Usage:
<annotation [userDismiss="true"] >Text or HTML message</annotation>
Properties:
abbot.annotation.min_delay: minimum time to display an annotation
abbot.annotation.delay: per-word time to display an annotation
- See Also:
- Serialized Form
Fields inherited from interface abbot.script.Tags |
TAG_ACTION, TAG_ARGS, TAG_ASSERT, TAG_AWTTESTSCRIPT, TAG_CALL, TAG_CLASS, TAG_CLASSPATH, TAG_COMMENT, TAG_COMPONENT, TAG_COUNT, TAG_DELEGATE, TAG_DESC, TAG_DOCBASE, TAG_EVENT, TAG_FILENAME, TAG_FORKED, TAG_HEIGHT, TAG_HORDER, TAG_ID, TAG_INDEX, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARAMS, TAG_PARENT, TAG_POLL_INTERVAL, TAG_PROPERTY, TAG_SAMPLE, TAG_SCRIPT, TAG_SEQUENCE, TAG_SLOW, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_VMARGS, TAG_VORDER, TAG_WAIT, TAG_WIDTH, TAG_WINDOW, TAG_X, TAG_Y |
Methods inherited from class abbot.script.Step |
addAttributes, createAttributeMap, createStep, createStep, getDescription, getFinder, getResolver, parseStepAttributes, resolve, resolveClass, resolveTester, run, setDescription, setScriptError, simpleClassName, toEditableString, toString, toXML, toXMLString, usage, usage |
Annotation
public Annotation(Resolver resolver,
org.jdom.Element el,
Map attributes)
throws InvalidScriptException
Annotation
public Annotation(Resolver resolver,
String description)
static void ()
isShowing
public boolean isShowing()
showAnnotation
public void showAnnotation()
getDelayTime
public long getDelayTime()
runStep
public void runStep()
throws Throwable
- Display a non-modal window.
- Overrides:
runStep
in class Step
getDefaultDescription
protected String getDefaultDescription()
- Description copied from class:
Step
- Return a reasonable default description for this script step.
This value is used in the absence of an explicit description.
- Overrides:
getDefaultDescription
in class Step
getUsage
public String getUsage()
- Description copied from class:
Step
- Provide a usage String for this step.
- Overrides:
getUsage
in class Step
getXMLTag
public String getXMLTag()
- Description copied from class:
Step
- Define the XML tag to use for this script step.
- Overrides:
getXMLTag
in class Step
addContent
protected org.jdom.Element addContent(org.jdom.Element el)
- Description copied from class:
Step
- Override if the step actually has some contents. In most cases, it
won't.
- Overrides:
addContent
in class Step
getAttributes
public Map getAttributes()
- Description copied from class:
Step
- Attributes to save in script.
- Overrides:
getAttributes
in class Step
getUserDismiss
public boolean getUserDismiss()
setUserDismiss
public void setUserDismiss(boolean state)
getRelativeTo
public String getRelativeTo()
setRelativeTo
public void setRelativeTo(String id)
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getText
public String getText()
setText
public void setText(String text)
setDisplayLocation
public void setDisplayLocation(Point pt)
getDisplayLocation
public Point getDisplayLocation()
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on