本文整理了Java中com.google.gwt.user.client.Element.setPropertyObject()
方法的一些代码示例,展示了Element.setPropertyObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setPropertyObject()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setPropertyObject
暂无
代码示例来源:origin: fr.lteconsulting/hexa.core
public void addButton( Button button, Object obj )
{
button.getElement().setPropertyObject( "object", obj );
panel.add( button );
}
代码示例来源:origin: ltearno/hexa.tools
public void addButton( Button button, Object obj )
{
button.getElement().setPropertyObject( "object", obj );
panel.add( button );
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
/**
* Set the pickers date.
*/
public void setPickerDate(JsDate date, Element picker) {
try {
$(picker).pickadate("picker").set("select", date, () -> {
DOM.createFieldSet().setPropertyObject("muted", true);
});
} catch (Exception e) {
e.printStackTrace();
}
}
代码示例来源: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: 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 + "\"].");
}
}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
/**
* Set the pickers date.
*/
public void setPickerDate(JsDate date, Element picker) {
try {
$(picker).pickadate("picker").set("select", date, () -> {
DOM.createFieldSet().setPropertyObject("muted", true);
});
} catch (Exception e) {
e.printStackTrace();
}
}
内容来源于网络,如有侵权,请联系作者删除!