本文整理了Java中com.google.gwt.user.client.Element.setPropertyBoolean()
方法的一些代码示例,展示了Element.setPropertyBoolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setPropertyBoolean()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setPropertyBoolean
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Turns read-only mode on or off.
*
* @param readOnly if <code>true</code>, the widget becomes read-only; if
* <code>false</code> the widget becomes editable
*/
public void setReadOnly(boolean readOnly) {
getElement().setPropertyBoolean("readOnly", readOnly);
String readOnlyStyle = "readonly";
if (readOnly) {
addStyleDependentName(readOnlyStyle);
} else {
removeStyleDependentName(readOnlyStyle);
}
}
代码示例来源:origin: com.extjs/gxt
/**
* Disables the element.
*
* @return this
*/
public El disable() {
dom.setPropertyBoolean("disabled", true);
return this;
}
代码示例来源:origin: com.extjs/gxt
/**
* Enables the element.
*
* @return this
*/
public El enable() {
dom.setPropertyBoolean("disabled", false);
return this;
}
代码示例来源:origin: laaglu/lib-gwt-file
/**
* Sets whether this widget is enabled.
*
* @param enabled
* <code>true</code> to enable the widget, <code>false</code> to
* disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: org.uberfire/uberfire-widgets-commons
public void setMultiple(boolean multiple) {
if (multiple) {
upload.getElement().setPropertyBoolean("multiple",
true);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets whether this widget is enabled.
*
* @param enabled <code>true</code> to enable the widget, <code>false</code>
* to disable it
*/
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
代码示例来源:origin: com.googlecode.gwtupload/gwtupload
public void setEnabled(boolean enabled) {
getElement().setPropertyBoolean("disabled", !enabled);
}
}
代码示例来源:origin: kiegroup/appformer
public void setMultiple(boolean multiple) {
if (multiple) {
upload.getElement().setPropertyBoolean("multiple",
true);
}
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
@Override
public void setEnabled(final boolean enabled) {
getElement().setPropertyBoolean(DISABLED, !enabled);
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* @see HasEnabled#setEnabled(boolean)
*/
@Override
public void setEnabled(boolean bEnabled)
{
getElement().setPropertyBoolean("disabled", !bEnabled);
setResource(bEnabled ? rDefaultImage : rDisabledImage);
}
代码示例来源:origin: errai/errai
@Override
public void setValue(final T value) {
final String inputType = getElement().getPropertyString("type");
final Class<?> valueType = getValueClassForInputType(inputType);
if (Boolean.class.equals(valueType)) {
getElement().setPropertyBoolean("checked", (Boolean) value);
} else if (String.class.equals(valueType)) {
getElement().setPropertyObject("value", value != null ? value : "");
} else {
throw new IllegalArgumentException("Cannot set value " + value + " to element input[type=\"" + inputType + "\"].");
}
}
代码示例来源:origin: com.extjs/gxt
/**
* Sets the field's read only state.
*
* @param readOnly the read only state
*/
public void setReadOnly(boolean readOnly) {
this.readOnly = readOnly;
if (rendered) {
el().setStyleName(readOnlyFieldStyle, readOnly);
getInputEl().dom.setPropertyBoolean("readOnly", readOnly);
}
}
代码示例来源:origin: stackoverflow.com
Element window = ScriptInjector.TOP_WINDOW.cast();
window.setPropertyJSO("key_jso", JsArray.createArray());
JavaScriptObject jso = window.getPropertyJSO("key_jso")
window.setPropertyBoolean("key_boolean", true);
boolean b = window.getPropertyBoolean("key_boolean")
// and the same with:
// setPropertyDouble, getPropertyDouble
// setPropertyInt, getPropertyInt
// setPropertyString, getPropertyString
// setPropertyObject, getPropertyObject
代码示例来源:origin: com.extjs/gxt
@Override
public void setReadOnly(boolean readOnly) {
this.readOnly = readOnly;
if (rendered) {
el().setStyleName(readOnlyFieldStyle, readOnly);
if (editable || (readOnly && !editable)) {
getInputEl().dom.setPropertyBoolean("readOnly", readOnly);
}
}
}
代码示例来源:origin: org.jboss.errai/errai-common
@Override
public void setValue(final T value) {
final String inputType = getElement().getPropertyString("type");
final Class<?> valueType = getValueClassForInputType(inputType);
if (Boolean.class.equals(valueType)) {
getElement().setPropertyBoolean("checked", (Boolean) value);
} else if (String.class.equals(valueType)) {
getElement().setPropertyObject("value", value != null ? value : "");
} else {
throw new IllegalArgumentException("Cannot set value " + value + " to element input[type=\"" + inputType + "\"].");
}
}
内容来源于网络,如有侵权,请联系作者删除!