@Override protected void resetImpl() { name.setValue(""); mandatory.setValue(false); description.setValue(""); createdUsername.setValue(""); createdDateTime.setValue(""); }
@Override protected void resetImpl() { super.resetImpl(); minSchemaVersion.reset(); maxSchemaVersion.reset(); confirmDelivery.setValue(true); if (metadatalistBox != null) { generateMetadataListBox(); } }
/** * 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); }
@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); }
/** * 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); }
/** * 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); } }
/** * 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()); }
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 ); }
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); } } }
showFurtherErrors.setValue(showErrors); showFurtherErrors.setText("Show further errors"); showFurtherErrors.getElement().getStyle().setFontSize(10, Style.Unit.PT);
setValue(checked); setEnabled(enabled); setFormValue(formValue);
/** * 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()); }
/** * {@inheritDoc} */ public void setValue(Object value) { value = Boolean.valueOf(String.valueOf(value)); if (getValue() == null) getCheckBox().setValue((Boolean) value); super.setValue(value); }
@Override protected void onHide() { btnUpload.setEnabled(false); overwrite.setValue(false); uploadPanel.remove(file); }
/** * 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()); }
@Override public void setValue(JSONValue value) { if (value != null && value.isBoolean() != null) { propertyValueBox.setValue(value.isBoolean().booleanValue()); } }
public EditorBooleanPropertyWidget(String name, boolean value) { propertyName.setText(name); propertyValueBox = new CheckBox(); propertyValueBox.setValue(value); propertyValueBox.addValueChangeHandler(this); valuePanel.add(propertyValueBox); }
@Override public void clear() { factTypeList.setSelectedIndex(0); binding.setText(""); binding.setEnabled(true); negatePatternMatch.setValue(false); negatePatternContainer.setHidden(false); hideError(); }
@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); }