本文整理匯總了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());
}
}
};
}