Example usage for com.google.gwt.query.client GQuery prop

List of usage examples for com.google.gwt.query.client GQuery prop

Introduction

In this page you can find the example usage for com.google.gwt.query.client GQuery prop.

Prototype

public GQuery prop(String key, Function closure) 

Source Link

Document

Sets a boolean property to a computed value on all matched elements.

Usage

From source file:org.bonitasoft.web.toolkit.client.ui.component.table.Table.java

License:Open Source License

private void setCheckboxesValue(GQuery checkboxes, boolean value, boolean silent) {
    if (isCheckable(checkboxes)) {
        if (value) {
            checkboxes.prop("checked", true);
        } else {/*from  w w  w. j  ava2 s . c  o  m*/
            checkboxes.prop("checked", false);
        }
        if (!silent) {
            checkboxes.trigger(Event.ONCHANGE);
        }
    }
}