本文整理了Java中com.google.gwt.user.client.ui.Widget.setStylePrimaryName()
方法的一些代码示例,展示了Widget.setStylePrimaryName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.setStylePrimaryName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:setStylePrimaryName
暂无
代码示例来源:origin: org.eagle-i/eagle-i-common-ui-gwt
/**
* Adds the content to the field label-content pair
* @param widget contains the content to be added to this field row
*/
public void add(final Widget widget) {
widget.setStylePrimaryName( "ViewRowValue" );
contentPanel.add( widget );
}
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the default style name of this component.
*
* @param sDefaultStyleName The default style name
*/
void setDefaultStyleName(String sDefaultStyleName)
{
getWidget().setStylePrimaryName(sDefaultStyleName);
}
代码示例来源:origin: sk.seges.acris/acris-widgets-beantable
protected void indent(HorizontalPanel widget, TreeTableItem item) {
boolean first = true;
while (item.getParent() != null) {
Widget spacer = createSpacer(item);
if (first) {
spacer.setStylePrimaryName(treeTable.getResources().getStyle().css().treeTableIndent());
first = false;
} else {
spacer.setStylePrimaryName(treeTable.getResources().getStyle().css().treeTableIndentUp());
}
widget.insert(spacer, 0);
item = item.getParent();
}
}
}
代码示例来源:origin: de.esoco/gewt
rWidget.setStylePrimaryName(sWebStyle);
代码示例来源:origin: net.sf.javaprinciples.client/client-presentation
protected Widget makeTab(String tabMsg)
{
ComplexPanel tab = new FlowPanel();
tab.setStylePrimaryName("tabIcon");
tabLabel = new Label(tabMsg);
tabLabel.setStyleName("inlineLabel", true);
tab.add(tabLabel);
exclamation = new FlowPanel();
exclamation.setStylePrimaryName("exclamation");
exclamation.setVisible(false);
tab.add(exclamation);
DOM.setElementAttribute(tab.getElement(), "id", identifier + "-tab");
return tab;
}
内容来源于网络,如有侵权,请联系作者删除!