public class Annotation extends Step
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
Modifier and Type | Class and Description |
---|---|
(package private) class |
Annotation.AnnotationWindow |
(package private) class |
Annotation.WindowLock |
Modifier and Type | Field and Description |
---|---|
static String |
TAG_ANNOTATION |
static String |
TAG_USER_DISMISS |
TAG_ACTION, TAG_APPLETVIEWER, TAG_ARCHIVE, TAG_ARGS, TAG_ASSERT, TAG_AWT, TAG_AWTTESTSCRIPT, TAG_BORDER_TITLE, TAG_CALL, TAG_CLASS, TAG_CLASSPATH, TAG_CODE, TAG_CODEBASE, TAG_COMMENT, TAG_COMPONENT, TAG_COUNT, TAG_DELEGATE, TAG_DESC, TAG_DOCBASE, TAG_EVENT, TAG_EXPR, TAG_FILENAME, TAG_FIXTURE, TAG_FORKED, TAG_HEIGHT, TAG_HORDER, TAG_ICON, TAG_ID, TAG_INDEX, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LABEL, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARAMS, TAG_PARENT, TAG_POLL_INTERVAL, TAG_PROPERTY, TAG_ROOT, TAG_SAMPLE, TAG_SCRIPT, TAG_SEQUENCE, TAG_SLOW, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_TEXT, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_VMARGS, TAG_VORDER, TAG_WAIT, TAG_WEIGHTED, TAG_WIDTH, TAG_WINDOW, TAG_X, TAG_Y
Constructor and Description |
---|
Annotation(Resolver resolver,
org.jdom.Element el,
Map attributes) |
Annotation(Resolver resolver,
String description) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom.Element |
addContent(org.jdom.Element el)
Override if the step actually has some contents.
|
Map |
getAttributes()
Attributes to save in script.
|
String |
getDefaultDescription()
Return a reasonable default description for this script step.
|
long |
getDelayTime() |
Point |
getDisplayLocation() |
String |
getRelativeTo() |
String |
getText() |
String |
getTitle() |
String |
getUsage()
Provide a usage String for this step.
|
boolean |
getUserDismiss() |
Window |
getWindow() |
String |
getXMLTag()
Define the XML tag to use for this script step.
|
boolean |
isShowing() |
protected void |
runStep()
Display a non-modal window.
|
void |
setDisplayLocation(Point pt) |
void |
setRelativeTo(String id) |
void |
setText(String text) |
void |
setTitle(String title) |
void |
setUserDismiss(boolean state) |
void |
showAnnotation() |
addAttributes, createAttributeMap, createStep, createStep, getDescription, getResolver, parseAttributes, resolveClass, resolveTester, run, setDescription, setScriptError, simpleClassName, toEditableString, toString, toXML, toXMLString, usage, usage
public static final String TAG_ANNOTATION
public static final String TAG_USER_DISMISS
public boolean isShowing()
public void showAnnotation()
public long getDelayTime()
protected void runStep() throws Throwable
public Window getWindow()
public String getDefaultDescription()
Step
getDefaultDescription
in class Step
public String getUsage()
Step
public String getXMLTag()
Step
protected org.jdom.Element addContent(org.jdom.Element el)
Step
addContent
in class Step
public Map getAttributes()
Step
getAttributes
in class Step
public boolean getUserDismiss()
public void setUserDismiss(boolean state)
public String getRelativeTo()
public void setRelativeTo(String id)
public String getTitle()
public void setTitle(String title)
public String getText()
public void setText(String text)
public void setDisplayLocation(Point pt)
public Point getDisplayLocation()
Abbot is hosted on