Example usage for org.apache.wicket.protocol.http ClientProperties setBrowserWidth

List of usage examples for org.apache.wicket.protocol.http ClientProperties setBrowserWidth

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http ClientProperties setBrowserWidth.

Prototype

public void setBrowserWidth(int browserWidth) 

Source Link

Usage

From source file:com.servoy.j2db.server.headlessclient.MainPage.java

License:Open Source License

public void setWindowSize(Dimension d) {
    if (getPageMapName() != null) {
        size = d;//  w  w w .  ja  v a 2  s  .  com
    } else if (d != null) {
        // main page
        ClientProperties properties = ((WebClientInfo) WebClientSession.get().getClientInfo()).getProperties();
        properties.setBrowserWidth(d.width);
        properties.setBrowserHeight(d.height);
    }
}