English 中文(简体)
GWT 根基帕蒂·洛瓦蒂巴蒂
原标题:GWT RootPanel vs RootLayoutPanel
  • 时间:2012-04-15 07:09:29
  •  标签:
  • gwt

I understand that officially GWT recommends using the newer RootLayoutPanel but some posts on the internet claims that for some web applications it is better to use the RootPanel.
How can one decide which one to use?
Is there any different use cases for each? (or every requirement can be satisfied with either)

最佳回答

<>RootLayoutPanel > 可能更好。 这完全不同。

允许你在网页上添加植被(基本上,你可以将网页上的一些html元素用作根基植被)。 您可在同一申请中界定多个<代码>。

几乎不同,它总是试图填补窗口的所有可用规模,因此小组内部的内容将完全适合浏览器窗口的规模。 它还将跟踪窗户的规模,并将相应地将儿童部分(如果他们支持的话)重新定位。 此外,RootLayoutPanel将试图直接附在<one> 内容,例如,你可以选择网页上哪一个html元件将成为“起点”。

因此,根据你希望做些什么,你可以选择<条码>/条码>或<条码>。

问题回答

暂无回答




相关问题
Refresh the UI in gwt

I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I ...

How to create a development/debug and production setup

I recently deployed inadvertently a debug version of our game typrX (typing races at www.typrx.com - try it it s fun). It was quickly corrected but I know it may happen again. After digging on ...

GWT error at runtime: ....style_0 is null

My code works fine in IE 8, but on firefox 3.5, the javascript fails to load. I used firebug to figure out why, and the error I get is (GWT detailed mode) My suspicion is that some style is not ...

GWT s hosted mode not working

I ve been stumped for a while trying to figure out why my GWT demo app isn t working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the ...

How to disable Google Visualizations Tool Tips?

Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, the "...

GWT 2 CssResource how to

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and ...

热门标签