本文整理了Java中com.google.gwt.user.client.ui.CheckBox.setValue()
方法的一些代码示例,展示了CheckBox.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setValue()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:setValue
[英]Checks or unchecks the check box.
Note that this does not set the value property of the checkbox input element wrapped by this widget. For access to that property, see #setFormValue(String)
[中]
代码示例来源:origin: kaaproject/kaa
@Override
protected void resetImpl() {
name.setValue("");
mandatory.setValue(false);
description.setValue("");
createdUsername.setValue("");
createdDateTime.setValue("");
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void resetImpl() {
super.resetImpl();
minSchemaVersion.reset();
maxSchemaVersion.reset();
confirmDelivery.setValue(true);
if (metadatalistBox != null) {
generateMetadataListBox();
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Checks or unchecks the check box.
* <p>
* Note that this <em>does not</em> set the value property of the checkbox
* input element wrapped by this widget. For access to that property, see
* {@link #setFormValue(String)}
*
* @param value true to check, false to uncheck; null value implies false
*/
@Override
public void setValue(Boolean value) {
setValue(value, false);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void resetImpl() {
name.setValue("");
name.setEnabled(true);
nameLabel.addStyleName(REQUIRED);
weight.setValue(null);
weight.setEnabled(true);
weightLabel.addStyleName(REQUIRED);
description.setValue("");
createdUsername.setValue("");
createdDateTime.setValue("");
addProfileFilterButton.setVisible(!create);
addConfigurationButton.setVisible(!create);
addTopicButton.setVisible(!create);
profileFiltersGrid.setEnableActions(true);
configurationsGrid.setEnableActions(true);
includeDeprecatedProfileFilters.setVisible(!create);
includeDeprecatedProfileFilters.setValue(false);
includeDeprecatedConfigurations.setVisible(!create);
includeDeprecatedConfigurations.setValue(false);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Checks or unchecks this check box. Does not fire {@link ValueChangeEvent}.
* (If you want the event to fire, use {@link #setValue(Boolean, boolean)})
*
* @param checked <code>true</code> to check the check box.
* @deprecated Use {@link #setValue(Boolean)} instead
*/
@Deprecated
public void setChecked(boolean checked) {
setValue(checked);
}
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new CtlSchemasViewImpl.
*/
public CtlSchemasViewImpl() {
super(true);
if (displayShowHigherLevelScopeCheckBox()) {
showHigherScopeCheckBox = new CheckBox(Utils.constants.displayHigherScopes());
showHigherScopeCheckBox.addStyleName(Utils.kaaAdminStyle.bAppContentTitle());
Element.as(showHigherScopeCheckBox.getElement().getChild(0))
.getStyle().setMarginRight(10, Unit.PX);
showHigherScopeCheckBox.setValue(defaultShowHigherLevelScopes());
appendToolbarWidget(showHigherScopeCheckBox);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* This method is called when a widget is detached from the browser's
* document. Overridden because of IE bug that throws away checked state and
* in order to clear the event listener off of the <code>inputElem</code>.
*/
@Override
protected void onUnload() {
// Clear out the inputElem's event listener (breaking the circular
// reference between it and the widget).
DOM.setEventListener(inputElem, null);
setValue(getValue());
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
private void resetCheckBoxes() {
typeCheckBox.setValue( false );
diseaseCheckBox.setValue( false );
diseaseAndAgeCheckBox.setValue( false );
ageCheckBox.setValue( false );
geneticAlterationCheckBox.setValue( false );
ethnicityCheckBox.setValue( false );
sexCheckBox.setValue( false );
collectionCheckBox.setValue( false );
inductionCheckBox.setValue( false );
qcCheckBox.setValue( false );
}
代码示例来源:origin: sk.seges.acris/acris-widgets-beantable
public void selectAllCheckBoxes(boolean select) {
Iterator<List<CheckBox>> iterator = entityToCheckBoxsMap.values().iterator();
List<CheckBox> checkBoxList;
while (iterator.hasNext()) {
checkBoxList = iterator.next();
for (CheckBox checkBox : checkBoxList) {
checkBox.setValue(select);
}
}
}
代码示例来源:origin: org.jboss.errai/errai-bus
showFurtherErrors.setValue(showErrors);
showFurtherErrors.setText("Show further errors");
showFurtherErrors.getElement().getStyle().setFontSize(10, Style.Unit.PT);
代码示例来源:origin: com.google.gwt/gwt-servlet
setValue(checked);
setEnabled(enabled);
setFormValue(formValue);
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** {@inheritDoc} */
@Override
public void closeDialog() {
hide();
btnUpload.setEnabled(false);
overwrite.setValue(false);
skipFirstLevel.setValue(false);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* This method is called when a widget is detached from the browser's
* document. Overridden because of IE bug that throws away checked state and
* in order to clear the event listener off of the <code>inputElem</code>.
*/
@Override
protected void onUnload() {
// Clear out the inputElem's event listener (breaking the circular
// reference between it and the widget).
DOM.setEventListener(inputElem, null);
setValue(getValue());
}
代码示例来源:origin: net.sf.advanced-gwt/advanced-gwt
/**
* {@inheritDoc}
*/
public void setValue(Object value) {
value = Boolean.valueOf(String.valueOf(value));
if (getValue() == null)
getCheckBox().setValue((Boolean) value);
super.setValue(value);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
protected void onHide() {
btnUpload.setEnabled(false);
overwrite.setValue(false);
uploadPanel.remove(file);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* This method is called when a widget is detached from the browser's
* document. Overridden because of IE bug that throws away checked state and
* in order to clear the event listener off of the <code>inputElem</code>.
*/
@Override
protected void onUnload() {
// Clear out the inputElem's event listener (breaking the circular
// reference between it and the widget).
DOM.setEventListener(inputElem, null);
setValue(getValue());
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
public void setValue(JSONValue value) {
if (value != null && value.isBoolean() != null) {
propertyValueBox.setValue(value.isBoolean().booleanValue());
}
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
public EditorBooleanPropertyWidget(String name, boolean value) {
propertyName.setText(name);
propertyValueBox = new CheckBox();
propertyValueBox.setValue(value);
propertyValueBox.addValueChangeHandler(this);
valuePanel.add(propertyValueBox);
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public void clear() {
factTypeList.setSelectedIndex(0);
binding.setText("");
binding.setEnabled(true);
negatePatternMatch.setValue(false);
negatePatternContainer.setHidden(false);
hideError();
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Inject
public ZipImporterPageViewImpl(
ProjectImporterResource resource, ZipImporterPageViewImplUiBinder uiBinder) {
style = resource.zipImporterPageStyle();
style.ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
projectName.getElement().setAttribute("maxlength", "32");
projectDescription.getElement().setAttribute("maxlength", "256");
skipFirstLevel.setValue(false);
}
内容来源于网络,如有侵权,请联系作者删除!