本文整理了Java中com.google.gwt.dom.client.AnchorElement.is()方法的一些代码示例,展示了AnchorElement.is()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AnchorElement.is()方法的具体详情如下:包路径:com.google.gwt.dom.client.AnchorElement类名称:AnchorElement方法名:is
AnchorElement.is介绍
[英]Determines whether the given JavascriptObject can be cast to this class. A null object will cause this method to return false.[中]确定是否可以将给定的JavascriptObject强制转换到此类。null对象将导致此方法返回false。
代码示例
代码示例来源:origin: com.google.gwt/gwt-servlet
/** * Assert that the given {@link Element} is compatible with this class and * automatically typecast it. */public static AnchorElement as(Element elem) { assert is(elem); return (AnchorElement) elem;}
代码示例来源:origin: com.google.gwt/gwt-servlet
/** * Determine whether the given {@link Node} can be cast to this class. * A null node will cause this method to return * false. */public static boolean is(Node node) { if (Element.is(node)) { return is((Element) node); } return false;}
代码示例来源:origin: com.google.gwt/gwt-servlet
/** * Determines whether the given {@link JavascriptObject} can be cast to * this class. A null object will cause this method to * return false. */public static boolean is(JavascriptObject o) { if (Element.is(o)) { return is((Element) o); } return false;}
代码示例来源:origin: net.wetheinter/gwt-user
/** * Assert that the given {@link Element} is compatible with this class and * automatically typecast it. */public static AnchorElement as(Element elem) { assert is(elem); return (AnchorElement) elem;}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/** * Assert that the given {@link Element} is compatible with this class and * automatically typecast it. */public static AnchorElement as(Element elem) { assert is(elem); return (AnchorElement) elem;}
代码示例来源:origin: net.wetheinter/gwt-user
/** * Determines whether the given {@link JavascriptObject} can be cast to * this class. A null object will cause this method to * return false. */public static boolean is(JavascriptObject o) { if (Element.is(o)) { return is((Element) o); } return false;}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/** * Determines whether the given {@link JavascriptObject} can be cast to * this class. A null object will cause this method to * return false. */public static boolean is(JavascriptObject o) { if (Element.is(o)) { return is((Element) o); } return false;}
代码示例来源:origin: net.wetheinter/gwt-user
/** * Determine whether the given {@link Node} can be cast to this class. * A null node will cause this method to return * false. */public static boolean is(Node node) { if (Element.is(node)) { return is((Element) node); } return false;}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/** * Determine whether the given {@link Node} can be cast to this class. * A null node will cause this method to return * false. */public static boolean is(Node node) { if (Element.is(node)) { return is((Element) node); } return false;}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
@Overridepublic void setAccessKey(final char key) { final Element element = uiObject.getElement(); final String accessKey = Character.toString(key); if (AnchorElement.is(element)) { AnchorElement.as(element).setAccessKey(accessKey); } else if (ButtonElement.is(element)) { ButtonElement.as(element).setAccessKey(accessKey); } else if (InputElement.is(element)) { InputElement.as(element).setAccessKey(accessKey); }}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Overridepublic void setAccessKey(final char key) { final Element element = uiObject.getElement(); final String accessKey = Character.toString(key); if (AnchorElement.is(element)) { AnchorElement.as(element).setAccessKey(accessKey); } else if (ButtonElement.is(element)) { ButtonElement.as(element).setAccessKey(accessKey); } else if (InputElement.is(element)) { InputElement.as(element).setAccessKey(accessKey); }}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
@Overridepublic void setAccessKey(final char key) { final Element element = uiObject.getElement(); final String accessKey = Character.toString(key); if (AnchorElement.is(element)) { AnchorElement.as(element).setAccessKey(accessKey); } else if (ButtonElement.is(element)) { ButtonElement.as(element).setAccessKey(accessKey); } else if (InputElement.is(element)) { InputElement.as(element).setAccessKey(accessKey); }}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
@Overridepublic void setAccessKey(final char key) { final Element element = uiObject.getElement(); final String accessKey = Character.toString(key); if (AnchorElement.is(element)) { AnchorElement.as(element).setAccessKey(accessKey); } else if (ButtonElement.is(element)) { ButtonElement.as(element).setAccessKey(accessKey); } else if (InputElement.is(element)) { InputElement.as(element).setAccessKey(accessKey); }}