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

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


    }

    public Widget getWidget() {
      final Widget widget = super.getWidget();
      if (null != widget) {
        widget.removeStyleName(DraggablePanel.this.getGhostStyle());
      }
      return widget;
    }

    protected void prepare(final Widget widget) {
View Full Code Here


      // find the previously selected tab. and unselect it.
      final int previousIndex = contentPanel.getVisibleWidget();
      TabItem previouslySelectedTabItem = null;
      if (-1 != previousIndex) {
        final Widget tab = tabBarPanel.getWidget(previousIndex + 1);
        tab.removeStyleName(selectedStyle);
        previouslySelectedTabItem = this.get(previousIndex);
      }

      // apply the style to the new tab.
      final Widget tabBarItemPanel = tabBarPanel.getWidget(index + 1);
View Full Code Here

     * When the mouse is released fire interested event listeners, uninstall
     * the evnet previewer and reenable text selection.
     */
    protected void onMouseUp(final MouseUpEvent event) {
      final Widget widget = ResizablePanel.this.getWidget();
      widget.removeStyleName(ResizablePanel.this.getDraggedWidgetStyle());

      Selection.enableTextSelection();
      event.cancelBubble(true);
      event.stop();

View Full Code Here

                }
                int row = getSelectedRow(event);
                if (row > 0) {
                    Widget selectedWidget = validationsTable.getWidget(row, 0);
                    if (selectedWidget.getStyleName().contains("selectedValidationRow")) {
                        selectedWidget.removeStyleName("selectedValidationRow");
                        setCurrentValidation(null);
                        fireSelectedValidation();
                    } else {
                        selectedWidget.addStyleName("selectedValidationRow");
                        setCurrentValidation(currentValidations.get(row - 1));
View Full Code Here

    // Remove existing content widget.
    if (currentContent != null) {
      contentWrapper.setWidget(null);
      this.toggledWidgets = null;
      currentContent.removeStyleName(STYLENAME_CONTENT);
    }

    // Add new content widget if != null.
    if (content != null) {
      contentWrapper.setWidget(content);
View Full Code Here

  public void onNavigate(int newIndex) {}
 
  public void navigate(int newIndex) {
    if (currentIndex >= 0) {
      Widget currentWidget = contentPanel.getWidget(currentIndex);
      currentWidget.removeStyleName("filmstrip-current");
    }
   
    Widget newWidget = contentPanel.getWidget(newIndex);
    newWidget.addStyleName("filmstrip-current");
View Full Code Here

    for (int i = 0; i < container.getWidgetCount(); i++) {
      Widget widget = container.getWidget(i);
      if (i == index) {
        widget.addStyleName("selectedButtonListItem");
      } else {
        widget.removeStyleName("selectedButtonListItem");
      }
    }   
  }
 
  public void clear() {
View Full Code Here

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

  @Override
View Full Code Here

  @Override
  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());
  }

  @Override
  public void previewDragEnd() throws VetoDragException {
    assert dragEndEvent == null;
View Full Code Here

  @Override
  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();
    }
  }

  @Override
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.