tools/Jemmy/JemmyFX/src/org/jemmy/fx/Lookups.java

Print this page

        

*** 58,68 **** * @param type * @return */ @SuppressWarnings("unchecked") public static <T extends Node> Wrap<? extends T> byID(Wrap<?> parent, String id, Class<T> type) { ! return byID(parent.as(Parent.class, Node.class), id, type); } /** * Equivalent to <code>parent.lookup(type, new ByText<T>(text)).wrap(0)</code> * @param <T> * @param parent --- 58,68 ---- * @param type * @return */ @SuppressWarnings("unchecked") public static <T extends Node> Wrap<? extends T> byID(Wrap<?> parent, String id, Class<T> type) { ! return byID((Parent<Node>) parent.as(Parent.class, Node.class), id, type); } /** * Equivalent to <code>parent.lookup(type, new ByText<T>(text)).wrap(0)</code> * @param <T> * @param parent
*** 82,92 **** * @param type * @return */ @SuppressWarnings("unchecked") public static <T extends Node> Wrap<? extends T> byText(Wrap<?> parent, String id, Class<T> type) { ! return byText(parent.as(Parent.class, Node.class), id, type); } /** * Equivalent to <code>FXRoot.ROOT.lookup(new ByTitleSceneLookup<Scene>(title)).wrap(0).as(Parent.class, Node.class)</code> * @param title * @return --- 82,92 ---- * @param type * @return */ @SuppressWarnings("unchecked") public static <T extends Node> Wrap<? extends T> byText(Wrap<?> parent, String id, Class<T> type) { ! return byText((Parent<Node>) parent.as(Parent.class, Node.class), id, type); } /** * Equivalent to <code>FXRoot.ROOT.lookup(new ByTitleSceneLookup<Scene>(title)).wrap(0).as(Parent.class, Node.class)</code> * @param title * @return