本文整理了Java中org.fujion.component.Label.addStyle()
方法的一些代码示例,展示了Label.addStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.addStyle()
方法的具体详情如下:
包路径:org.fujion.component.Label
类名称:Label
方法名:addStyle
暂无
代码示例来源:origin: org.carewebframework/org.carewebframework.plugin.currentdatetime
public void setColor(String color) {
this.color = color;
lblCurrentTime.addStyle("color", color);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
@Override
protected void applyColor() {
label.addStyle("color", getColor());
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-reporting
/**
* Override to implement any special controller initialization logic.
*/
protected void initializeController() {
log.trace("Initializing Controller");
if (lblMessage != null) {
lblMessage.addStyle("text-align", "center");
}
Style style = new Style();
style.setSrc(CWFUtil.getResourcePath(AbstractServiceController.class, 1) + "common.css");
root.getPage().addChild(style);
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-reporting
/**
* Add a row containing the specified header (left column) and value container (right column).
*
* @param header Text for header column
* @param container Object containing text value(s)
*/
protected void addRow(String header, BaseComponent container) {
Row row = new Row();
grid.getRows().addChild(row);
Div div = new Div();
Label label = new Label(header + ":");
label.addStyle("font-weight", "bold");
label.addStyle("word-wrap", "word-break");
row.addChild(div);
row.addChild(label);
row.addChild(container);
}
内容来源于网络,如有侵权,请联系作者删除!