Package com.google.gwt.user.client.ui

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


   */
  public void makeNotDraggable(Widget draggable) {
    Widget dragHandle = dragHandles.remove(draggable);
    mouseDragHandler.makeNotDraggable(dragHandle);
    draggable.removeStyleName(DragClientBundle.INSTANCE.css().draggable());
    dragHandle.removeStyleName(DragClientBundle.INSTANCE.css().handle());
  }

  public void previewDragEnd() throws VetoDragException {
    assert dragEndEvent == null;
    if (dragHandlers != null) {
View Full Code Here


  public void setBehaviorMultipleSelection(boolean multipleSelectionAllowed) {
    this.multipleSelectionAllowed = multipleSelectionAllowed;
    for (Iterator<Widget> iterator = context.selectedWidgets.iterator(); iterator.hasNext();) {
      Widget widget = iterator.next();
      widget.removeStyleName(DragClientBundle.INSTANCE.css().selected());
      iterator.remove();
    }
  }

  public void setBehaviorScrollIntoView(boolean scrollIntoView) {
View Full Code Here

  }

  public void clearSelection() {
    for (Iterator<Widget> iterator = context.selectedWidgets.iterator(); iterator.hasNext();) {
      Widget widget = iterator.next();
      widget.removeStyleName(DragClientBundle.INSTANCE.css().selected());
      iterator.remove();
    }
  }

  public void dragEnd() {
View Full Code Here

  public void clear() {
    Iterator<Widget> iterator = container.iterator();
    while (iterator.hasNext()) {
      Widget w = iterator.next();
      if (w instanceof IsFlexible) {
        w.removeStyleName(appearance.css().flexible());
      }
    }
    container.clear();
  }
View Full Code Here

  @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

  }

  public void clearSelection() {
    for (Iterator<Widget> iterator = context.selectedWidgets.iterator(); iterator.hasNext();) {
      Widget widget = iterator.next();
      widget.removeStyleName(CSS_SELECTED);
      iterator.remove();
    }
  }

  public void dragEnd() {
View Full Code Here

   */
  public void makeNotDraggable(Widget draggable) {
    Widget dragHandle = dragHandles.remove(draggable);
    mouseDragHandler.makeNotDraggable(dragHandle);
    draggable.removeStyleName(PRIVATE_CSS_DRAGGABLE);
    dragHandle.removeStyleName(PRIVATE_CSS_HANDLE);
  }

  public void previewDragEnd() throws VetoDragException {
    assert dragEndEvent == null;
    if (dragHandlers != null) {
View Full Code Here

  public void setBehaviorMultipleSelection(boolean multipleSelectionAllowed) {
    this.multipleSelectionAllowed = multipleSelectionAllowed;
    for (Iterator<Widget> iterator = context.selectedWidgets.iterator(); iterator.hasNext();) {
      Widget widget = iterator.next();
      widget.removeStyleName(CSS_SELECTED);
      iterator.remove();
    }
  }

  public void setConstrainWidgetToBoundaryPanel(boolean constrainWidgetToBoundaryPanel) {
View Full Code Here

    {
        view.showSelectedPerson(selectedPerson);
        Widget select = view.getSelect();
        if (selectedPerson != null)
        {
            select.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonInactive());
            select.addStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonActive());
        }
        else
        {
            select.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonActive());
View Full Code Here

            select.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonInactive());
            select.addStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonActive());
        }
        else
        {
            select.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonActive());
            select.addStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonInactive());
        }
    }
}
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.