public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
@Override public void clearLeft() { element.getStyle().clearLeft(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
@Override public void execute(JQueryWrapper query) { if (SlideAnimation.this.isVertical) { query.get(0).getStyle().clearTop(); } else { query.get(0).getStyle().clearLeft(); } } });
@Override public void onTouchCanceled(TouchCancelEvent event) { dropZIndeces(); Widget next = getNextWidget(); Widget previous = getPreviousWidget(); if (next != null) { next.getElement().getStyle().setVisibility(Visibility.HIDDEN); } if (previous != null) { previous.getElement().getStyle().setVisibility(Visibility.HIDDEN); } getVisibleChild().getElement().getStyle().clearLeft(); } });
break; case END: style.clearLeft(); style.setRight(0, Unit.PX); break;
private void clearTraces() { Style style = textWidget.getElement().getStyle(); style.clearLeft(); style.clearTop(); style.clearPosition(); style.clearZIndex(); stretchControl.getStyle().clearTop(); stretchControl.getStyle().clearLeft(); stretchControl.getStyle().clearDisplay(); JQueryWrapper.select("." + STRETCHER_BASE).setCss("display", ""); }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
public Widget asWidget() { // Define the left layout: Widget layout = UI_BINDER.createAndBindUi(this); // Create the MapPresenter and add an InitializationHandler: mapPresenter = GEOMAJASINJECTOR.getMapPresenter(); mapPresenter.setSize(480, 480); // Add a MapLegendDropDown to the panel on the left: legendPanel.add(new MapLegendDropDown(mapPresenter)); // Add a MapLegendDropDown to the MapPresenter: MapLegendDropDown mapDropDown = new MapLegendDropDown(mapPresenter); mapPresenter.getWidgetPane().add(mapDropDown, 0, 5); // Align the MapLegendDropDown on the map to the top-right: mapDropDown.getElement().getStyle().clearLeft(); mapDropDown.getElement().getStyle().setRight(5, Unit.PX); DecoratorPanel mapDecorator = new DecoratorPanel(); mapDecorator.add(mapPresenter.asWidget()); mapPanel.add(mapDecorator); // Initialize the map, and return the layout: mapPresenter.initialize("gwt-app", "mapLegend"); return layout; } }
availableWidth = 0; captionStyle.clearLeft(); captionStyle.setRight(0, Style.Unit.PX); style.setPaddingRight(captionWidth, Style.Unit.PX);
break; case END: style.clearLeft(); style.setRight(0, Unit.PX); break;
break; case END: style.clearLeft(); style.setRight(0, Unit.PX); break;