本文整理了Java中com.google.gwt.user.client.Element.setPropertyString()
方法的一些代码示例,展示了Element.setPropertyString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setPropertyString()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setPropertyString
暂无
代码示例来源:origin: libgdx/libgdx
/** Sets the placeholder text displayed in the text box.
*
* @param text the placeholder text */
public void setPlaceholder (String text) {
placeholder = (text != null ? text : "");
getElement().setPropertyString("placeholder", placeholder);
}
}
代码示例来源:origin: libgdx/libgdx
/** Sets the placeholder text displayed in the text box.
*
* @param text the placeholder text */
public void setPlaceholder (String text) {
placeholder = (text != null ? text : "");
getElement().setPropertyString("placeholder", placeholder);
}
}
代码示例来源:origin: kaaproject/kaa
public void reset() {
fu.getElement().setPropertyString("value", "");
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an empty vertical panel.
*/
public VerticalPanel() {
getTable().setPropertyString("cellSpacing", "0");
getTable().setPropertyString("cellPadding", "0");
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* @deprecated Call and override {@link #setCellHorizontalAlignment(Element,
* HorizontalAlignmentConstant)} instead.
*/
@Deprecated
protected void setCellHorizontalAlignment(com.google.gwt.user.client.Element td,
HorizontalAlignmentConstant align) {
td.setPropertyString("align", align.getTextAlignString());
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public void setName(String name) {
getElement().setPropertyString("name", name);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public void setAccessKey(char key) {
getElement().setPropertyString("accessKey", "" + key);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets this object's text. Note that some browsers will manipulate the text
* before adding it to the widget. For example, most browsers will strip all
* <code>\r</code> from the text, except IE which will add a <code>\r</code>
* before each <code>\n</code>. Use {@link #getText()} to get the text
* directly from the widget.
*
* @param text the object's new text
*/
public void setText(String text) {
getElement().setPropertyString("value", text != null ? text : "");
autoDirHandler.refreshDirection();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an empty horizontal panel.
*/
public HorizontalPanel() {
tableRow = DOM.createTR();
DOM.appendChild(getBody(), tableRow);
getTable().setPropertyString("cellSpacing", "0");
getTable().setPropertyString("cellPadding", "0");
}
代码示例来源:origin: com.extjs/gxt
private void setTarget(String target) {
this.target = target;
if (rendered) {
form.dom.setPropertyString("target", target);
}
}
代码示例来源:origin: com.extjs/gxt
/**
* Sets the element's value property.
*
* @param value the value
*/
public El setValue(String value) {
dom.setPropertyString("value", value);
return this;
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public void setAutoCorrectEnabled(boolean enabled) {
if (enabled) {
box.getElement().setPropertyString("autocorrect", "on");
} else {
box.getElement().setPropertyString("autocorrect", "off");
}
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* {@inheritDoc}
*/
@Override
public void setAccessKey(char cKey)
{
getElement().setPropertyString("accessKey", "" + cKey);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates an empty vertical panel.
*/
public VerticalPanel() {
getTable().setPropertyString("cellSpacing", "0");
getTable().setPropertyString("cellPadding", "0");
}
代码示例来源:origin: dankurka/mgwt
@Override
public void setAutoCorrectEnabled(boolean enabled) {
if (enabled) {
box.getElement().setPropertyString("autocorrect", "on");
} else {
box.getElement().setPropertyString("autocorrect", "off");
}
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public void setAutoCapitalize(boolean capitalize) {
if (capitalize) {
box.getElement().setPropertyString("autocapitalize", "on");
} else {
box.getElement().setPropertyString("autocapitalize", "off");
}
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void setValue(String value, boolean fireEvents) {
getElement().setPropertyString("value", value != null ? value : "");
super.setValue(value, fireEvents);
}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
@Override
public void setValue(String value, boolean fireEvents) {
getElement().setPropertyString("value", value != null ? value : "");
super.setValue(value, fireEvents);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates an empty horizontal panel.
*/
public HorizontalPanel() {
tableRow = DOM.createTR();
DOM.appendChild(getBody(), tableRow);
getTable().setPropertyString("cellSpacing", "0");
getTable().setPropertyString("cellPadding", "0");
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the placeholder string that will be display in an empty text
* component.
*
* @param sPlaceholder The placeholder string
*/
public void setPlaceholder(String sPlaceholder)
{
getWidget().getElement()
.setPropertyString("placeholder",
getContext().expandResource(sPlaceholder));
}
内容来源于网络,如有侵权,请联系作者删除!