2012-10-12 68 views
0

在smartgwt中,操作頁眉的邊框或SectionStackSection的內容相當容易,因爲它們呈現單獨的html元素。如何在SectionStackSection上設置邊框

但是,是否也可以在整個SectionStackSection上設置邊框?沒有周圍的div,並且該節沒有使用setBorder()方法。

任何想法?

TIA

回答

1

可以使用的setAttribute(String屬性,字符串值)方法來達致這。

SectionStackSection section1 = new SectionStackSection("Blue Pawn"); 
section1.setExpanded(true); 
section1.addItem(new Img("pieces/48/pawn_blue.png", 48, 48)); 
section1.setAttribute("border", "1px solid red"); 
sectionStack.addSection(section1);