List of usage examples for com.google.gwt.dom.client Style clearZIndex
public void clearZIndex()
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 ww w . ja v a 2 s . co m*/ 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: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 ava2s .c om*/ style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); }
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();/*ww w.j a va 2s . 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.opencms.ade.containerpage.client.ui.CmsGroupcontainerEditor.java
License:Open Source License
/** * Closes the dialog.<p>/*w ww.j a v a 2 s . c om*/ * * @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(); }
From source file:org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor.java
License:Open Source License
/** * Closes the dialog.<p>/* w w w.j a v a2s .c o 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()); } } clearInstance(); removeFromParent(); if (!m_controller.getData().isUseClassicEditor()) { for (Widget element : m_groupContainer) { if (element instanceof CmsContainerPageElementPanel) { ((CmsContainerPageElementPanel) element).removeInlineEditor(); } } } m_controller.reinitializeButtons(); m_controller.reInitInlineEditing(); m_controller.fireEvent(new CmsContainerpageEvent(EventType.elementEdited)); }