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

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

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

origin: com.google.gwt/gwt-servlet

/**
 * Sets whether this widget is enabled.
 *
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: com.google.gwt/gwt-servlet

/**
 * Sets whether this widget is enabled.
 * 
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: com.google.gwt/gwt-servlet

/**
 * Turns read-only mode on or off.
 * 
 * @param readOnly if <code>true</code>, the widget becomes read-only; if
 *          <code>false</code> the widget becomes editable
 */
public void setReadOnly(boolean readOnly) {
 getElement().setPropertyBoolean("readOnly", readOnly);
 String readOnlyStyle = "readonly";
 if (readOnly) {
  addStyleDependentName(readOnlyStyle);
 } else {
  removeStyleDependentName(readOnlyStyle);
 }
}
origin: com.extjs/gxt

/**
 * Disables the element.
 * 
 * @return this
 */
public El disable() {
 dom.setPropertyBoolean("disabled", true);
 return this;
}
origin: com.extjs/gxt

/**
 * Enables the element.
 * 
 * @return this
 */
public El enable() {
 dom.setPropertyBoolean("disabled", false);
 return this;
}
origin: laaglu/lib-gwt-file

/**
 * Sets whether this widget is enabled.
 * 
 * @param enabled
 *            <code>true</code> to enable the widget, <code>false</code> to
 *            disable it
 */
public void setEnabled(boolean enabled) {
  getElement().setPropertyBoolean("disabled", !enabled);
}
origin: net.wetheinter/gwt-user

/**
 * Sets whether this widget is enabled.
 *
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: org.uberfire/uberfire-widgets-commons

public void setMultiple(boolean multiple) {
  if (multiple) {
    upload.getElement().setPropertyBoolean("multiple",
                        true);
  }
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Sets whether this widget is enabled.
 * 
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: net.wetheinter/gwt-user

/**
 * Sets whether this widget is enabled.
 * 
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Sets whether this widget is enabled.
 *
 * @param enabled <code>true</code> to enable the widget, <code>false</code>
 *          to disable it
 */
public void setEnabled(boolean enabled) {
 getElement().setPropertyBoolean("disabled", !enabled);
}
origin: com.googlecode.gwtupload/gwtupload

 public void setEnabled(boolean enabled) {
  getElement().setPropertyBoolean("disabled", !enabled);
 }
}
origin: kiegroup/appformer

public void setMultiple(boolean multiple) {
  if (multiple) {
    upload.getElement().setPropertyBoolean("multiple",
                        true);
  }
}
origin: gwtbootstrap3/gwtbootstrap3

@Override
public void setEnabled(final boolean enabled) {
  getElement().setPropertyBoolean(DISABLED, !enabled);
}
origin: de.esoco/gewt

/***************************************
 * @see HasEnabled#setEnabled(boolean)
 */
@Override
public void setEnabled(boolean bEnabled)
{
  getElement().setPropertyBoolean("disabled", !bEnabled);
  setResource(bEnabled ? rDefaultImage : rDisabledImage);
}
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

/**
 * Sets the field's read only state.
 * 
 * @param readOnly the read only state
 */
public void setReadOnly(boolean readOnly) {
 this.readOnly = readOnly;
 if (rendered) {
  el().setStyleName(readOnlyFieldStyle, readOnly);
  getInputEl().dom.setPropertyBoolean("readOnly", readOnly);
 }
}
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: com.extjs/gxt

@Override
public void setReadOnly(boolean readOnly) {
 this.readOnly = readOnly;
 if (rendered) {
  el().setStyleName(readOnlyFieldStyle, readOnly);
  if (editable || (readOnly && !editable)) {
   getInputEl().dom.setPropertyBoolean("readOnly", readOnly);
  }
 }
}
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 + "\"].");
 }
}
com.google.gwt.user.clientElementsetPropertyBoolean

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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Notification (javax.management)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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