List of usage examples for com.google.gwt.dom.client Style clearTop
public void clearTop()
From source file:com.alkacon.acacia.client.ui.AttributeValueView.java
License:Open Source License
/** * Removes the drag helper styles from the given element.<p> * /*from w ww . j a va 2 s. c o m*/ * @param helper the helper element */ private void removeDragHelperStyles(Element helper) { Style style = helper.getStyle(); style.clearTop(); style.clearLeft(); style.clearPosition(); style.clearWidth(); helper.removeClassName(formCss().dragHelper()); }
From source file:com.dianaui.universal.core.client.ui.DateTimePicker.java
License:Apache License
@Override public void setVisible(final boolean visible) { Style style = container.getElement().getStyle(); if (visible) { style.setDisplay(Style.Display.BLOCK); style.setZIndex(9999);//from w w w . j a va2 s .c om style.setPosition(Style.Position.ABSOLUTE); style.setProperty("right", "auto"); } else { super.setVisible(false); style.clearDisplay(); style.clearZIndex(); style.clearPosition(); style.clearTop(); style.clearLeft(); } }
From source file:com.google.appinventor.client.editor.simple.components.MockImageBase.java
License:Open Source License
private void unclipImage() { Style style = image.getElement().getStyle(); style.clearLeft();//from ww w .j ava2 s. com style.clearTop(); style.clearWidth(); style.clearHeight(); }
From source file:com.vaadin.client.ui.VGridLayout.java
License:Apache License
@Override public boolean remove(Widget w) { boolean removed = super.remove(w); if (removed) { Cell cell = widgetToCell.remove(w); if (cell != null) { cell.slot.setCaption(null);/* w w w . ja v a 2 s.co m*/ cell.slot.getWrapperElement().removeFromParent(); cell.slot = null; Style style = w.getElement().getStyle(); style.clearTop(); style.clearLeft(); style.clearPosition(); if (cells.length < cell.col && cells.length != 0 && cells[0].length < cell.row && cells[cell.col][cell.row] == cell) { cells[cell.col][cell.row] = null; } } } return removed; }
From source file:fr.putnami.pwt.core.widget.client.Affix.java
License:Open Source License
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition();//from w w w.j a va 2 s . c o m style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); }
From source file:geogebra.web.gui.app.docklayout.LayoutImpl.java
License:Apache License
public void layout(Layer layer) { Style style = layer.container.getStyle(); if (layer.visible) { style.clearDisplay();//w w w. ja va 2 s . c o m } else { style.setDisplay(Display.NONE); } style.setProperty("left", layer.setLeft ? (layer.left + layer.leftUnit.getType()) : ""); style.setProperty("top", layer.setTop ? (layer.top + layer.topUnit.getType()) : ""); style.setProperty("right", layer.setRight ? (layer.right + layer.rightUnit.getType()) : ""); style.setProperty("bottom", layer.setBottom ? (layer.bottom + layer.bottomUnit.getType()) : ""); style.setProperty("width", layer.setWidth ? (layer.width + layer.widthUnit.getType()) : ""); style.setProperty("height", layer.setHeight ? (layer.height + layer.heightUnit.getType()) : ""); style = layer.child.getStyle(); switch (layer.hPos) { case BEGIN: style.setLeft(0, Unit.PX); style.clearRight(); break; case END: style.clearLeft(); style.setRight(0, Unit.PX); break; case STRETCH: style.setLeft(0, Unit.PX); style.setRight(0, Unit.PX); break; } switch (layer.vPos) { case BEGIN: style.setTop(0, Unit.PX); style.clearBottom(); break; case END: style.clearTop(); style.setBottom(0, Unit.PX); break; case STRETCH: style.setTop(0, Unit.PX); style.setBottom(0, Unit.PX); break; } }
From source file:geogebra.web.gui.app.docklayout.LayoutImpl.java
License:Apache License
public void removeChild(Element container, Element child) { container.removeFromParent();// www . ja v a 2s . c o m // 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(); }
From source file:info.magnolia.ui.vaadin.gwt.client.richtext.TextAreaStretcherConnector.java
License:Open Source License
private void clearTraces() { Style style = textWidget.getElement().getStyle(); style.clearLeft();//from ww w . ja va 2 s. c o m style.clearTop(); style.clearPosition(); style.clearZIndex(); stretchControl.getStyle().clearTop(); stretchControl.getStyle().clearLeft(); JQueryWrapper.select("." + STRETCHER_BASE).setCss("display", ""); }
From source file:org.eclipse.che.ide.ui.window.Window.java
License:Open Source License
/** * Hides the {@link Window} popup. The popup will animate out of view. *//*from ww w . java 2 s . co m*/ public void hide() { if (blocked) { return; } if (!isShowing) { return; } isShowing = false; // Animate the popup out of existence. view.setShowing(false); // Remove the popup when the animation completes. new Timer() { @Override public void run() { if (blocked) { return; } // The popup may have been shown before this timer executes. if (!isShowing) { view.removeFromParent(); Style style = view.contentContainer.getElement().getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); } } }.schedule(view.getAnimationDuration()); }
From source file:org.opencms.ade.containerpage.client.ui.CmsGroupcontainerEditor.java
License:Open Source License
/** * Closes the dialog.<p>/*from w w w . java2 s . co m*/ * * @param breakingUp <code>true</code> if the group container is to be removed */ protected void closeDialog(boolean breakingUp) { m_controller.stopEditingGroupcontainer(); m_editingPlaceholder.removeFromParent(); m_editorDialog.hide(); RootPanel.get().removeStyleName(I_CmsLayoutBundle.INSTANCE.containerpageCss().groupcontainerEditing()); if (!breakingUp) { m_groupContainer.clearEditingPlaceholder(); Style style = m_groupContainer.getElement().getStyle(); style.clearPosition(); style.clearTop(); style.clearLeft(); style.clearZIndex(); style.clearWidth(); m_parentContainer.insert(m_groupContainer, m_indexPosition); m_groupContainer.getElementOptionBar().setVisible(true); if (!m_groupContainer.iterator().hasNext()) { // group-container is empty, mark it m_groupContainer.addStyleName(I_CmsLayoutBundle.INSTANCE.containerpageCss().emptyGroupContainer()); } } INSTANCE = null; this.removeFromParent(); }