• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java OnStateChange类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.vaadin.client.annotations.OnStateChange的典型用法代码示例。如果您正苦于以下问题:Java OnStateChange类的具体用法?Java OnStateChange怎么用?Java OnStateChange使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OnStateChange类属于com.vaadin.client.annotations包,在下文中一共展示了OnStateChange类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setSelectionMode

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("selectionMode")
void setSelectionMode() {
	if (clickHandler != null) {
		clickHandler.removeHandler();
		clickHandler = null;
	}

	BodyClickHandler handler;
	Grid<JsonObject> grid = getGrid();
	switch (getState().selectionMode) {
	case CTRL:
		handler = new CtrlClickSelectionHandler(grid);
		break;
	case SIMPLE:
		handler = new SimpleClickSelectionHandler(grid);
		break;
	case SHIFT:
		handler = new ShiftCtrlClickSelectionHandler(grid, getRpcProxy(ShiftSelectRpc.class));
		break;
	case NONE:
	default:
		return;
	}

	clickHandler = grid.addBodyClickHandler(handler);
}
 
开发者ID:tsuoanttila,项目名称:GridExtensionPack,代码行数:27,代码来源:TableSelectionModelConnector.java


示例2: updateOpenShortcuts

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("openShortcuts")
void updateOpenShortcuts() {
    editorManager.clearOpenShortcuts();
    for (int sc : getState().openShortcuts) {
        editorManager.addOpenShortcut(sc);
    }
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:8,代码来源:GridFastNavigationConnector.java


示例3: updateCloseShortcuts

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("closeShortcuts")
void updateCloseShortcuts() {
    editorManager.clearCloseShortcuts();
    for (int sc : getState().closeShortcuts) {
        editorManager.addCloseShortcut(sc);
    }
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:8,代码来源:GridFastNavigationConnector.java


示例4: updateFocusTracking

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange({"hasFocusListener", "hasCellFocusListener", "hasRowFocusListener", "hasRowEditListener", "hasCellEditListener", "hasEditorOpenListener" })
void updateFocusTracking() {
    FastNavigationState state = getState();
    if (state.hasFocusListener || state.hasCellFocusListener || state.hasRowFocusListener || state.hasCellEditListener || state.hasRowEditListener || state.hasEditorOpenListener) {
        focusTracker.start();
        if (state.hasEditorOpenListener) editorManager.setWaitForExternalUnlock(getState().hasFocusListener);
        else editorManager.setWaitForExternalUnlock(false);
    } else {
        focusTracker.stop();
    }
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:12,代码来源:GridFastNavigationConnector.java


示例5: changeSideTool

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("mySecondary")
private void changeSideTool() {
  GwtToolWindowStripeButton widget = getWidget();

  GwtToolWindowStripeInner stripeInner = GwtUIUtil.getParentOf(widget, GwtToolWindowStripeInner.class);

  if (stripeInner == null) {
    return;
  }

  stripeInner.add(widget, getState().mySecondary);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:GwtToolWindowStripeButtonConnector.java


示例6: onSizeChanged

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange({"myWidth", "myHeight"})
private void onSizeChanged() {
  if (getState().myWidth != -1) {
    getWidget().setWidth(getState().myWidth + "px");
  }

  if (getState().myHeight != -1) {
    getWidget().setHeight(getState().myHeight + "px");
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:GwtListBoxImplConnector.java


示例7: updateResource

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("resources")
void updateResource() {
	getWidget().setResourceFile(getResourceUrl("resourceFile"));
}
 
开发者ID:WhitesteinTechnologies,项目名称:wt-pdf-viewer,代码行数:5,代码来源:WTPdfViewerConnector.java


示例8: onStateChangeBootstrapMode

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("bootstrapMode")
void onStateChangeBootstrapMode() {
    getWidget().setMode(getState().bootstrapMode);
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:5,代码来源:FormGroupConnector.java


示例9: onStateChangeFieldDescription

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange({"fieldDescription", "fieldDescriptionContentMode"})
void onStateChangeFieldDescription() {
    getWidget().setDescription(getState().fieldDescription, getState().fieldDescriptionContentMode);
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:5,代码来源:FormGroupConnector.java


示例10: onStateChangeFieldFeedback

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange({"fieldFeedback", "fieldFeedbackContentMode"})
void onStateChangeFieldFeedback() {
    getWidget().setFeedback(getState().fieldFeedback, getState().fieldFeedbackContentMode);
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:5,代码来源:FormGroupConnector.java


示例11: onStateChangeStyle

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("labelStyle")
void onStateChangeStyle() {
    getWidget().setLabelRatio(getState().labelStyle);
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:5,代码来源:FormGroupConnector.java


示例12: onStateChangeFieldStyle

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("fieldStyle")
void onStateChangeFieldStyle() {
    getWidget().setFieldRatio(getState().fieldStyle);
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:5,代码来源:FormGroupConnector.java


示例13: onStateChangeFieldDescriptionHeightReservedIfEmpty

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("fieldDescriptionHeightReservedIfEmpty")
void onStateChangeFieldDescriptionHeightReservedIfEmpty() {
    getWidget().setDescriptionHeightReservedIfEmpty(getState().fieldDescriptionHeightReservedIfEmpty);
    onStateChangeFieldDescription();
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:6,代码来源:FormGroupConnector.java


示例14: onStateChangeFieldFeedbackHeightReservedIfEmpty

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("fieldFeedbackHeightReservedIfEmpty")
void onStateChangeFieldFeedbackHeightReservedIfEmpty() {
    getWidget().setFeedbackHeightReservedIfEmpty(getState().fieldFeedbackHeightReservedIfEmpty);
    onStateChangeFieldFeedback();
}
 
开发者ID:knoobie,项目名称:bootstrap-formgroup,代码行数:6,代码来源:FormGroupConnector.java


示例15: onSelectionChange

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange({ "selectedItemKeys", "selectedItemsCaption" })
private void onSelectionChange() {
	getDataReceivedHandler().updateSelectionFromServer(	getState().selectedItemKeys,
														getState().selectedItemsCaption);
}
 
开发者ID:bonprix,项目名称:vaadin-combobox-multiselect,代码行数:6,代码来源:ComboBoxMultiselectConnector.java


示例16: openEditorWithSingleClick

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("openEditorWithSingleClick")
void openEditorWithSingleClick() {
    editorManager.setOpenEditorWithSingleClick(getState().openEditorWithSingleClick);
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:5,代码来源:GridFastNavigationConnector.java


示例17: changeColumnAfterLastRow

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("changeColumnAfterLastRow")
void changeColumnAfterLastRow() {
    editorManager.setChangeColumnAfterLastRow(getState().changeColumnAfterLastRow);
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:5,代码来源:GridFastNavigationConnector.java


示例18: updateArrowKeyBehavior

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("allowArrowRowChange")
void updateArrowKeyBehavior() {
    editorManager.setAllowRowChangeWithArrow(getState().allowArrowRowChange);
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:5,代码来源:GridFastNavigationConnector.java


示例19: updateEditorTabBehavior

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("allowTabRowChange")
void updateEditorTabBehavior() {
    editorManager.setAllowTabRowChange(getState().allowTabRowChange);
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:5,代码来源:GridFastNavigationConnector.java


示例20: updateEditorOpenOnType

import com.vaadin.client.annotations.OnStateChange; //导入依赖的package包/类
@OnStateChange("openEditorOnType")
void updateEditorOpenOnType() {
    editorManager.setOpenEditorByTyping(getState().openEditorOnType);
}
 
开发者ID:TatuLund,项目名称:GridFastNavigation,代码行数:5,代码来源:GridFastNavigationConnector.java



注:本文中的com.vaadin.client.annotations.OnStateChange类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Schema类代码示例发布时间:2022-05-22
下一篇:
Java OptimizationException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap