Re: how to make the treeitem border invisible
I even try to set the treeitem border to 0px but it doesn't help!!
.gwt-Tree {
border: 0px;
}
.gwt-Tree .gwt-TreeItem {
font-size: 80%;
cursor: default;
border: 0px;
}
On Jan 25, 3:04 pm, tong123123 <tong123...@gmail.com> wrote:
> I create the tree and treeitem, then when I run the application, I
> found there is a blue border around the treeitem, how to make it
> invisible?
>
> in the css file, I already add the following property
> .gwt-Tree {
> border: 0px;
>
> }
>
> but the border still show!!
>
> the code for building the tree and treeitem is as follow:
> Tree tree = new Tree();
> tree.addTreeListener(new TreeListener(){
>
> @Override
> public void onTreeItemSelected(TreeItem item) {
> // TODO Auto-generated method stub
> if (item.getHTML().equalsIgnoreCase("menu1")){
> horizontalSplitPanel.setRightWidget(new FlowPanel());
> }else{
> horizontalSplitPanel.setRightWidget(formPanel);
> }
> }
>
> @Override
> public void onTreeItemStateChanged(TreeItem item) {
> // TODO Auto-generated method stub
>
> }
>
> });
> tabPanel.add(tree, "New tab", false);
> //tree.setSize("5cm", "3cm");
>
> TreeItem trtmNewItem = new TreeItem("menu1");
> tree.addItem(trtmNewItem);
> trtmNewItem.setState(true);
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home