@Override public void attach() { super.attach(); // setCloseShortcut(ShortcutAction.KeyCode.ESCAPE, null); }
@Override public void attach() { super.attach(); // We need to poll, otherwise hiding the progress window will not be // visible to the client, because it is triggered by the server. // Polling fixes this. But do not forget to disable polling when closing the window (see above) UIHelper.getCurrent(JmxConfigGeneratorUI.class).setPollInterval(250); }
@Override public void attach() { super.attach(); // We need to poll, otherwise hiding the progress window will not be // visible to the client, because it is triggered by the server. // Polling fixes this. But do not forget to disable polling when closing the window (see above) UIHelper.getCurrent(JmxConfigGeneratorUI.class).setPollInterval(250); }
@Override public void attach() { try { populateUserTable(); populateSelect(); } finally { super.attach(); } }
@Override public void attach() { super.attach(); setCaption(i18nManager.getMessage(Messages.APP_TITLE)); }
@Override public void attach() { try { // Take the logged in user from the main application... initializeUserDTO((User) getApplication().getUser()); } finally { super.attach(); } }
@Override public void attach() { super.attach(); int posX = (int)(getUI().getPage().getBrowserWindowWidth() - getWidth())/2; int posY = (int)(getUI().getPage().getBrowserWindowHeight() - getHeight())/2; setPositionX(posX); setPositionY(posY); }
@Override public void attach() { super.attach(); int posX = (int)(getUI().getPage().getBrowserWindowWidth() - this.getWidth())/2; int posY = (int)(getUI().getPage().getBrowserWindowHeight() - this.getHeight())/2; setPositionX(posX); setPositionY(posY); if (showOptions) hostField.focus(); else usernameField.focus(); }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth(windowWidth, Unit.PIXELS); setHeight(windowHeight, Unit.PIXELS); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Sets the size of the browser to fit within the sub-window*/ infoBrowser.setType(Embedded.TYPE_BROWSER); infoBrowser.setWidth(browserWidth, Unit.PIXELS); infoBrowser.setHeight(browserHeight, Unit.PIXELS); } }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window size based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth("" + windowWidth + "px"); setHeight("" + windowHeight + "px"); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Changes the size of the browser to fit within the sub-window*/ rgBrowser.setType(Embedded.TYPE_BROWSER); rgBrowser.setWidth("" + browserWidth + "px"); rgBrowser.setHeight("" + browserHeight + "px"); } }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth(windowWidth, Unit.PIXELS); setHeight(windowHeight, Unit.PIXELS); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Sets the size of the browser to fit within the sub-window*/ infoBrowser.setType(Embedded.TYPE_BROWSER); infoBrowser.setWidth(browserWidth, Unit.PIXELS); infoBrowser.setHeight(browserHeight, Unit.PIXELS); } }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window size based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth("" + windowWidth + "px"); setHeight("" + windowHeight + "px"); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Changes the size of the browser to fit within the sub-window*/ rgBrowser.setType(Embedded.TYPE_BROWSER); rgBrowser.setWidth("" + browserWidth + "px"); rgBrowser.setHeight("" + browserHeight + "px"); } }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth(windowWidth, Unit.PIXELS); setHeight(windowHeight, Unit.PIXELS); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Sets the size of the browser to fit within the sub-window*/ infoBrowser.setType(Embedded.TYPE_BROWSER); infoBrowser.setWidth(browserWidth, Unit.PIXELS); infoBrowser.setHeight(browserHeight, Unit.PIXELS); } }
@Override public void attach() { super.attach(); int width = getUI().getPage().getBrowserWindowWidth(); int height = getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window size based on the main window*/ int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth("" + windowWidth + "px"); setHeight("" + windowHeight + "px"); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); /*Changes the size of the browser to fit within the sub-window*/ rgBrowser.setType(Embedded.TYPE_BROWSER); rgBrowser.setWidth("" + browserWidth + "px"); rgBrowser.setHeight("" + browserHeight + "px"); } }
@Override public void attach() { super.attach(); int width = (int)getUI().getPage().getBrowserWindowWidth(); int height = (int)getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width); int browserHeight = (int)(sizePercentage * height); setWidth("" + browserWidth + "px"); setHeight("" + browserHeight + "px"); setPositionX((width - browserWidth)/2); setPositionY((height - browserHeight)/2); int viewHeight = browserHeight - 76; /*Changes the size of the browsers to fit within the sub-window*/ alarmsBrowser.setType(Embedded.TYPE_BROWSER); alarmsBrowser.setHeight(viewHeight + "px"); eventsBrowser.setType(Embedded.TYPE_BROWSER); eventsBrowser.setHeight(viewHeight + "px"); //424 When I set it to this size it works but otherwise its doesn't }
@Override public void attach() { super.attach(); int width = (int)getUI().getPage().getBrowserWindowWidth(); int height = (int)getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width); int browserHeight = (int)(sizePercentage * height); setWidth("" + browserWidth + "px"); setHeight("" + browserHeight + "px"); setPositionX((width - browserWidth)/2); setPositionY((height - browserHeight)/2); int viewHeight = browserHeight - 76; /*Changes the size of the browsers to fit within the sub-window*/ alarmsBrowser.setType(Embedded.TYPE_BROWSER); alarmsBrowser.setHeight(viewHeight + "px"); eventsBrowser.setType(Embedded.TYPE_BROWSER); eventsBrowser.setHeight(viewHeight + "px"); //424 When I set it to this size it works but otherwise its doesn't }
@Override public void attach() { super.attach(); int width = (int)getUI().getPage().getBrowserWindowWidth(); int height = (int)getUI().getPage().getBrowserWindowHeight(); /*Sets the browser and window sizes based on the main window*/ int browserWidth = (int)(sizePercentage * width); int browserHeight = (int)(sizePercentage * height); setWidth("" + browserWidth + "px"); setHeight("" + browserHeight + "px"); setPositionX((width - browserWidth)/2); setPositionY((height - browserHeight)/2); int viewHeight = browserHeight - 76; /*Changes the size of the browsers to fit within the sub-window*/ alarmsBrowser.setType(Embedded.TYPE_BROWSER); alarmsBrowser.setHeight(viewHeight + "px"); eventsBrowser.setType(Embedded.TYPE_BROWSER); eventsBrowser.setHeight(viewHeight + "px"); //424 When I set it to this size it works but otherwise its doesn't }
@Override public void attach() { super.attach();
@Override public void attach() { super.attach();