In some instances, it would be nice to have LayoutPanel swap left and right. 
I was thinking of something like adding a 

private boolean bidi = false;

  public void setWidgetLeftWidth(Widget child, double left, Unit leftUnit, 
double width,
      Unit widthUnit) {
    assertIsChild(child);
    if (bidi && isRtl()) {
      getLayer(child).setRightWidth(left, leftUnit, width, widthUnit);
    } else {
      getLayer(child).setLeftWidth(left, leftUnit, width, widthUnit);
    }
    animate(0);
  }


public void setBidiEnabled(boolean enable){
   bidi = enable;
}

etc etc etc. 

What do you guys think? This would allow for future enhancements like making 
TabLayoutPanel bidi enabled, where the tabs appear on the right side and 
work their way left instead of on the starting on the left and being added 
to the left. 

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to