/** * Creates a check box with the specified text label. * * @param label * the check box's label */ public CheckBox(String label) { this(); setText(label); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label */ public CheckBox(String label) { this(); setText(label); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param dir * the text's direction. Note that {@code DEFAULT} means * direction should be inherited from the widget's parent * element. */ public CheckBox(String label, Direction dir) { this(); setText(label, dir); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param dir * the text's direction. Note that {@code DEFAULT} means * direction should be inherited from the widget's parent * element. */ public CheckBox(String label, Direction dir) { this(); setText(label, dir); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param asHTML * <code>true</code> to treat the specified label as html */ public CheckBox(String label, boolean asHTML) { this(); if (asHTML) { setHTML(label); } else { setText(label); } }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param asHTML * <code>true</code> to treat the specified label as html */ public CheckBox(String label, boolean asHTML) { this(); if (asHTML) { setHTML(label); } else { setText(label); } }
/** * Creates a label with the specified text and a default direction * estimator. * * @param label * the check box's label * @param directionEstimator * A DirectionEstimator object used for automatic direction * adjustment. For convenience, * {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used. */ public CheckBox(String label, DirectionEstimator directionEstimator) { this(); setDirectionEstimator(directionEstimator); setText(label); }
/** * Creates a label with the specified text and a default direction * estimator. * * @param label * the check box's label * @param directionEstimator * A DirectionEstimator object used for automatic direction * adjustment. For convenience, * {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used. */ public CheckBox(String label, DirectionEstimator directionEstimator) { this(); setDirectionEstimator(directionEstimator); setText(label); }
@Override public void init(final ServerTemplatePresenter presenter) { this.presenter = presenter; ruleEnabled.setText(getRuleCheckBoxText()); ruleEnabled.setEnabled(false); processEnabled.setText(getProcessCheckBoxText()); processEnabled.setEnabled(false); planningEnabled.setText(getPlanningCheckBoxText()); planningEnabled.setEnabled(false); }
protected void initCheckBoxs(VerticalPanel popupContent) { for (final ColumnMeta<T> columnMeta : columnMetaList) { if (addThisColumnToPopup(columnMeta)) { final CheckBox checkBox = GWT.create(CheckBox.class); checkBox.setText((String) columnMeta.getHeader().getValue()); checkBox.setName((String)columnMeta.getHeader().getValue()); checkBox.setValue(columnMeta.isVisible()); checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta)); popupContent.add(checkBox); } } }
protected void initCheckBoxs(VerticalPanel popupContent) { for (final ColumnMeta<T> columnMeta : columnMetaList) { if (addThisColumnToPopup(columnMeta)) { final CheckBox checkBox = GWT.create(CheckBox.class); checkBox.setText((String) columnMeta.getHeader().getValue()); checkBox.setName((String)columnMeta.getHeader().getValue()); checkBox.setValue(columnMeta.isVisible()); checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta)); popupContent.add(checkBox); } } }
startContainer.setText(getStartContainerCheckBoxText());
chkOnlyDisplayDSLConditions.setText(GuidedRuleEditorResources.CONSTANTS.OnlyDisplayDSLActions()); chkOnlyDisplayDSLConditions.setValue(onlyShowDSLStatements); chkOnlyDisplayDSLConditions.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
chkOnlyDisplayDSLConditions.setText(GuidedRuleEditorResources.CONSTANTS.OnlyDisplayDSLConditions()); chkOnlyDisplayDSLConditions.setValue(onlyShowDSLStatements); chkOnlyDisplayDSLConditions.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
chkOnlyDisplayDSLConditions.setText(GuidedRuleEditorResources.CONSTANTS.OnlyDisplayDSLActions()); chkOnlyDisplayDSLConditions.setValue(onlyShowDSLStatements); chkOnlyDisplayDSLConditions.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
chkOnlyDisplayDSLConditions.setText(GuidedRuleEditorResources.CONSTANTS.OnlyDisplayDSLConditions()); chkOnlyDisplayDSLConditions.setValue(onlyShowDSLStatements); chkOnlyDisplayDSLConditions.addValueChangeHandler(new ValueChangeHandler<Boolean>() {