本文整理汇总了Java中com.google.gwt.event.logical.shared.ValueChangeEvent.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java ValueChangeEvent.getValue方法的具体用法?Java ValueChangeEvent.getValue怎么用?Java ValueChangeEvent.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.event.logical.shared.ValueChangeEvent
的用法示例。
在下文中一共展示了ValueChangeEvent.getValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSelectChangeHandler
import com.google.gwt.event.logical.shared.ValueChangeEvent; //导入方法依赖的package包/类
@Override
protected ValueChangeHandler<Boolean> getSelectChangeHandler() {
return new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(final ValueChangeEvent<Boolean> event) {
if (event.getValue()) {
setActive(true);
basicToolBar.setAnchorVisible(true);
basicToolBar.setAnchorColor(GREEN);
basicToolBar.setWhat3Words("");
createW3wLayer();
} else {
setActive(false);
basicToolBar.setAnchorVisible(false);
basicToolBar.setAnchorColor(RED);
}
}
};
}
示例2: onValueChange
import com.google.gwt.event.logical.shared.ValueChangeEvent; //导入方法依赖的package包/类
@Override
public void onValueChange(ValueChangeEvent<String> event) {
final String token = event.getValue();
logger.info("value change:" + token);
loginController.go(token);
}
示例3: getMultiDeletionHandler
import com.google.gwt.event.logical.shared.ValueChangeEvent; //导入方法依赖的package包/类
private ValueChangeHandler<Boolean> getMultiDeletionHandler() {
return new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
if (event.getValue()) {
VectorLayer layer = (VectorLayer) getLayer();
if (layer.getSelectedFeatures() != null) {
confirm(Arrays.asList(layer.getSelectedFeatures()));
}
}
}
};
}
示例4: getSelectChangeHandler
import com.google.gwt.event.logical.shared.ValueChangeEvent; //导入方法依赖的package包/类
protected ValueChangeHandler<Boolean> getSelectChangeHandler() {
return new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(final ValueChangeEvent<Boolean> event) {
if (event.getValue()) {
activeControls(controls);
} else {
deactiveControls(controls);
}
}
};
}
示例5: getSelectChangeHandler
import com.google.gwt.event.logical.shared.ValueChangeEvent; //导入方法依赖的package包/类
@Override
protected ValueChangeHandler<Boolean> getSelectChangeHandler() {
return new ValueChangeHandler<Boolean>() {
@Override
public void onValueChange(final ValueChangeEvent<Boolean> event) {
if (event.getValue()) {
confirmSetMaxExtent(event.getValue());
} else {
confirmClearMaxExtent(event.getValue());
}
}
};
}