/** * Configures a typical window with a standard height, width and sets the closable flag. */ private void configThis() { setHeight((int) (Constants.SEVENTY_FIVE_PERCENT_FLOAT * RootPanel.get().getOffsetHeight())); setWidth(Constants.EIGHTY_FIVE_PERCENT); setClosable(true); }
public CaptureWidget() { addMouseMoveHandler( this ); addMouseUpHandler( this ); Style style = getElement().getStyle(); // workaround for IE8 opacity // http://code.google.com/p/google-web-toolkit/issues/detail?id=5538 style.setProperty( "filter", "alpha(opacity=0)" ); style.setOpacity( 0 ); style.setZIndex( 0 );// 1000); style.setMargin( 0, Style.Unit.PX ); style.setBorderStyle( BorderStyle.NONE ); style.setBackgroundColor( "blue" ); setPixelSize( RootPanel.get().getOffsetWidth(), RootPanel.get().getOffsetHeight() ); }
public CaptureWidget() { addMouseMoveHandler( this ); addMouseUpHandler( this ); Style style = getElement().getStyle(); // workaround for IE8 opacity // http://code.google.com/p/google-web-toolkit/issues/detail?id=5538 style.setProperty( "filter", "alpha(opacity=0)" ); style.setOpacity( 0 ); style.setZIndex( 0 );// 1000); style.setMargin( 0, Style.Unit.PX ); style.setBorderStyle( BorderStyle.NONE ); style.setBackgroundColor( "blue" ); setPixelSize( RootPanel.get().getOffsetWidth(), RootPanel.get().getOffsetHeight() ); }
private void startDragging() { context.dragStartCleanup(); try { context.dragController.previewDragStart(); } catch (VetoDragException ex) { context.vetoException = ex; mouseDownWidget = null; dragEndCleanup(); return; } context.dragController.dragStart(); startCapturing(); capturingWidget.setPixelSize( RootPanel.get().getOffsetWidth(), RootPanel.get().getOffsetHeight()); dragging = DRAGGING_NO_MOVEMENT_YET; }