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

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

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

Element.getPropertyBoolean介绍

暂无

代码示例

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

/**
 * Determines whether or not the widget is read-only.
 * 
 * @return <code>true</code> if the widget is currently read-only,
 *         <code>false</code> if the widget is currently editable
 */
public boolean isReadOnly() {
 return getElement().getPropertyBoolean("readOnly");
}

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

/**
 * Gets whether this widget is enabled.
 *
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

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

/**
 * Gets whether this widget is enabled.
 * 
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

代码示例来源:origin: stackoverflow.com

Element $wnd = (Element)Document.get().<Element>cast().getPropertyObject("defaultView");
boolean mybool = $wnd.getPropertyBoolean("mybool");

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

@Override
  public boolean isEnabled() {
    return !getElement().getPropertyBoolean(DISABLED);
  }
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

@Override
  public boolean isEnabled() {
    return !getElement().getPropertyBoolean(DISABLED);
  }
}

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

/**
 * Gets whether this widget is enabled.
 *
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

代码示例来源:origin: de.esoco/gewt

/***************************************
 * @see HasEnabled#isEnabled()
 */
@Override
public boolean isEnabled()
{
  return !getElement().getPropertyBoolean("disabled");
}

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

/**
 * Gets whether this widget is enabled.
 * 
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

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

/**
 * Determines whether or not the widget is read-only.
 * 
 * @return <code>true</code> if the widget is currently read-only,
 *         <code>false</code> if the widget is currently editable
 */
public boolean isReadOnly() {
 return getElement().getPropertyBoolean("readOnly");
}

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

/**
 * Determines whether or not the widget is read-only.
 * 
 * @return <code>true</code> if the widget is currently read-only,
 *         <code>false</code> if the widget is currently editable
 */
public boolean isReadOnly() {
 return getElement().getPropertyBoolean("readOnly");
}

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

/**
 * Gets whether this widget is enabled.
 *
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

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

/**
 * Gets whether this widget is enabled.
 * 
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

代码示例来源:origin: laaglu/lib-gwt-file

/**
 * Gets whether this widget is enabled.
 * 
 * @return <code>true</code> if the widget is enabled
 */
public boolean isEnabled() {
  return !getElement().getPropertyBoolean("disabled");
}    
/**

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

public boolean isEnabled() {
 return !getElement().getPropertyBoolean("disabled");
}

代码示例来源: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: org.jboss.errai/errai-common

@SuppressWarnings("unchecked")
@Override
public T getValue() {
 final String inputType = getElement().getPropertyString("type");
 final Class<?> valueType = getValueClassForInputType(inputType);
 if (Boolean.class.equals(valueType)) {
  return (T) (Boolean) getElement().getPropertyBoolean("checked");
 }
 else if (String.class.equals(valueType)) {
  final Object rawValue = getElement().getPropertyObject("value");
  return (T) (rawValue != null ? rawValue : "");
 }
 else {
  throw new RuntimeException("Unrecognized input element type [" + inputType + "]");
 }
}

代码示例来源:origin: errai/errai

@SuppressWarnings("unchecked")
@Override
public T getValue() {
 final String inputType = getElement().getPropertyString("type");
 final Class<?> valueType = getValueClassForInputType(inputType);
 if (Boolean.class.equals(valueType)) {
  return (T) (Boolean) getElement().getPropertyBoolean("checked");
 }
 else if (String.class.equals(valueType)) {
  final Object rawValue = getElement().getPropertyObject("value");
  return (T) (rawValue != null ? rawValue : "");
 }
 else {
  throw new RuntimeException("Unrecognized input element type [" + inputType + "]");
 }
}

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

@Override
protected void onClick(ComponentEvent ce) {
 super.onClick(ce);
 if (readOnly) {
  ce.stopEvent();
  return;
 }
 boolean v = getInputEl().dom.getPropertyBoolean("checked");
 setValue(v);
}

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

|| ce.getTarget().getPropertyBoolean("disabled")) {
ce.preventDefault();

相关文章

微信公众号

最新文章

更多

Element类方法