如何在gwt中获取com.google.gwt.user.client.Window maxWidth和maxHeight

如何在gwt中获取com.google.gwt.user.client.Window maxWidth和maxHeight,gwt,Gwt,请问如何在gwt中获取com.google.gwt.user.client.WindowmaxWidth和maxHeight?我可以直接调用Window.getClientWidth()和Window.getClientHeight(),但它不会告诉我这是否是我的窗口的最大宽度和高度:/ 最好的方法就是: public native int getScreenWidth() /*-{ return screen.width; }-*/; public native int getScree

请问如何在gwt中获取
com.google.gwt.user.client.Window
maxWidth
maxHeight
?我可以直接调用
Window.getClientWidth()
Window.getClientHeight()
,但它不会告诉我这是否是我的窗口的最大宽度和高度:/

最好的方法就是:

public native int getScreenWidth() /*-{
  return screen.width;
}-*/;

public native int getScreenHeight() /*-{
  return screen.height;
}-*/ ;