- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.nexitia.emaginplatform.jfx.core.engine.components.listform.YesNoListFormCellPresenter
类的一些代码示例,展示了YesNoListFormCellPresenter
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNoListFormCellPresenter
类的具体详情如下:
包路径:com.nexitia.emaginplatform.jfx.core.engine.components.listform.YesNoListFormCellPresenter
类名称:YesNoListFormCellPresenter
[英]Display checkbox for each cell
[中]显示每个单元格的复选框
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-mobile-integration
@Bean
@Named("yesNoItemPresenter")
public YesNoListFormCellPresenter yesNoItemPresenter() {
YesNoListFormCellPresenter p = new YesNoListFormCellPresenter();
p.setSetPreferenceValueOperation((IOperation) Services.getBean("SetPreferencesValueOperation"));
return p;
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
private void processDataUpdate(boolean selected, boolean goback) {
Object v = isStaticValue ? radioButton.getUserData() : selected;
List<IListFormValue> s = new ArrayList<>();
IListFormValue val = currentValues.get(0);
val.setSavedValue(v);
s.add(val);
JsonObject query = new JsonObject();
query.addProperty("key", getKey());
query.addProperty("value", selected);
setPreferenceValueOperation.doOperation(query, res -> {
processUpdate(s);
if (goback)
NodeHelper.goBack(controller);
});
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
super.buildFrom(controller, configuration);
mode = (String) getParameters().get("mode");
String staticValue = (String) getForData().getAttributes().get("staticValue");
isStaticValue = StringUtils.isNotBlank(staticValue);
box.getChildren().add(radioButton);
radioButton.setUserData(staticValue);
radioButton.setToggleGroup(getToggleGroup());
radioButton.setSelected(selected);
selectRadio(radioButton, true);
});
box.addEventFilter(TouchEvent.TOUCH_RELEASED, e -> {
radioButton.fire();
selectRadio(radioButton, true);
});
box.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
checkBox.fire();
processDataUpdate(checkBox.selectedProperty().get(), false);
});
box.addEventFilter(TouchEvent.TOUCH_RELEASED, e -> {
checkBox.fire();
processDataUpdate(checkBox.selectedProperty().get(), false);
});
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
private void selectRadio(RadioButton radioButton, boolean goback) {
Object v = isStaticValue ? radioButton.getUserData() : radioButton.selectedProperty().get();
List<IListFormValue> s = new ArrayList<>();
IListFormValue val = currentValues.get(0);
val.setSavedValue(v);
s.add(val);
JsonObject query = new JsonObject();
query.addProperty("key", getKey());
query.addProperty("value", v != null ? v.toString() : "");
setPreferenceValueOperation.doOperation(query, res -> {
processUpdate(s);
if (goback) {
SingleResult sr = (SingleResult) controller.getModel();
ParentItemPresenter parent = (ParentItemPresenter) sr.getData().getMeta().get("parentItem");
if (parent != null) {
parent.updateDisplay();
}
// call go back only if we are not in self mode and in desktop
boolean desktopselfView = isSelfView(parent.getController()) && AbstractApplicationRunner.isDesktop();
if(!desktopselfView) NodeHelper.goBack(controller);
if(desktopselfView) {
StandardViewController c = (StandardViewController) parent.getController().getParent();
IViewLayoutManager m = c != null ? c.getLayoutManager() : null;
if(m != null && m instanceof ViewForwardLayoutManager) {
((ViewForwardLayoutManager)m).popContent();
}
}
}
});
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-mobile-integration
@Bean
@Named("yesNoItemPresenter")
public YesNoListFormCellPresenter yesNoItemPresenter() {
return new YesNoListFormCellPresenter();
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
@Override
public ToggleGroup getToggleGroup() {
ListViewContent lvc = (ListViewContent) getCell().getUserData();
return lvc.getToggleGroup();
}
我是一名优秀的程序员,十分优秀!