本文整理了Java中com.vaadin.v7.ui.Table.changeVariables()
方法的一些代码示例,展示了Table.changeVariables()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.changeVariables()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:changeVariables
[英]Invoked when the value of a variable has changed.
[中]当变量的值更改时调用。
代码示例来源:origin: viritin/viritin
@Override
public void changeVariables(Object source,
Map<String, Object> variables) {
clientSideChange = true;
super.changeVariables(source, variables);
clientSideChange = false;
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void changeVariables(Object source, Map variables) {
super.changeVariables(source, variables);
// Notification.show("You are scrolling!\n " + variables);
// System.out.println(variables);
if (variables.containsKey("lastToBeRendered")) {
int last = MCast.toint(variables.get("lastToBeRendered"), -1);
int first = MCast.toint(variables.get("firstToBeRendered"), -1);
if (last >= 0) {
renderEventHandler.fire(null, first, last);
}
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
protected boolean changeVariables(Map<String, Object> variables) {
boolean clientNeedsContentRefresh = super.changeVariables(variables);
if (variables.containsKey("resetsortorder")) {
resetSortOrder();
markAsDirty();
}
if (specificVariablesHandler != null) {
clientNeedsContentRefresh = specificVariablesHandler.handleSpecificVariables(variables) || clientNeedsContentRefresh;
}
return clientNeedsContentRefresh;
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
public void changeVariables(Object source, Map<String, Object> variables) {
if (Page.getCurrent().getWebBrowser().isIE() && variables.containsKey("clickEvent")) {
focus();
}
super.changeVariables(source, variables);
if (shortcutActionManager != null) {
shortcutActionManager.handleActions(variables, this);
}
if (variables.containsKey("updateAggregationRow")) {
Boolean updateAggregationRow = (Boolean) variables.get("updateAggregationRow");
if (updateAggregationRow) {
markAsDirty();
}
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
@Override
public void changeVariables(Object source, Map<String, Object> variables) {
super.changeVariables(source, variables);
if (variables.containsKey("selectAll")) {
boolean selectAll = (Boolean) variables.get("selectAll");
if (selectAll) {
Collection<?> ids = getItemIds();
for (final Object id : ids) {
select(id);
}
} else {
setValue(null);
}
}
if (variables.containsKey("toggleSelection")) {
boolean selected = (Boolean) variables.get("toggleSelection");
String key = String.valueOf(variables.get("toggledRowId"));
final Object id = itemIdMapper.get(key);
if (selected) {
select(id);
} else {
unselect(id);
}
}
}
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
@Override
public void changeVariables(Object source, Map<String, Object> variables) {
super.changeVariables(source, variables);
if (variables.containsKey("toggleCollapsed")) {
String object = (String) variables.get("toggleCollapsed");
Object itemId = itemIdMapper.get(object);
toggledItemId = itemId;
toggleChildVisibility(itemId, false);
if (variables.containsKey("selectCollapsed")) {
// ensure collapsed is selected unless opened with selection
// head
if (isSelectable()) {
select(itemId);
}
}
} else if (variables.containsKey("focusParent")) {
String key = (String) variables.get("focusParent");
Object refId = itemIdMapper.get(key);
Object itemId = getParent(refId);
focusParent(itemId);
}
}
内容来源于网络,如有侵权,请联系作者删除!