gpt4 book ai didi

com.github.bordertech.wcomponents.WText.setBeanProperty()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 17:37:05 26 4
gpt4 key购买 nike

本文整理了Java中com.github.bordertech.wcomponents.WText.setBeanProperty()方法的一些代码示例,展示了WText.setBeanProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WText.setBeanProperty()方法的具体详情如下:
包路径:com.github.bordertech.wcomponents.WText
类名称:WText
方法名:setBeanProperty

WText.setBeanProperty介绍

暂无

代码示例

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
   * Creates a SimpleListRenderer.
   */
  public SimpleListRenderer() {
    WText name = new WText();
    WText type = new WText();
    WText thing = new WText();
    name.setBeanProperty("name");
    type.setBeanProperty("type");
    thing.setBeanProperty("thing");
    WFieldLayout fields = new WFieldLayout();
    fields.addField("Name", name);
    fields.addField("Type", type);
    fields.addField("Thing", thing);
    add(fields);
  }
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
   * Creates a TravelDocPanel.
   */
  public TravelDocPanel() {
    WHorizontalRule rule = new WHorizontalRule() {
      @Override
      public boolean isVisible() {
        List<Integer> index = TableUtil.getCurrentRowIndex(TravelDocPanel.this);
        // On expanded row, so check the index of the expanded level
        return index.get(1) > 0;
      }
    };
    add(rule);
    WText documentNumber = new WText();
    WText countryOfIssue = new WText();
    WText placeOfIssue = new WText();
    documentNumber.setBeanProperty("documentNumber");
    countryOfIssue.setBeanProperty("countryOfIssue");
    placeOfIssue.setBeanProperty("placeOfIssue");
    WDefinitionList list = new WDefinitionList(WDefinitionList.Type.COLUMN);
    add(list);
    list.addTerm("Document number", documentNumber);
    list.addTerm("Country of issue", countryOfIssue);
    list.addTerm("Place Of issue", placeOfIssue);
  }
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
   * Adds a field to render.
   *
   * @param fields the {@link WFieldLayout} if a field layout is to be used
   * @param label the label for the field.
   */
  private void addRenderField(final WFieldLayout fields, final String label) {
    WText field = new WText();
    field.setBeanProperty(label.toLowerCase());
    if (fields != null) {
      fields.addField(label, field);
    } else {
      WText space = new WText(" ");
      add(space);
      add(field);
    }
  }
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
   * Creates a TravelDocPanel.
   */
  public TravelDocPanel() {
    WHorizontalRule rule = new WHorizontalRule() {
      @Override
      public boolean isVisible() {
        List<Integer> index = TableUtil.getCurrentRowIndex(TravelDocPanel.this);
        // On expanded row, so check the index of the expanded level
        return index.get(1) > 0;
      }
    };
    add(rule);
    WText documentNumber = new WText();
    WText countryOfIssue = new WText();
    WText placeOfIssue = new WText();
    documentNumber.setBeanProperty("documentNumber");
    countryOfIssue.setBeanProperty("countryOfIssue");
    placeOfIssue.setBeanProperty("placeOfIssue");
    WDefinitionList list = new WDefinitionList(WDefinitionList.Type.COLUMN);
    add(list);
    list.addTerm("Document number", documentNumber);
    list.addTerm("Country of issue", countryOfIssue);
    list.addTerm("Place Of issue", placeOfIssue);
  }
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
   * Construct the component.
   */
  public ExtraDetailsPanel() {
    WPanel panel = new WPanel();
    panel.setLayout(new FlowLayout(Alignment.LEFT, 5, 0));
    add(panel);
    WText colA = new WText();
    colA.setBeanProperty("columnA");
    panel.add(new WLabel("ColumnA"));
    panel.add(colA);
    WText colB = new WText();
    colB.setBeanProperty("columnB");
    panel.add(new WLabel("ColumnB"));
    panel.add(colB);
    WText colC = new WText();
    colC.setBeanProperty("columnC");
    panel.add(new WLabel("ColumnC"));
    panel.add(colC);
  }
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

expiryDate.setReadOnly(true);
documentNumber.setBeanProperty("documentNumber");
countryOfIssue.setBeanProperty("countryOfIssue");
placeOfIssue.setBeanProperty("placeOfIssue");
issueDate.setBeanProperty("issueDate");
expiryDate.setBeanProperty("expiryDate");

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
 * Creates a WListExample.
 */
public WListExample() {
  super(Type.BLOCK);
  add(new WHeading(HeadingLevel.H2, "Simple horizontal list with a bar separator."));
  WText nameRenderer = new WText();
  nameRenderer.setBeanProperty("name");
  addList(WList.Type.FLAT, WList.Separator.BAR, false, nameRenderer);
  add(new WHorizontalRule());
  add(new WHeading(HeadingLevel.H2, "Simple vertical list with a dot separator."));
  nameRenderer = new WText();
  nameRenderer.setBeanProperty("name");
  addList(WList.Type.STACKED, WList.Separator.DOT, false, nameRenderer);
  add(new WHorizontalRule());
  add(new WHeading(HeadingLevel.H2, "Striped list with a border and complex content."));
  addList(WList.Type.STRIPED, null, true, new SimpleListRenderer());
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-core

/**
 * @return a simple WList for use in this test.
 */
private static WList createSampleWList() {
  WText nameRenderer = new WText();
  nameRenderer.setBeanProperty("name");
  WList list = new WList(WList.Type.STACKED);
  list.setSeparator(WList.Separator.DOT);
  list.setRenderBorder(false);
  list.setRepeatedComponent(nameRenderer);
  return list;
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

/**
 * Creates the UI artefacts for the ContactContainer.
 */
private void createUI() {
  WText headingText = new WText();
  WHeading contactName = new WHeading(HeadingLevel.H3, new WDecoratedLabel(null, headingText, deleteButton));
  headingText.setBeanProperty("name");
  add(contactName);
  WFieldLayout fieldLayout = new WFieldLayout();
  fieldLayout.addField("Phone", phoneNumField);
  fieldLayout.addField("Roles", roleSelect);
  add(fieldLayout);
  add(new WAjaxControl(deleteButton, repeater));
}

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

expiryDate.setReadOnly(true);
documentNumber.setBeanProperty("documentNumber");
panel.add(new WLabel("Document number"));
panel.add(documentNumber);
countryOfIssue.setBeanProperty("countryOfIssue");
panel.add(new WLabel("Country of issue"));
panel.add(countryOfIssue);
placeOfIssue.setBeanProperty("placeOfIssue");
panel.add(new WLabel("Place Of Issue"));
panel.add(placeOfIssue);

代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-examples

beanBoundText.setBeanProperty("beanAttribute");
beanProviderBoundText.setBeanProperty("innerBean.innerAttribute");

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