Tabnine Logo
Element.getPropertyBoolean
Code IndexAdd Tabnine to your IDE (free)

How to use
getPropertyBoolean
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.getPropertyBoolean (Showing top 20 results out of 315)

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();
com.google.gwt.user.clientElementgetPropertyBoolean

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now