如何在SmartGWT的DynamicForm的StaticTextItem组件上应用样式? [英] How to apply style on StaticTextItem component of DynamicForm in SmartGWT?

查看:102
本文介绍了如何在SmartGWT的DynamicForm的StaticTextItem组件上应用样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我没有发现像这个组件的setStyleName这样的方法。



是否有任何替代方式将样式应用于StaticTextItem?



我还注意到ToolStrip组件只能添加Form项目,所以我在这里坚持如何将样式应用于StaticTextItem。



我的目标是在ToolStrip上添加样式。



谢谢!!!

解决方案

您可以使用以下属性将样式应用于StaticTextItem:

  staticTextItem.setTextBoxStyle(textBoxStyle); 
staticTextItem.setCellStyle(cellStyle);


I want to apply style on StaticTextItem in SmartGWT's DynamicForm item.

I did not find any method like setStyleName for this component.

Is there any alternate way to apply style on StaticTextItem?

I have also noticed that ToolStrip Component can add only Form items, So Here I am stuck how would I apply a style particularly on StaticTextItem.

My goal is just add label with style on ToolStrip.

Any alternative to this appreciated!!!

Thanks!!!

解决方案

You can use following properties to apply styles to StaticTextItem:

staticTextItem.setTextBoxStyle(textBoxStyle);
staticTextItem.setCellStyle(cellStyle);

这篇关于如何在SmartGWT的DynamicForm的StaticTextItem组件上应用样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆