本文整理了Java中com.google.gwt.user.client.ui.CheckBox.addValueChangeHandler()
方法的一些代码示例,展示了CheckBox.addValueChangeHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.addValueChangeHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:addValueChangeHandler
暂无
代码示例来源:origin: kaaproject/kaa
detailsTable.setWidget(idx, 0, confirmDeliveryLabel);
detailsTable.setWidget(idx, 1, confirmDelivery);
confirmDelivery.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
代码示例来源:origin: kaaproject/kaa
detailsTable.setWidget(3, 0, mandatoryLabel);
detailsTable.setWidget(3, 1, mandatory);
mandatory.addValueChangeHandler(this);
代码示例来源:origin: ltearno/hexa.tools
@Override
protected void installRealHandler( Widget widget )
{
((CheckBox) widget).addValueChangeHandler( new ValueChangeHandler<Boolean>()
{
public void onValueChange( ValueChangeEvent<Boolean> event )
{
signalChange( (CheckBox) event.getSource() );
}
} );
}
}
代码示例来源:origin: nmorel/gflot
@Override
public HandlerRegistration addValueChangeHandler( ValueChangeHandler<Boolean> handler )
{
return checkBox.addValueChangeHandler( handler );
}
代码示例来源:origin: fr.lteconsulting/hexa.core
@Override
protected void installRealHandler( Widget widget )
{
((CheckBox) widget).addValueChangeHandler( new ValueChangeHandler<Boolean>()
{
public void onValueChange( ValueChangeEvent<Boolean> event )
{
signalChange( (CheckBox) event.getSource() );
}
} );
}
}
代码示例来源:origin: org.jboss.errai/errai-bus
showFurtherErrors.getElement().getStyle().setColor("white");
showFurtherErrors.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(final ValueChangeEvent<Boolean> booleanValueChangeEvent) {
代码示例来源:origin: oVirt/ovirt-engine
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler handler) {
return asCheckBox().addValueChangeHandler(handler);
}
}
代码示例来源:origin: bedatadriven/activityinfo
public BooleanFieldWidget(final ValueUpdater valueUpdater) {
this.valueUpdater = valueUpdater;
this.checkBox = new CheckBox();
this.checkBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
fireValueChanged();
}
});
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
public HandlerRegistration addValueChangeHandler(ValueChangeHandler handler) {
return asCheckBox().addValueChangeHandler(new ValueChangeHandlerDecorator(handler));
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public MagnoliaTableHead() {
super();
selectAll = new CheckBox();
selectAll.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
client.updateVariable(paintableId, "selectAll", event.getValue(), true);
}
});
selectAll.addStyleName("v-select-all");
}
代码示例来源:origin: threerings/narya
@Override
protected Widget buildWidget (ConfigField field) {
_box = new CheckBox();
_box.setStyleName("configCheckBoxEditor");
resetField();
_box.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
public void onValueChange (ValueChangeEvent<Boolean> changeEvent) {
updateModificationState();
}
});
return _box;
}
代码示例来源: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: org.eclipse.che.core/che-core-ide-app
private void addHandlers() {
isUseFileMask.addValueChangeHandler(event -> filesMask.setEnabled(event.getValue()));
isUseDirectory.addValueChangeHandler(
event -> {
directory.setEnabled(event.getValue());
selectPathButton.setEnabled(event.getValue());
});
text.addKeyUpHandler(event -> acceptButton.setEnabled(!text.getValue().isEmpty()));
selectPathButton.addClickHandler(event -> showSelectPathDialog());
}
}
代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt2-plugin-tms-example-jar
@Override
public void onSuccess(TileMapServiceInfo result) {
for (final ListTileMapInfo tileMap : result.getTileMaps()) {
// Only add layers using LatLon:
if ("EPSG:4326".equalsIgnoreCase(tileMap.getSrs())) {
CheckBox layerBox = new CheckBox(tileMap.getTitle());
layerBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
if (event.getValue()) {
addLayer(tileMap);
} else {
mapPresenter.getLayersModel().removeLayer(tileMap.getTitle());
}
}
});
layerList.add(layerBox);
}
}
}
代码示例来源:origin: ltearno/hexa.tools
private CheckBox getCheckBoxForRecord( T record )
{
CheckBox cb = checkBoxes.get( record.getId() );
if( cb == null )
{
cb = new CheckBox();
checkBoxes.put( record.getId(), cb );
cb.addValueChangeHandler( valueChangeHandler );
}
return cb;
}
代码示例来源:origin: org.geomajas/geomajas-client-gwt2-example-base
public SampleOverviewPage() {
initWidget(UIBINDER.createAndBindUi(this));
listViewImg.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
applyView(false);
}
});
blockViewImg.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
applyView(true);
}
});
sampleInNewTab.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
ExampleBase.setSampleInNewTab(event.getValue());
}
});
}
代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client
@Inject
public MoveViewImpl(
JavaLocalizationConstant locale,
CellTreeResources cellTreeResources,
JavaResources resources) {
this.locale = locale;
this.cellTreeResources = cellTreeResources;
this.resources = resources;
setTitle(locale.moveDialogTitle());
setWidget(UI_BINDER.createAndBindUi(this));
createButtons(locale);
updateFullNames.addValueChangeHandler(event -> patternField.setEnabled(event.getValue()));
}
代码示例来源:origin: fr.lteconsulting/hexa.core
private CheckBox getCheckBoxForRecord( T record )
{
CheckBox cb = checkBoxes.get( record.getId() );
if( cb == null )
{
cb = new CheckBox();
checkBoxes.put( record.getId(), cb );
cb.addValueChangeHandler( valueChangeHandler );
}
return cb;
}
代码示例来源:origin: org.geomajas/geomajas-client-gwt2-example-jar
public void onMapInitialized(MapInitializationEvent event) {
// When the map initializes: add a CheckBox for every layer, so the use can toggle visibility:
for (int i = 0; i < mapPresenter.getLayersModel().getLayerCount(); i++) {
final Layer layer = mapPresenter.getLayersModel().getLayer(i);
CheckBox layerCheck = new CheckBox(layer.getTitle());
layerCheck.setValue(layer.isMarkedAsVisible());
// When CheckBox value changes, change the layer's visibility as well:
layerCheck.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
public void onValueChange(ValueChangeEvent<Boolean> event) {
if (event.getValue() != null) {
layer.setMarkedAsVisible(event.getValue());
}
}
});
layerCheckBoxLayout.add(layerCheck);
}
// Now zoom in a lot, because the countries layer is not visible at high altitudes:
mapPresenter.getViewPort().applyBounds(ExampleBase.BBOX_ITALY);
}
}
代码示例来源:origin: org.geomajas/geomajas-client-gwt2-example-jar
public void onMapInitialized(MapInitializationEvent event) {
// Add layer specific animation CheckBoxes:
for (int i = 0; i < mapPresenter.getLayersModel().getLayerCount(); i++) {
final Layer layer = mapPresenter.getLayersModel().getLayer(i);
CheckBox cb = new CheckBox("Animate: " + layer.getTitle());
cb.setValue(mapPresenter.getLayersModelRenderer().isAnimated(layer));
cb.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
public void onValueChange(ValueChangeEvent<Boolean> event) {
mapPresenter.getLayersModelRenderer().setAnimated(layer, event.getValue());
}
});
layerPanel.add(cb);
}
container = mapPresenter.getContainerManager().addWorldContainer();
fillContainerAndMakeBboxes();
// Zoom in (scale times 4), to get a better view:
mapPresenter.getViewPort().applyBounds(ExampleBase.BBOX_AFRICA);
}
}
内容来源于网络,如有侵权,请联系作者删除!