| java.lang.Object abbot.tester.Robot abbot.tester.ComponentTester abbot.tester.ContainerTester abbot.tester.JComponentTester abbot.tester.JTreeTester
JTreeTester | public class JTreeTester extends JComponentTester (Code) | | Provide operations on a JTree component.
The JTree substructure is a "row", and JTreeLocation provides different
identifiers for a row.
- Select an item by row index
- Select an item by tree path (the string representation of the full
path).
See Also: abbot.tester.JTreeLocation |
Method Summary | |
public void | actionClick(Component c, ComponentLocation loc) Click at the given location. | public void | actionClickRow(Component tree, int row) Simple click on the given row. | public void | actionClickRow(Component tree, int row, String modifiers) Click with modifiers on the given row. | public void | actionClickRow(Component c, int row, String modifiers, int count) Multiple click on the given row. | public void | actionMakeVisible(Component c, TreePath path) Ensure all elements of the given path are visible. | public void | actionSelectPath(Component c, TreePath path) Select the given path, expanding parent nodes if necessary. | public void | actionSelectRow(Component c, ComponentLocation loc) Select the given row. | public void | actionSelectRow(Component tree, int row) Select the given row. | public void | actionToggleRow(Component c, int row) Change the open/closed state of the given row, if possible. | public void | actionToggleRow(Component c, ComponentLocation loc) Change the open/closed state of the given row, if possible. | public boolean | assertPathExists(Component tree, TreePath path) Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Whether the given path on the given tree exists. | public boolean | assertPathExists(Component tree, TreePath path, boolean invert) Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Parameters: invert - Whether it invert the sense of this operation, when invertedit assumed a timeout of zero. | public boolean | assertPathExists(Component tree, TreePath path, int timeout, boolean invert) Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Parameters: timeout - How long to wait for the tree path to become avaliable Parameters: invert - Whether it invert the sense of this operation Whether the given path on the given tree exists. | public ComponentLocation | getLocation(Component c, Point p) Convert the coordinate into a more meaningful location. | public static boolean | isLocationInExpandControl(JTree tree, int x, int y) Returns whether the given point is in one of the JTree's node
expansion controls. | protected boolean | makeVisible(Component c, TreePath path) Make the given path visible, if possible, and returns whether any
action was taken.
throws: LocationUnavailableException - if no corresponding path can befound. | public ComponentLocation | parseLocation(String encoded) Parse the String representation of a JTreeLocation into the actual
JTreeLocation object. | public static TreePath | pathToStringPath(JTree tree, TreePath path) Return the String representation of the given TreePath, or null if one
can not be obtained. | public static String | valueToString(JTree tree, TreePath path) Return a unique
String representation of the final component of
the given
TreePath , or null if one can not be
obtained. |
actionClick | public void actionClick(Component c, ComponentLocation loc)(Code) | | Click at the given location. If the location indicates a path, ensure
it is visible first.
|
actionClickRow | public void actionClickRow(Component tree, int row)(Code) | | Simple click on the given row.
|
actionClickRow | public void actionClickRow(Component tree, int row, String modifiers)(Code) | | Click with modifiers on the given row.
|
actionClickRow | public void actionClickRow(Component c, int row, String modifiers, int count)(Code) | | Multiple click on the given row.
|
actionMakeVisible | public void actionMakeVisible(Component c, TreePath path)(Code) | | Ensure all elements of the given path are visible.
|
actionSelectPath | public void actionSelectPath(Component c, TreePath path)(Code) | | Select the given path, expanding parent nodes if necessary.
|
actionSelectRow | public void actionSelectRow(Component tree, int row)(Code) | | Select the given row. If the row is already selected, does nothing.
Equivalent to actionSelectRow(c, new JTreeLocation(row)).
|
actionToggleRow | public void actionToggleRow(Component c, int row)(Code) | | Change the open/closed state of the given row, if possible.
|
assertPathExists | public boolean assertPathExists(Component tree, TreePath path)(Code) | | Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Whether the given path on the given tree exists. |
assertPathExists | public boolean assertPathExists(Component tree, TreePath path, boolean invert)(Code) | | Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Parameters: invert - Whether it invert the sense of this operation, when invertedit assumed a timeout of zero. Whether the given path on the given tree exists. |
assertPathExists | public boolean assertPathExists(Component tree, TreePath path, int timeout, boolean invert)(Code) | | Determine whether a given path exists, expanding ancestor nodes as
necessary to find it.
Parameters: timeout - How long to wait for the tree path to become avaliable Parameters: invert - Whether it invert the sense of this operation Whether the given path on the given tree exists. |
isLocationInExpandControl | public static boolean isLocationInExpandControl(JTree tree, int x, int y)(Code) | | Returns whether the given point is in one of the JTree's node
expansion controls.
|
parseLocation | public ComponentLocation parseLocation(String encoded)(Code) | | Parse the String representation of a JTreeLocation into the actual
JTreeLocation object.
|
pathToStringPath | public static TreePath pathToStringPath(JTree tree, TreePath path)(Code) | | Return the String representation of the given TreePath, or null if one
can not be obtained. Assumes the path is visible.
|
valueToString | public static String valueToString(JTree tree, TreePath path)(Code) | | Return a unique
String representation of the final component of
the given
TreePath , or null if one can not be
obtained. Assumes the path is visible.
|
Methods inherited from abbot.tester.JComponentTester | public void actionActionMap(Component comp, String name)(Code)(Java Doc) public void actionClick(Component c, ComponentLocation loc, String buttons, int count)(Code)(Java Doc) public void actionClick(Component c, ComponentLocation loc, int buttons, int count)(Code)(Java Doc) public void actionDrag(Component c, ComponentLocation loc, String mods)(Code)(Java Doc) public void actionDrag(Component c, ComponentLocation loc, int modifiers)(Code)(Java Doc) public void actionDrop(Component c, ComponentLocation loc)(Code)(Java Doc) public void actionScrollToVisible(Component comp, ComponentLocation loc)(Code)(Java Doc) public void actionScrollToVisible(Component comp, int x, int y)(Code)(Java Doc) public void actionScrollToVisible(Component comp, int x, int y, int width, int height)(Code)(Java Doc) public static String convertRendererToString(Component cr)(Code)(Java Doc) public String deriveTag(Component comp)(Code)(Java Doc) public static JComponentTester getTester(JComponent c)(Code)(Java Doc) protected boolean isVisible(JComponent c, Rectangle rect)(Code)(Java Doc) protected boolean isVisible(JComponent c, int x, int y)(Code)(Java Doc) public void mousePress(Component comp, int x, int y, int buttons)(Code)(Java Doc) protected void scrollRectToVisible(JComponent jc, Rectangle rect)(Code)(Java Doc) protected void scrollToVisible(Component comp, int x, int y)(Code)(Java Doc) protected void scrollToVisible(Component comp, Rectangle rect)(Code)(Java Doc)
|
Fields inherited from abbot.tester.ComponentTester | protected static Set IGNORED_METHODS(Code)(Java Doc)
|
Methods inherited from abbot.tester.ComponentTester | public void actionClick(Component comp)(Code)(Java Doc) public void actionClick(Component c, ComponentLocation loc)(Code)(Java Doc) public void actionClick(Component c, ComponentLocation loc, int buttons)(Code)(Java Doc) public void actionClick(Component c, ComponentLocation loc, int buttons, int count)(Code)(Java Doc) public void actionClick(Component comp, int x, int y)(Code)(Java Doc) public void actionClick(Component comp, int x, int y, int buttons)(Code)(Java Doc) public void actionClick(Component comp, int x, int y, int buttons, int count)(Code)(Java Doc) public void actionDelay(int ms)(Code)(Java Doc) public void actionDrag(Component dragSource, ComponentLocation loc)(Code)(Java Doc) public void actionDrag(Component dragSource)(Code)(Java Doc) public void actionDrag(Component dragSource, ComponentLocation loc, String buttons)(Code)(Java Doc) public void actionDrag(Component dragSource, ComponentLocation loc, int buttons)(Code)(Java Doc) public void actionDrag(Component dragSource, int sx, int sy)(Code)(Java Doc) public void actionDrag(Component dragSource, int sx, int sy, String buttons)(Code)(Java Doc) public void actionDragOver(Component target)(Code)(Java Doc) public void actionDragOver(Component target, ComponentLocation where)(Code)(Java Doc) public void actionDrop(Component dropTarget)(Code)(Java Doc) public void actionDrop(Component dropTarget, ComponentLocation loc)(Code)(Java Doc) public void actionDrop(Component dropTarget, int x, int y)(Code)(Java Doc) public void actionFocus(Component comp)(Code)(Java Doc) public void actionKeyPress(Component comp, int keyCode)(Code)(Java Doc) public void actionKeyPress(int keyCode)(Code)(Java Doc) public void actionKeyRelease(Component comp, int keyCode)(Code)(Java Doc) public void actionKeyRelease(int keyCode)(Code)(Java Doc) public void actionKeyString(Component c, String string)(Code)(Java Doc) public void actionKeyString(String string)(Code)(Java Doc) public void actionKeyStroke(Component c, int keyCode)(Code)(Java Doc) public void actionKeyStroke(int keyCode)(Code)(Java Doc) public void actionKeyStroke(Component c, int keyCode, int modifiers)(Code)(Java Doc) public void actionKeyStroke(int keyCode, int modifiers)(Code)(Java Doc) public void actionMouseMove(Component comp, ComponentLocation loc)(Code)(Java Doc) public void actionMousePress(Component comp, ComponentLocation loc)(Code)(Java Doc) public void actionMousePress(Component comp, ComponentLocation loc, int mask)(Code)(Java Doc) public void actionMouseRelease()(Code)(Java Doc) public void actionSelectAWTMenuItem(Frame menuFrame, String path)(Code)(Java Doc) public void actionSelectAWTMenuItemByLabel(Frame menuFrame, String path)(Code)(Java Doc) public void actionSelectAWTPopupMenuItem(Component invoker, String path)(Code)(Java Doc) public void actionSelectAWTPopupMenuItemByLabel(Component invoker, String path)(Code)(Java Doc) public void actionSelectMenuItem(Component item)(Code)(Java Doc) public void actionSelectMenuItem(Component sameWindow, String path)(Code)(Java Doc) public void actionSelectPopupMenuItem(Component invoker, String path)(Code)(Java Doc) public void actionSelectPopupMenuItem(Component invoker, ComponentLocation loc, String path)(Code)(Java Doc) public void actionSelectPopupMenuItem(Component invoker, int x, int y, String path)(Code)(Java Doc) public void actionSetModifiers(int mask, boolean pressed)(Code)(Java Doc) public void actionShowPopupMenu(Component invoker)(Code)(Java Doc) public void actionShowPopupMenu(Component invoker, ComponentLocation loc)(Code)(Java Doc) public void actionShowPopupMenu(Component invoker, int x, int y)(Code)(Java Doc) public void actionWaitForIdle()(Code)(Java Doc) public boolean assertComponentShowing(ComponentReference ref)(Code)(Java Doc) public boolean assertFrameShowing(Hierarchy h, String id)(Code)(Java Doc) public boolean assertFrameShowing(String id)(Code)(Java Doc) public boolean assertImage(Component comp, java.io.File fileImage, boolean ignoreBorder)(Code)(Java Doc) protected String deriveAccessibleTag(AccessibleContext context)(Code)(Java Doc) public String deriveTag(Component comp)(Code)(Java Doc) public Method[] getActions()(Code)(Java Doc) public Method[] getAssertMethods()(Code)(Java Doc) public Method[] getComponentActions()(Code)(Java Doc) public Method[] getComponentAssertMethods()(Code)(Java Doc) public ComponentLocation getLocation(Component c, Point where)(Code)(Java Doc) public Method[] getPropertyMethods()(Code)(Java Doc) public static String getTag(Component comp)(Code)(Java Doc) public Class getTestedClass(Class cls)(Code)(Java Doc) public static ComponentTester getTester(Component comp)(Code)(Java Doc) public static ComponentTester getTester(Class componentClass)(Code)(Java Doc) protected boolean isCustom(Class c)(Code)(Java Doc) final public boolean isExtension()(Code)(Java Doc) public ComponentLocation parseLocation(String encoded)(Code)(Java Doc) public static void setTester(Class forClass, ComponentTester tester)(Code)(Java Doc) public static String stripHTML(String str)(Code)(Java Doc) protected void waitAction(String desc, Condition cond) throws ActionFailedException(Code)(Java Doc) public void waitForComponentShowing(ComponentReference ref)(Code)(Java Doc) public void waitForFrameShowing(Hierarchy h, String identifier)(Code)(Java Doc) public void waitForFrameShowing(String identifier)(Code)(Java Doc)
|
Methods inherited from abbot.tester.Robot | public void activate(Window win)(Code)(Java Doc) public static boolean canMoveWindows()(Code)(Java Doc) public static boolean canResizeWindows()(Code)(Java Doc) public BufferedImage capture(Rectangle bounds)(Code)(Java Doc) public BufferedImage capture(Component comp)(Code)(Java Doc) public BufferedImage capture(Component comp, boolean ignoreBorder)(Code)(Java Doc) final public void click(Component comp)(Code)(Java Doc) final public void click(Component comp, int mask)(Code)(Java Doc) final public void click(Component comp, int x, int y)(Code)(Java Doc) final public void click(Component comp, int x, int y, int mask)(Code)(Java Doc) public void click(Component comp, int x, int y, int mask, int count)(Code)(Java Doc) public void close(Window w)(Code)(Java Doc) public void deiconify(Frame frame)(Code)(Java Doc) public void delay(int ms)(Code)(Java Doc) protected static String descriptiveClassName(Class cls)(Code)(Java Doc) public void drag(Component src, int sx, int sy)(Code)(Java Doc) public void drag(Component src, int sx, int sy, int buttons)(Code)(Java Doc) public void dragOver(Component dst, int x, int y)(Code)(Java Doc) public void drop(Component target, int x, int y)(Code)(Java Doc) public Component findFocusOwner()(Code)(Java Doc) protected void fireAccessibleAction(Component context, AccessibleAction action, String name)(Code)(Java Doc) public void focus(Component comp)(Code)(Java Doc) public void focus(Component comp, boolean wait)(Code)(Java Doc) public static int getAutoDelay()(Code)(Java Doc) public static String getBorderTitle(Component c)(Code)(Java Doc) public static Class getCanonicalClass(Class refClass)(Code)(Java Doc) protected Point getCloseLocation(Container c)(Code)(Java Doc) public static String getDescriptiveName(Component c)(Code)(Java Doc) public static String getEventID(AWTEvent event)(Code)(Java Doc) public static int getEventID(Class cls, String id)(Code)(Java Doc) public static int getEventMode()(Code)(Java Doc) public static String getEventModeDescription()(Code)(Java Doc) public static int getEventPostDelay()(Code)(Java Doc) protected EventQueue getEventQueue(Component c)(Code)(Java Doc) public static String getIconName(Component c)(Code)(Java Doc) protected Point getIconifyLocation(Container c)(Code)(Java Doc) public static int getIndex(Container parent, Component comp)(Code)(Java Doc) public static String getLabel(Component c)(Code)(Java Doc) protected Point getMaximizeLocation(Container c)(Code)(Java Doc) protected Point getMoveLocation(Container c)(Code)(Java Doc) public static String getName(Component c)(Code)(Java Doc) public static int getPreferredRobotAutoDelay()(Code)(Java Doc) protected Point getResizeLocation(Container c)(Code)(Java Doc) public static java.awt.Robot getRobot()(Code)(Java Doc) public static InputState getState()(Code)(Java Doc) public static String getText(Component c)(Code)(Java Doc) public static String getTitle(Component c)(Code)(Java Doc) public void iconify(Frame frame)(Code)(Java Doc) public void invokeAction(Runnable action)(Code)(Java Doc) public void invokeAction(Component c, Runnable action)(Code)(Java Doc) public void invokeAndWait(Component c, Runnable action)(Code)(Java Doc) public void invokeAndWait(Runnable action)(Code)(Java Doc) public void invokeLater(Component context, Runnable action)(Code)(Java Doc) public void invokeLater(Runnable action)(Code)(Java Doc) protected boolean isReadyForInput(Component c)(Code)(Java Doc) protected void jitter(Component comp, int x, int y)(Code)(Java Doc) protected void jitter(int x, int y)(Code)(Java Doc) public void key(int keycode)(Code)(Java Doc) public void key(int keycode, int modifiers)(Code)(Java Doc) public void keyPress(int keycode)(Code)(Java Doc) public void keyRelease(int keycode)(Code)(Java Doc) public void keyString(String str)(Code)(Java Doc) public void keyStroke(char ch)(Code)(Java Doc) public void maximize(Frame frame)(Code)(Java Doc) public void mouseMove(Component comp)(Code)(Java Doc) public void mouseMove(Component comp, int x, int y)(Code)(Java Doc) public void mousePress(int buttons)(Code)(Java Doc) public void mousePress(Component comp)(Code)(Java Doc) public void mousePress(Component comp, int mask)(Code)(Java Doc) public void mousePress(Component comp, int x, int y)(Code)(Java Doc) public void mousePress(Component comp, int x, int y, int mask)(Code)(Java Doc) public void mouseRelease()(Code)(Java Doc) public void mouseRelease(int buttons)(Code)(Java Doc) public void move(Container comp, int newx, int newy)(Code)(Java Doc) public void moveBy(Container comp, int dx, int dy)(Code)(Java Doc) public void normalize(Frame frame)(Code)(Java Doc) protected void postEvent(Component comp, AWTEvent ev)(Code)(Java Doc) protected boolean postInvocationEvent(EventQueue eq, Toolkit toolkit, long timeout)(Code)(Java Doc) protected boolean queueBlocked()(Code)(Java Doc) public void reset()(Code)(Java Doc) public void resize(Container comp, int width, int height)(Code)(Java Doc) public void resizeBy(Container comp, int dx, int dy)(Code)(Java Doc) public Color sample(int x, int y)(Code)(Java Doc) public Color sample(Component c, int x, int y)(Code)(Java Doc) public Color sample(Component c, ComponentLocation loc)(Code)(Java Doc) public void selectAWTMenuItem(Frame frame, String path)(Code)(Java Doc) public void selectAWTMenuItem(MenuComponent item)(Code)(Java Doc) public void selectAWTMenuItemByLabel(Frame frame, String path)(Code)(Java Doc) public void selectAWTPopupMenuItem(Component invoker, String path)(Code)(Java Doc) public void selectAWTPopupMenuItem(MenuComponent item)(Code)(Java Doc) public void selectAWTPopupMenuItemByLabel(Component invoker, String path)(Code)(Java Doc) public void selectMenuItem(Component sameWindow, String path)(Code)(Java Doc) public void selectMenuItem(Component item)(Code)(Java Doc) public void selectPopupMenuItem(Component invoker, ComponentLocation loc, String path)(Code)(Java Doc) public void sendEvent(AWTEvent event)(Code)(Java Doc) public static void setAutoDelay(int ms)(Code)(Java Doc) public static void setEventMode(int mode)(Code)(Java Doc) public static void setEventPostDelay(int delay)(Code)(Java Doc) public void setModifiers(int modifiers, boolean press)(Code)(Java Doc) public Component showPopupMenu(Component invoker)(Code)(Java Doc) public Component showPopupMenu(Component invoker, int x, int y)(Code)(Java Doc) public static String simpleClassName(Class cls)(Code)(Java Doc) public void sleep()(Code)(Java Doc) public static String toHierarchyPath(Component c)(Code)(Java Doc) public static String toString(Component comp)(Code)(Java Doc) public static String toString(Object obj)(Code)(Java Doc) public static String toString(AWTEvent event)(Code)(Java Doc) final protected static boolean useScreenMenuBar()(Code)(Java Doc) protected boolean userMovable(Component comp)(Code)(Java Doc) protected boolean userResizable(Component comp)(Code)(Java Doc) public void wait(Condition condition)(Code)(Java Doc) public void wait(Condition condition, long timeout)(Code)(Java Doc) public void wait(Condition condition, long timeout, int interval)(Code)(Java Doc) public void waitForIdle()(Code)(Java Doc)
|
|
|