本文整理了Java中com.google.gwt.dom.client.Element.setPropertyBoolean()
方法的一些代码示例,展示了Element.setPropertyBoolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setPropertyBoolean()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:setPropertyBoolean
[英]Sets a boolean property on this element.
[中]设置此元素的布尔属性。
代码示例来源:origin: com.google.gwt/gwt-servlet
public void setEnabled(boolean enabled) {
elem.setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets a boolean property on the given element.
*
* @param elem the element whose property is to be set
* @param prop the name of the property to be set
* @param value the new property value as a boolean
* @deprecated Use {@link Element#setPropertyBoolean(String, boolean)} instead.
*/
@Deprecated
public static void setElementPropertyBoolean(Element elem, String prop,
boolean value) {
elem.setPropertyBoolean(prop, value);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets 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
* @param value the property's new boolean value
* @deprecated Use the more appropriately named
* {@link Element#setPropertyBoolean(String, boolean)}
* instead.
*/
@Deprecated
public static void setBooleanAttribute(Element elem, String attr,
boolean value) {
elem.setPropertyBoolean(attr, value);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void setEnabled(boolean enabled) {
if (beforeInitPlaceholder == null) {
setEnabledImpl(enabled);
} else {
beforeInitPlaceholder.setPropertyBoolean("disabled", !enabled);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public void setEnabled(boolean enabled) {
elem.setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public void setEnabled(boolean enabled) {
elem.setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets a boolean property on the given element.
*
* @param elem the element whose property is to be set
* @param prop the name of the property to be set
* @param value the new property value as a boolean
* @deprecated Use {@link Element#setPropertyBoolean(String, boolean)} instead.
*/
@Deprecated
public static void setElementPropertyBoolean(Element elem, String prop,
boolean value) {
elem.setPropertyBoolean(prop, value);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets a boolean property on the given element.
*
* @param elem the element whose property is to be set
* @param prop the name of the property to be set
* @param value the new property value as a boolean
* @deprecated Use {@link Element#setPropertyBoolean(String, boolean)} instead.
*/
@Deprecated
public static void setElementPropertyBoolean(Element elem, String prop,
boolean value) {
elem.setPropertyBoolean(prop, value);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets 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
* @param value the property's new boolean value
* @deprecated Use the more appropriately named
* {@link Element#setPropertyBoolean(String, boolean)}
* instead.
*/
@Deprecated
public static void setBooleanAttribute(Element elem, String attr,
boolean value) {
elem.setPropertyBoolean(attr, value);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets 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
* @param value the property's new boolean value
* @deprecated Use the more appropriately named
* {@link Element#setPropertyBoolean(String, boolean)}
* instead.
*/
@Deprecated
public static void setBooleanAttribute(Element elem, String attr,
boolean value) {
elem.setPropertyBoolean(attr, value);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void setEnabled(boolean enabled) {
if (beforeInitPlaceholder == null) {
setEnabledImpl(enabled);
} else {
beforeInitPlaceholder.setPropertyBoolean("disabled", !enabled);
}
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client
/**
* It's enough to just set the disabled attribute on the
* element, but we want to also add a "disabled" class so that we can
* style it.
*
* At some point we'll just be able to use .button:disabled,
* but that doesn't work in IE8-
*/
public static void setEnabled(Element element, boolean enabled) {
element.setPropertyBoolean("disabled", !enabled);
setStyleName(element, "disabled", !enabled);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void setEnabled(boolean enabled) {
if (beforeInitPlaceholder == null) {
setEnabledImpl(enabled);
} else {
beforeInitPlaceholder.setPropertyBoolean("disabled", !enabled);
}
}
代码示例来源:origin: kiegroup/jbpm-wb
/**
* It's enough to just set the disabled attribute on the
* element, but we want to also add a "disabled" class so that we can
* style it.
* <p>
* At some point we'll just be able to use .button:disabled,
* but that doesn't work in IE8-
*/
public static void setEnabled(Element element,
boolean enabled) {
element.setPropertyBoolean("disabled",
!enabled);
setStyleName(element,
"disabled",
!enabled);
}
代码示例来源:origin: com.googlecode.gwtquery/gwtquery
public void setAttribute(Element e, String key, Object value) {
if (JsUtils.hasProperty(e, key)) {
e.setPropertyBoolean(key, true);
}
super.setAttribute(e, key, key.toLowerCase());
}
}
代码示例来源:origin: com.googlecode.gwtquery/gwtquery
public void removeAttribute(GQuery gQuery, String key) {
for (Element e : gQuery.elements()) {
if (e.getNodeType() != 1) {
continue;
}
if (JsUtils.hasProperty(e, key)) {
if (BOOLEAN_ATTR_REGEX.test(key)) {
e.setPropertyBoolean(key, false);
} else {
e.setPropertyObject(key, null);
}
}
e.removeAttribute(key);
}
}
代码示例来源:origin: com.sencha.gxt/gxt-chart
fill.setPropertyBoolean("on", false);
} else {
if (sprite.isFillDirty() || ignoreOptimizations) {
fill.setPropertyBoolean("on", true);
if (sprite.getFill() instanceof Gradient) {
Gradient gradient = (Gradient) sprite.getFill();
代码示例来源:origin: com.sencha.gxt/gxt-chart
stroke.setPropertyBoolean("on", false);
} else {
stroke.setPropertyBoolean("on", true);
内容来源于网络,如有侵权,请联系作者删除!