六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 138|回复: 0

GXT CSS Usage

[复制链接]

升级  68%

42

主题

42

主题

42

主题

秀才

Rank: 2

积分
152
 楼主| 发表于 2013-2-7 23:37:12 | 显示全部楼层 |阅读模式
 

It’s pretty simple.  Some key points to note as follow:


1)       Quite often, you find your change to the .css file doesn’t take effect. The key question here, are you changing the right .css file? I find several .css files in my project. One of them is in war/css/aa.css, another is in ./css/aa.css.
 
2)       Add these definitions in the aa.css.
 
.column-disabled {
}
 
.column-selectable {
      border:1px solid;
}
 
.column-1stSeletable {
    border:1px solid;
    background-color:#9c1fee;
}
 
3)       If your source code, use like this:
 
approvalLevelCheckBox.setStyleName("column-1stSeletable");
 
4)    GWT also supplies some other related methods
 
addStyleName(“”);
setStyleName(“”);
removeStyleName(“”);
setStylePrimaryName(“”);
addStyleDependentName(“”);
removeStyleDependentName(“”);
 
And the above code equals to
 
approvalLevelCheckBox.setStylePrimaryName ("column");
approvalLevelCheckBox. addStyleDependentName ("1stSeletable");
 
 
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表