- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.github.bordertech.wcomponents.WText.setBeanProperty()
方法的一些代码示例,展示了WText.setBeanProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WText.setBeanProperty()
方法的具体详情如下:
包路径:com.github.bordertech.wcomponents.WText
类名称: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");
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities类的一些代码示例,展示了WebUtilities类的具体用法。这些代码示例主要来源于Gi
本文整理了Java中com.github.bordertech.wcomponents.WText类的一些代码示例,展示了WText类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getParentNamingContext()方法的一些代码示例,展示了WebUti
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.render()方法的一些代码示例,展示了WebUtilities.render()的
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getContextForComponent()方法的一些代码示例,展示了WebUti
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.doubleEncodeBrackets()方法的一些代码示例,展示了WebUtili
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.percentEncodeUrl()方法的一些代码示例,展示了WebUtilities
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getPath()方法的一些代码示例,展示了WebUtilities.getPath(
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getClosestOfClass()方法的一些代码示例,展示了WebUtilitie
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.renderWithTransformToHTML()方法的一些代码示例,展示了Web
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.doubleDecodeBrackets()方法的一些代码示例,展示了WebUtili
本文整理了Java中com.github.bordertech.wcomponents.WText.setEncodeText()方法的一些代码示例,展示了WText.setEncodeText()的
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.escapeForUrl()方法的一些代码示例,展示了WebUtilities.esc
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.encode()方法的一些代码示例,展示了WebUtilities.encode()的
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getComponentById()方法的一些代码示例,展示了WebUtilities
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.generateRandom()方法的一些代码示例,展示了WebUtilities.g
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getProjectVersion()方法的一些代码示例,展示了WebUtilitie
本文整理了Java中com.github.bordertech.wcomponents.WText.getData()方法的一些代码示例,展示了WText.getData()的具体用法。这些代码示例主
本文整理了Java中com.github.bordertech.wcomponents.WText.getParent()方法的一些代码示例,展示了WText.getParent()的具体用法。这些代
本文整理了Java中com.github.bordertech.wcomponents.WebUtilities.getAncestorOfClass()方法的一些代码示例,展示了WebUtiliti
我是一名优秀的程序员,十分优秀!