Examples of removeStyleName()


Examples of com.google.gwt.user.client.ui.Widget.removeStyleName()

  @Override
  public boolean remove(int index) {
    Widget w = getWidget(index);
    if (w instanceof IsFlexible) {
      w.removeStyleName(appearance.css().flexible());
    }
    return container.remove(index);
  }

  @Override
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget.removeStyleName()

  protected void doHandleError(Error error) {
    super.doHandleError(error);
    final Widget target = error.getTarget() == null ? null : error.getTarget().getWidget();
    if(target != null) {
      // handle styling
      target.removeStyleName(Styles.DIRTY);
      target.addStyleName(Styles.INVALID);

      // track popup hovering
      MouseRegs regs = invalids.get(target);
      if(regs == null) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget.removeStyleName()

    diagram.deselectAllSections();
    for (Iterator<Widget> iterator = context.selectedWidgets.iterator(); iterator.hasNext();) {
      Widget widget = iterator.next();

      widget.addStyleName(ConnectorsClientBundle.INSTANCE.css().shapeUnselected());
      widget.removeStyleName(ConnectorsClientBundle.INSTANCE.css().shapeSelected());
      if (!(widget instanceof Shape)) {
        widget.addStyleName(ConnectorsClientBundle.INSTANCE.css().widgetPaddingUnselected());
        widget.removeStyleName(ConnectorsClientBundle.INSTANCE.css().widgetPaddingSelected());
      }
      iterator.remove();
View Full Code Here

Examples of com.google.gwt.user.client.ui.Widget.removeStyleName()

      widget.addStyleName(ConnectorsClientBundle.INSTANCE.css().shapeUnselected());
      widget.removeStyleName(ConnectorsClientBundle.INSTANCE.css().shapeSelected());
      if (!(widget instanceof Shape)) {
        widget.addStyleName(ConnectorsClientBundle.INSTANCE.css().widgetPaddingUnselected());
        widget.removeStyleName(ConnectorsClientBundle.INSTANCE.css().widgetPaddingSelected());
      }
      iterator.remove();
    }
  }
View Full Code Here

Examples of com.google.gwt.widgetideas.datepicker.client.SimpleCalendarView.CellGrid.Cell.removeStyleName()

        case Event.ONMOUSEOUT: {
          Element e = DOM.eventGetFromElement(event);
          if (e != null) {
            Cell cell = cellMap.get(e);
            if (cell != null) {
              cell.removeStyleName(Styles.HIGHLIGHTED_CELL);
              Element target = DOM.eventGetToElement(event);
              if (target != null && cellMap.get(target) == null) {
                updateHighlightedDate(null);
              }
            }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PElement.removeStyleName()

    @Override
    public void removeColumnStyle(final int column, final String styleName) {
        final Iterator<PElement> iterator = getColumnIterator(column);
        while (iterator.hasNext()) {
            final PElement e = iterator.next();
            e.removeStyleName(styleName);
        }
    }

    @Override
    public void setColumnWidth(final int column, final String width) {
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PFlowPanel.removeStyleName()

        box.addDomHandler(new PDropHandler() {

            @Override
            public void onDrop(final PDropEvent event) {
                box.removeStyleName("dragenter");
                final PWidget source = event.getDragSource();
                if (source != null && source != box) {
                    final int dropIndex = boxContainer.getWidgetIndex(box);
                    boxContainer.remove(source);
                    boxContainer.insert(source, dropIndex);
View Full Code Here

Examples of com.vaadin.ui.AbstractComponent.removeStyleName()

    }

    public void testSetRemove() {
        AbstractComponent component = getComponent();
        component.setStyleName("style1 style2");
        component.removeStyleName("style1");
        assertEquals(component.getStyleName(), "style2");
    }

    public void testAddRemove() {
        AbstractComponent component = getComponent();
View Full Code Here

Examples of com.vaadin.ui.AbstractComponent.removeStyleName()

    public void testAddRemove() {
        AbstractComponent component = getComponent();
        component.addStyleName("style1");
        component.addStyleName("style2");
        component.removeStyleName("style1");
        assertEquals(component.getStyleName(), "style2");
    }

    public void testRemoveMultipleWithExtraSpaces() {
        AbstractComponent component = getComponent();
View Full Code Here

Examples of com.vaadin.ui.AbstractComponent.removeStyleName()

    }

    public void testRemoveMultipleWithExtraSpaces() {
        AbstractComponent component = getComponent();
        component.setStyleName("style1 style2 style3");
        component.removeStyleName(" style1  style3 ");
        assertEquals(component.getStyleName(), "style2");
    }

    public void testSetWithExtraSpaces() {
        AbstractComponent component = getComponent();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.