Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.TableCellElement.removeClassName()


                    tce.addClassName( style.cellTableCellMultipleValues() );
                }
            }
            if ( cellData.isSelected() ) {
                tce.removeClassName( style.cellTableCellMultipleValues() );
                tce.removeClassName( style.cellTableCellOtherwise() );
                tce.addClassName( style.cellTableCellSelected() );
            }

            // Render the cell and set inner HTML
            SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder();
View Full Code Here


        //Merging, grouping etc could have led to the selected HTML cell disappearing
        if ( tce != null ) {
            String cellSelectedStyle = style.cellTableCellSelected();
            String cellMultipleValuesStyle = style.cellTableCellMultipleValues();
            String cellOtherwiseStyle = style.cellTableCellOtherwise();
            tce.removeClassName( cellSelectedStyle );

            //Re-apply applicable styling
            if ( cell.isOtherwise() ) {
                tce.addClassName( cellOtherwiseStyle );
            }
View Full Code Here

        //Cell selected style takes precedence
        String cellSelectedStyle = style.cellTableCellSelected();
        String cellOtherwiseStyle = style.cellTableCellOtherwise();
        String cellMultipleValuesStyle = style.cellTableCellMultipleValues();

        tce.removeClassName( cellMultipleValuesStyle );
        tce.removeClassName( cellOtherwiseStyle );
        tce.addClassName( cellSelectedStyle );
        tce.focus();
    }
View Full Code Here

        String cellSelectedStyle = style.cellTableCellSelected();
        String cellOtherwiseStyle = style.cellTableCellOtherwise();
        String cellMultipleValuesStyle = style.cellTableCellMultipleValues();

        tce.removeClassName( cellMultipleValuesStyle );
        tce.removeClassName( cellOtherwiseStyle );
        tce.addClassName( cellSelectedStyle );
        tce.focus();
    }

    @Override
View Full Code Here

  protected void onBlur() {
    Element elem = getKeyboardSelectedElement();
    if (elem != null) {
      TableCellElement td = elem.getParentElement().cast();
      TableRowElement tr = td.getParentElement().cast();
      td.removeClassName(style.cellTableKeyboardSelectedCell());
      td.removeAttribute("aria-selected");
      setRowStyleName(tr, style.cellTableKeyboardSelectedRow(),
          style.cellTableKeyboardSelectedRowCell(), false);
    }
  }
View Full Code Here

  @Override
  protected void onBlur() {
    TableCellElement td = getKeyboardSelectedTableCellElement();
    if (td != null) {
      TableRowElement tr = td.getParentElement().cast();
      td.removeClassName(style.keyboardSelectedCell());
      setRowStyleName(tr, style.keyboardSelectedRow(), style.keyboardSelectedRowCell(), false);
    }
  }

  @SuppressWarnings("deprecation")
View Full Code Here

  protected void onBlur() {
    Element elem = getKeyboardSelectedElement();
    if (elem != null) {
      TableCellElement td = elem.getParentElement().cast();
      TableRowElement tr = td.getParentElement().cast();
      td.removeClassName(style.cellTableKeyboardSelectedCell());
      td.removeAttribute(Accessibility.STATE_SELECTED);
      setRowStyleName(tr, style.cellTableKeyboardSelectedRow(),
          style.cellTableKeyboardSelectedRowCell(), false);
    }
  }
View Full Code Here

  protected void onBlur() {
    Element elem = getKeyboardSelectedElement();
    if (elem != null) {
      TableCellElement td = elem.getParentElement().cast();
      TableRowElement tr = td.getParentElement().cast();
      td.removeClassName(style.cellTableKeyboardSelectedCell());
      setRowStyleName(tr, style.cellTableKeyboardSelectedRow(),
          style.cellTableKeyboardSelectedRowCell(), false);
    }
  }
View Full Code Here

                .<TableRowElement> cast();
        TableCellElement tce = tre.getCells().getItem( hc.getCol() )
                .<TableCellElement> cast();

        String cellSelectedStyle = style.cellTableCellSelected();
        tce.removeClassName( cellSelectedStyle );
    }

    @Override
    public void hideColumn(int index) {
        if ( index < 0 ) {
View Full Code Here

      // Remove old selection markers
      TableRowElement row = getRowElement(oldRow - pageStart);
      row.removeClassName(style.keyboardSelectedRow());
      TableCellElement td = row.getCells().getItem(oldColumn);
      td.removeClassName(style.keyboardSelectedCell());
      td.removeAttribute("tabIndex");

      // Move page start if needed
      if (keyboardSelectedRow >= pageStart + pageSize) {
        setPageStart(keyboardSelectedRow - pageSize + 1);
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.