danit ba
unread,Feb 29, 2012, 10:32:56 AM2/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
I am trying to create right to left tree.
I changed the theme to the RTL theme:
<inherits name='com.google.gwt.user.theme.standard.StandardRTL'/>
and the tree seems right to left (the + is in the right side) , but
when I add sub items to the tree (TreeItem, Buttons,Labels) they are
all aligned to left.
I tried to add "direction:rtl " proprty to the css and its not
working.
any idea how to solve it?
Thanks.
this is the piece of code:
TreeItem productTreeItem[]=new TreeItem[6];
Tree productTree=new Tree();
for (int i=0; i<6; i++ )
{
Button button[]= new Button[3];
button[0]=new Button( "אאאא");
button[1]=new Button( "בבב");
button[2]=new Button( "גגגג");
button[0].addStyleName("rtl");
button[1].addStyleName("rtl");
button[2].addStyleName("rtl");
productTreeItem[i]=new TreeItem("עברית "+i);
productTreeItem[i].getElement().addClassName("rtl");
productTreeItem[i].addItem(button[1]);
productTreeItem[i].addItem(button[2]);*/
productTreeItem[i].addItem("אאא");
productTreeItem[i].addItem("בבבבב");
productTreeItem[i].addItem("גגגגגגגגג");
productTree.addItem(productTreeItem[i]);
}