gpt4 book ai didi

com.nexitia.emaginplatform.jfx.core.engine.components.listform.YesNoListFormCellPresenter类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 02:49:31 25 4
gpt4 key购买 nike

本文整理了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

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();
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com