Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
setNodeIcon("icons/person.png");
或者
setIcon("icons/person.png");
在 SmartGWTTreeGrid和Tab(in TabSet) 中,我猜应该在文件夹“icons”中找到“person.png”,但我应该在项目本身的哪里放置“icons”?
TreeGrid
Tab
TabSet
在 JavaDoc 中还说setNodeIcon的默认值是[SKIN]是[SKIN]file.gif什么意思?
[SKIN]file.gif
谢谢
我不知道你在哪里可以找到默认值(在我看来,使用 Skin 文件夹是为了使用 smartgwt 皮肤中已经存在的图像)但是我通常将我的图像直接放在我的项目中的 war 中,子文件夹与他们的大小。例如,要使用我只是做的图标btnClear.setIcon("16/clear.png"); With war/images/16.clear.png image folders structure.
btnClear.setIcon("16/clear.png"); With war/images/16.clear.png image folders structure.
你可以看看getSkinImgDir并做一个测试
getSkinImgDir