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

x33g5p2x  于2022-01-19 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中com.google.gwt.dom.client.Element.getPropertyBoolean()方法的一些代码示例,展示了Element.getPropertyBoolean()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getPropertyBoolean()方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:getPropertyBoolean

Element.getPropertyBoolean介绍

[英]Gets a boolean property from this element.
[中]从该元素获取布尔属性。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

public boolean isEnabled() {
 return !elem.getPropertyBoolean("disabled");
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets any named property from an element, as a boolean.
 * 
 * @param elem the element whose property is to be retrieved
 * @param prop the name of the property
 * @return the property's value as a boolean
 * @deprecated Use {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getElementPropertyBoolean(Element elem, String prop) {
 return elem.getPropertyBoolean(prop);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets a boolean property on the given element.
 *
 * @param elem the element whose property is to be set
 * @param attr the name of the property to be set
 * @return the property's value as a boolean
 * @deprecated Use the more appropriately named
 *             {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getBooleanAttribute(Element elem, String attr) {
 return elem.getPropertyBoolean(attr);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

@Override
public boolean isEnabled() {
 return beforeInitPlaceholder == null ? isEnabledImpl()
   : !beforeInitPlaceholder.getPropertyBoolean("disabled");
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client

/**
 * Returns true if the element has the disabled attribute.
 */
public static boolean isEnabled(Element element) {
  return element.getPropertyBoolean("disabled");        
}

代码示例来源:origin: com.googlecode.gwtquery/gwtquery

public boolean f(Element e, int index) {
  return e.getPropertyBoolean("selected");
 }
});

代码示例来源:origin: kiegroup/jbpm-wb

/**
   * Returns true if the element has the disabled attribute.
   */
  public static boolean isEnabled(Element element) {
    return element.getPropertyBoolean("disabled");
  }
}

代码示例来源:origin: net.wetheinter/gwt-user

public boolean isEnabled() {
 return !elem.getPropertyBoolean("disabled");
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

public boolean isEnabled() {
 return !elem.getPropertyBoolean("disabled");
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets a boolean property on the given element.
 *
 * @param elem the element whose property is to be set
 * @param attr the name of the property to be set
 * @return the property's value as a boolean
 * @deprecated Use the more appropriately named
 *             {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getBooleanAttribute(Element elem, String attr) {
 return elem.getPropertyBoolean(attr);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets any named property from an element, as a boolean.
 * 
 * @param elem the element whose property is to be retrieved
 * @param prop the name of the property
 * @return the property's value as a boolean
 * @deprecated Use {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getElementPropertyBoolean(Element elem, String prop) {
 return elem.getPropertyBoolean(prop);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets any named property from an element, as a boolean.
 * 
 * @param elem the element whose property is to be retrieved
 * @param prop the name of the property
 * @return the property's value as a boolean
 * @deprecated Use {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getElementPropertyBoolean(Element elem, String prop) {
 return elem.getPropertyBoolean(prop);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets a boolean property on the given element.
 *
 * @param elem the element whose property is to be set
 * @param attr the name of the property to be set
 * @return the property's value as a boolean
 * @deprecated Use the more appropriately named
 *             {@link Element#getPropertyBoolean(String)} instead.
 */
@Deprecated
public static boolean getBooleanAttribute(Element elem, String attr) {
 return elem.getPropertyBoolean(attr);
}

代码示例来源:origin: net.wetheinter/gwt-user

@Override
public boolean isEnabled() {
 return beforeInitPlaceholder == null ? isEnabledImpl()
   : !beforeInitPlaceholder.getPropertyBoolean("disabled");
}

代码示例来源:origin: com.googlecode.gwtquery/gwtquery

/**
 * Only valid for IE6-8.
 * @param event
 * @return
 */
private boolean isEventPropagationStopped(Event event) {
 // trick to avoid jnsi
 return event.<Element> cast().getPropertyBoolean("cancelBubble");
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

@Override
public boolean isEnabled() {
 return beforeInitPlaceholder == null ? isEnabledImpl()
   : !beforeInitPlaceholder.getPropertyBoolean("disabled");
}

代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils

private static boolean isDisabled(Element element) {
  return element.getPropertyBoolean("disabled")
      || element.getClassName().contains("gwt-CheckBox-disabled");
}

代码示例来源:origin: gwt-test-utils/gwt-test-utils

private static boolean isDisabled(Element element) {
  return element.getPropertyBoolean("disabled")
      || element.getClassName().contains("gwt-CheckBox-disabled");
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

case Event.ONCLICK:
  if (BrowserInfo.get().getWebkitVersion() > 0
      && targetElement.getPropertyBoolean("__cell")) {
    scrollBodyPanel.setFocus(true);

相关文章

微信公众号

最新文章

更多

Element类方法