|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JTextComponentOperator
org.netbeans.jemmy.operators.JEditorPaneOperator
public class JEditorPaneOperator
Class provides basic functions to operate with JEditorPane
(selection, typing, deleting)
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to change caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.
Timeouts
Nested Class Summary | |
---|---|
static class |
JEditorPaneOperator.JEditorPaneFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JTextComponentOperator |
---|
JTextComponentOperator.JTextComponentByTextFinder, JTextComponentOperator.JTextComponentFinder, JTextComponentOperator.NoSuchTextException, JTextComponentOperator.TextChooser |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
ContainerOperator.ContainerFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator |
---|
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapCharacterAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
static java.lang.String |
CONTENT_TYPE_DPROP
Identifier for a "content type" property. |
Fields inherited from class org.netbeans.jemmy.operators.JTextComponentOperator |
---|
IS_EDITABLE_DPROP, modifiersPressed, SELECTED_TEXT_DPROP, TEXT_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
JEditorPaneOperator(ContainerOperator cont)
Constructor. |
|
JEditorPaneOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JEditorPaneOperator object. |
|
JEditorPaneOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JEditorPaneOperator object. |
|
JEditorPaneOperator(ContainerOperator cont,
int index)
Constructor. |
|
JEditorPaneOperator(ContainerOperator cont,
java.lang.String text)
Constructor. |
|
JEditorPaneOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor. |
|
JEditorPaneOperator(javax.swing.JEditorPane b)
Constructor. |
Method Summary | |
---|---|
void |
addHyperlinkListener(javax.swing.event.HyperlinkListener hyperlinkListener)
Maps JEditorPane.addHyperlinkListener(HyperlinkListener) through queue |
static javax.swing.JEditorPane |
findJEditorPane(java.awt.Container cont,
ComponentChooser chooser)
Searches JEditorPane in container. |
static javax.swing.JEditorPane |
findJEditorPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JEditorPane in container. |
static javax.swing.JEditorPane |
findJEditorPane(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Searches JEditorPane by text. |
static javax.swing.JEditorPane |
findJEditorPane(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Searches JEditorPane by text. |
void |
fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
Maps JEditorPane.fireHyperlinkUpdate(HyperlinkEvent) through queue |
java.lang.String |
getContentType()
Maps JEditorPane.getContentType() through queue |
java.util.Hashtable |
getDump()
Returns information about component. |
javax.swing.text.EditorKit |
getEditorKit()
Maps JEditorPane.getEditorKit() through queue |
javax.swing.text.EditorKit |
getEditorKitForContentType(java.lang.String string)
Maps JEditorPane.getEditorKitForContentType(String) through queue |
java.net.URL |
getPage()
Maps JEditorPane.getPage() through queue |
void |
read(java.io.InputStream inputStream,
java.lang.Object object)
Maps JEditorPane.read(InputStream, Object) through queue |
void |
removeHyperlinkListener(javax.swing.event.HyperlinkListener hyperlinkListener)
Maps JEditorPane.removeHyperlinkListener(HyperlinkListener) through queue |
void |
setContentType(java.lang.String string)
Maps JEditorPane.setContentType(String) through queue |
void |
setEditorKit(javax.swing.text.EditorKit editorKit)
Maps JEditorPane.setEditorKit(EditorKit) through queue |
void |
setEditorKitForContentType(java.lang.String string,
javax.swing.text.EditorKit editorKit)
Maps JEditorPane.setEditorKitForContentType(String, EditorKit) through queue |
void |
setPage(java.lang.String string)
Maps JEditorPane.setPage(String) through queue |
void |
setPage(java.net.URL uRL)
Maps JEditorPane.setPage(URL) through queue |
void |
usePageNavigationKeys(boolean yesOrNo)
Deprecated. vlue set by this method is not used anymore: all navigating is performed by TextDriver. |
static javax.swing.JEditorPane |
waitJEditorPane(java.awt.Container cont,
ComponentChooser chooser)
Waits JEditorPane in container. |
static javax.swing.JEditorPane |
waitJEditorPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JEditorPane in container. |
static javax.swing.JEditorPane |
waitJEditorPane(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Waits JEditorPane by text. |
static javax.swing.JEditorPane |
waitJEditorPane(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Waits JEditorPane by text. |
Methods inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTENT_TYPE_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public JEditorPaneOperator(javax.swing.JEditorPane b)
b
- a componentpublic JEditorPaneOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JEditorPaneOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JEditorPaneOperator(ContainerOperator cont, java.lang.String text, int index)
cont
- a containertext
- Button text.index
- Ordinal component index.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JEditorPaneOperator(ContainerOperator cont, java.lang.String text)
cont
- a containertext
- Button text.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JEditorPaneOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.
TimeoutExpiredException
public JEditorPaneOperator(ContainerOperator cont)
cont
- a container
TimeoutExpiredException
Method Detail |
---|
public static javax.swing.JEditorPane findJEditorPane(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.
public static javax.swing.JEditorPane findJEditorPane(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.
public static javax.swing.JEditorPane findJEditorPane(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JEditorPane findJEditorPane(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JEditorPane waitJEditorPane(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.
TimeoutExpiredException
public static javax.swing.JEditorPane waitJEditorPane(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.
TimeoutExpiredException
public static javax.swing.JEditorPane waitJEditorPane(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JEditorPane waitJEditorPane(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public void usePageNavigationKeys(boolean yesOrNo)
yesOrNo
- whether to use "PageUp" and "PageDown"public java.util.Hashtable getDump()
getDump
in class JTextComponentOperator
public void addHyperlinkListener(javax.swing.event.HyperlinkListener hyperlinkListener)
JEditorPane.addHyperlinkListener(HyperlinkListener)
through queue
public void fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
JEditorPane.fireHyperlinkUpdate(HyperlinkEvent)
through queue
public java.lang.String getContentType()
JEditorPane.getContentType()
through queue
public javax.swing.text.EditorKit getEditorKit()
JEditorPane.getEditorKit()
through queue
public javax.swing.text.EditorKit getEditorKitForContentType(java.lang.String string)
JEditorPane.getEditorKitForContentType(String)
through queue
public java.net.URL getPage()
JEditorPane.getPage()
through queue
public void read(java.io.InputStream inputStream, java.lang.Object object)
JEditorPane.read(InputStream, Object)
through queue
public void removeHyperlinkListener(javax.swing.event.HyperlinkListener hyperlinkListener)
JEditorPane.removeHyperlinkListener(HyperlinkListener)
through queue
public void setContentType(java.lang.String string)
JEditorPane.setContentType(String)
through queue
public void setEditorKit(javax.swing.text.EditorKit editorKit)
JEditorPane.setEditorKit(EditorKit)
through queue
public void setEditorKitForContentType(java.lang.String string, javax.swing.text.EditorKit editorKit)
JEditorPane.setEditorKitForContentType(String, EditorKit)
through queue
public void setPage(java.lang.String string)
JEditorPane.setPage(String)
through queue
public void setPage(java.net.URL uRL)
JEditorPane.setPage(URL)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |