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

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

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

Element.getPropertyString介绍

暂无

代码示例

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

/**
 * Gets the title associated with this object. The title is the 'tool-tip'
 * displayed to users when they hover over the object.
 * 
 * @return the object's title
 */
public String getTitle() {
 return getElement().getPropertyString("title");
}

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

@Override
public String getTitle() {
 return getContainerElement().getPropertyString("title");
}

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

/**
  * Gets the name associated with this frame.
  * 
  * @return the frame's name
  */
 public String getName() {
  return getElement().getPropertyString("name");
 }
}

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

public String getText() {
 return getElement().getPropertyString("value");
}

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

public String getName() {
 return getElement().getPropertyString("name");
}

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

/**
  * Gets the name associated with this frame.
  * 
  * @return the frame's name
  */
 public String getName() {
  return getElement().getPropertyString("name");
 }
}

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

@Override
public boolean isAutoCapitalize() {
 String auto = box.getElement().getPropertyString("autocapitalize");
 return "on".equals(auto);
}

代码示例来源:origin: dankurka/mgwt

@Override
public boolean isAutoCapitalize() {
 String auto = box.getElement().getPropertyString("autocapitalize");
 return "on".equals(auto);
}

代码示例来源:origin: GwtMaterialDesign/gwt-material

@Override
public String getValue() {
  return getElement().getPropertyString("value");
}

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

@Override
public boolean isAutoCorrectEnabled() {
 String autoCorrent = box.getElement().getPropertyString("autocorrect");
 return "on".equals(autoCorrent);
}

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

/**
 * Gets the title associated with this object. The title is the 'tool-tip'
 * displayed to users when they hover over the object.
 * 
 * @return the object's title
 */
public String getTitle() {
 return getElement().getPropertyString("title");
}

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

@Override
public String getValue() {
  return getElement().getPropertyString("value");
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material

@Override
public String getValue() {
  return getElement().getPropertyString("value");
}

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

/**
 * Gets the title associated with this object. The title is the 'tool-tip'
 * displayed to users when they hover over the object.
 * 
 * @return the object's title
 */
public String getTitle() {
 return getElement().getPropertyString("title");
}

代码示例来源:origin: com.extjs/gxt

/**
 * Returns the index of the element.
 * 
 * @param element the element
 * @return the index
 */
public int indexOf(Element element) {
 if (element.getPropertyString("viewIndex") != null) {
  return element.getPropertyInt("viewIndex");
 }
 return all.indexOf(element);
}

代码示例来源:origin: org.jboss.errai/errai-common

@Override
public Class<?> getValueType() {
 return getValueClassForInputType(getElement().getPropertyString("type"));
}

代码示例来源: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: 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

protected void onDayClick(ComponentEvent ce) {
 ce.preventDefault();
 El target = ce.getTargetEl();
 El e = target.findParent("a", 5);
 if (e != null) {
  String dt = e.dom.getPropertyString("dateValue");
  if (dt != null) {
   handleDateClick(e, dt);
   return;
  }
 }
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material-addins

protected void checkTabIndex(SuggestBox widget) {
  final int INITIAL_TAB_INDEX = 0;
  final int FINAL_TAB_INDEX = 1;
  // when / then
  widget.setTabIndex(INITIAL_TAB_INDEX);
  assertEquals(INITIAL_TAB_INDEX, widget.getTabIndex());
  assertEquals(String.valueOf(INITIAL_TAB_INDEX), widget.getElement().getPropertyString("tabIndex"));
  widget.setTabIndex(FINAL_TAB_INDEX);
  assertEquals(FINAL_TAB_INDEX, widget.getTabIndex());
  assertEquals(String.valueOf(FINAL_TAB_INDEX), widget.getElement().getPropertyString("tabIndex"));
}

相关文章

Element类方法