Re: right-to-left
Yes, I'm using a GWT standard theme, but I was hoping that the layout would reverse automatically depending on the locale (since I have an application which must be available in 6 different locales, mixed RTL and LTR). I was not aware that the absolute positioning of the Layout Panel would prevent this... if anyone knows of a 'quick fix' for this it would be very helpful! Thanks :) On Fri, May 17, 2013 at 5:35 PM, Andrei wrote: > If you set positions in absolute numbers (LayoutPanel), these positions > will not change when you switch the locale. > > Are you using one of standard GWT themes? They come with a RTL version. If > you add your own styles, however, you have to create RTL versions of these > styles yourself. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/gdFBwCfmc5E/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: right-to-left
If you set positions in absolute numbers (LayoutPanel), these positions will not change when you switch the locale. Are you using one of standard GWT themes? They come with a RTL version. If you add your own styles, however, you have to create RTL versions of these styles yourself. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: right-to-left
I should also mention that i am using Layout Panels, not sure if this makes a difference... On Fri, May 17, 2013 at 10:56 AM, Dawn Borg Costanzi < dawnborgcosta...@gmail.com> wrote: > Yes, I have tried this. I added the line: values="ar"/> in my .xml module file. However when I added '&locale=ar' to > my URL (in development mode), I got the same layout, just the text was > different. > > Am I missing something maybe? > > > On Sat, May 11, 2013 at 12:02 PM, Mohammad Al-Quraian > wrote: > >> Have you tested that by adding a locale into your .xml module file? You >> can add the Arabic locale like this: >> >> >> Then when you change the locale you would find that GWT does rearrange >> the widgets as a mirror-image, so if you have a horizontal panel with >> a label on the left then a text box on the right, after switching to a RTL >> locale the label would be on the right and the text box on the left, all >> done magically for you by GWT. >> >> On Friday, May 10, 2013 4:43:53 PM UTC+3, Dawn Borg Costanzi wrote: >>> >>> Hi everyone, >>> >>> I've created a number of widgets to make an online questionnaire. Can >>> anyone tell me whether there is an easy way to have a mirror-image of the >>> widget, for right-to-left language support? >>> >>> Thanks, >>> Dawn >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Web Toolkit" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-web-toolkit/gdFBwCfmc5E/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> Visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: right-to-left
Yes, I have tried this. I added the line: in my .xml module file. However when I added '&locale=ar' to my URL (in development mode), I got the same layout, just the text was different. Am I missing something maybe? On Sat, May 11, 2013 at 12:02 PM, Mohammad Al-Quraian wrote: > Have you tested that by adding a locale into your .xml module file? You > can add the Arabic locale like this: > > > Then when you change the locale you would find that GWT does rearrange the > widgets as a mirror-image, so if you have a horizontal panel with > a label on the left then a text box on the right, after switching to a RTL > locale the label would be on the right and the text box on the left, all > done magically for you by GWT. > > On Friday, May 10, 2013 4:43:53 PM UTC+3, Dawn Borg Costanzi wrote: >> >> Hi everyone, >> >> I've created a number of widgets to make an online questionnaire. Can >> anyone tell me whether there is an easy way to have a mirror-image of the >> widget, for right-to-left language support? >> >> Thanks, >> Dawn >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/gdFBwCfmc5E/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: right-to-left
Have you tested that by adding a locale into your .xml module file? You can add the Arabic locale like this: Then when you change the locale you would find that GWT does rearrange the widgets as a mirror-image, so if you have a horizontal panel with a label on the left then a text box on the right, after switching to a RTL locale the label would be on the right and the text box on the left, all done magically for you by GWT. On Friday, May 10, 2013 4:43:53 PM UTC+3, Dawn Borg Costanzi wrote: > > Hi everyone, > > I've created a number of widgets to make an online questionnaire. Can > anyone tell me whether there is an easy way to have a mirror-image of the > widget, for right-to-left language support? > > Thanks, > Dawn > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
right-to-left
Hi everyone, I've created a number of widgets to make an online questionnaire. Can anyone tell me whether there is an easy way to have a mirror-image of the widget, for right-to-left language support? Thanks, Dawn -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: right to left tree items
AFAIK, GWT's RTL is based on the locale. Did you try setting the locale to an RTL one? E.g. On Wednesday, February 29, 2012 4:32:56 PM UTC+1, danit wrote: > > Hi, > > I am trying to create right to left tree. > I changed the theme to the RTL theme: > > > 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]); > } > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pzwkZ4UwqxoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
right to left tree items
Hi, I am trying to create right to left tree. I changed the theme to the RTL theme: 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]); } -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel - Children are added from right to left #-)
Unfortunately this doesn't have anything to do with GWT. Floating elements to the right always place the first element to the far right and the next to the left of it. One thing you could try is putting this elements in a span with display="inline-block" and then floating that span to the right. This would put the buttons in the order you want and still have them aligned to the right. style: button-float: { display: inline-block; float:right; } Hope this helps On Sep 29, 12:37 pm, Magnus wrote: > No ideas? > > Magnus -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel - Children are added from right to left #-)
No ideas? Magnus -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FlowPanel - Children are added from right to left #-)
Hi, I have realized a "button bar", i. e. a horizontal bar that contains buttons, as a FlowPanel (not a HorizontalPanel, to be with standards mode). The buttons are aligned to the right (float right). However, when I add buttons, they are added from right to left, i. e. the first one is at the right and the last one is at the left. I expected that new widgets are appendet at the right? I have tried a lot, but nothing changes the behavior. Any ideas? Magnus -- package myproject.commandbar; import java.util.Iterator; import com.google.gwt.dom.client.Style; import com.google.gwt.event.dom.client.*; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.*; public class CommandBar extends FlowPanel { private final FlowPanel pnl = new FlowPanel (); private final HTML txt = new HTML (); private ClickHandler hdl = null; public CommandBar () { super (); init (); } private void init () { this.add (txt); this.add (pnl); Style s = txt.getElement().getStyle (); s.setFloat (Style.Float.LEFT); s = pnl.getElement().getStyle (); s.setFloat (Style.Float.RIGHT); txt.setHTML(" "); } public void add (String lbl,int cmd) { Command c = new Command(prc,cmd); add (lbl,c); } public void add (String lbl,Command cmd) { PushButton btn = new CommandPushButton (lbl,cmd); btn.getElement().getStyle().setFloat (Style.Float.RIGHT); pnl.add(btn); } public void setText (String txt) { this.txt.setText (txt); } } -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can i right to left a MenuBar ?
Hi How can i right to left a MenuBar ? please help me thanks. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: text box type from Right to left
this is a css property, direction: rtl; On Sat, Jun 13, 2009 at 5:11 PM, zujee wrote: > > Hi , > I want to change the direction when user type something, similar to > change locale to arabic. Is there any way to do that > Thanks in advance > Zuje > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
text box type from Right to left
Hi , I want to change the direction when user type something, similar to change locale to arabic. Is there any way to do that Thanks in advance Zuje --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---