当前位置 : 主页 > 网络编程 > 其它编程 >

com.google.gwt.dom.client.AnchorElement.is()方法的使用及代码示例

来源:互联网 收集:自由互联 发布时间:2023-07-02
本文整理了Java中com.google.gwt.dom.client.AnchorElement.is()方法的一些代码示例,展示了AnchorEleme 本文整理了Java中com.google.gwt.dom.client.AnchorElement.is()方法的一些代码示例,展示了AnchorElement.is()的
本文整理了Java中com.google.gwt.dom.client.AnchorElement.is()方法的一些代码示例,展示了AnchorEleme

本文整理了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); }}

上一篇:寒武纪测试赛1C(取模和整除的性质经典)
下一篇:没有了
网友评论