Package com.google.gwt.dom.client

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


  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


  @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

  @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

            //Styling depending upon state
            if ( cellData.isOtherwise() ) {
                tce.addClassName( resources.cellTableCellOtherwise() );
            } else {
                tce.removeClassName( resources.cellTableCellOtherwise() );
            }
            if ( cellData instanceof GroupedCellValue ) {
                GroupedCellValue gcv = (GroupedCellValue) cellData;
                if ( gcv.hasMultipleValues() ) {
                    tce.addClassName( resources.cellTableCellMultipleValues() );
View Full Code Here

                GroupedCellValue gcv = (GroupedCellValue) cellData;
                if ( gcv.hasMultipleValues() ) {
                    tce.addClassName( resources.cellTableCellMultipleValues() );
                }
            } else {
                tce.removeClassName( resources.cellTableCellMultipleValues() );
            }
            if ( cellData.isSelected() ) {
                tce.addClassName( resources.cellTableCellSelected() );
            } else {
                tce.removeClassName( resources.cellTableCellSelected() );
View Full Code Here

                tce.removeClassName( resources.cellTableCellMultipleValues() );
            }
            if ( cellData.isSelected() ) {
                tce.addClassName( resources.cellTableCellSelected() );
            } else {
                tce.removeClassName( resources.cellTableCellSelected() );
            }

            // Render the cell and set inner HTML
            SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder();
            if ( !cellData.isOtherwise() ) {
View Full Code Here

        //Merging, grouping etc could have led to the selected HTML cell disappearing
        if ( tce != null ) {
            String cellSelectedStyle = resources.cellTableCellSelected();
            String cellMultipleValuesStyle = resources.cellTableCellMultipleValues();
            String cellOtherwiseStyle = resources.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 = resources.cellTableCellSelected();
        String cellOtherwiseStyle = resources.cellTableCellOtherwise();
        String cellMultipleValuesStyle = resources.cellTableCellMultipleValues();

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

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

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

    @Override
View Full Code Here

                if ( gcv.hasMultipleValues() ) {
                    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
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.