Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2011 JBoss Inc
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
  */
 package org.drools.workbench.screens.guided.dtable.client.widget.table;
 
 import java.util.List;
 
Header for a Vertical Decision Table
 
 
     private static final String DATE_FORMAT = ApplicationPreferences.getDroolsDateFormat();
 
     private static final DateTimeFormat format = DateTimeFormat.getFormat );
 
     // UI Components
     private HeaderWidget widget;
 
     //Offsets from the left most column
     private int multiRowColumnOffset = -1;
    private int multiRowColumnActionsOffset = -1;

    
This is the guts of the widget.
    private class HeaderWidget extends CellPanel {

        
A Widget to display sort order
        private class HeaderSorter extends FocusPanel {
            private final HorizontalPanel hp = new HorizontalPanel();
            private final DynamicColumn<BaseColumncol;
            private HeaderSorterfinal DynamicColumn<BaseColumncol ) {
                this. = col;
                .setHorizontalAlignment. );
                .setVerticalAlignment. );
                .setHeight.rowHeaderSorterHeight() + "px" );
                .setWidth"100%" );
                setIconImage();
                add );
                // Ensure our icon is updated when the SortDirection changes
                col.addValueChangeHandlernew ValueChangeHandler<SortConfiguration>() {
                    public void onValueChangeValueChangeEvent<SortConfigurationevent ) {
                        setIconImage();
                    }
                } );
            }
            // Set icon's resource accordingly
            private void setIconImage() {
                .clear();
                switch ( .getSortDirection() ) {
                    case :
                        switch ( .getSortIndex() ) {
                            case 0:
                                .addnew Image.upArrowIcon() ) );
                                break;
                            default:
                                .addnew Image.smallUpArrowIcon() ) );
                        }
                        break;
                    case :
                        switch ( .getSortIndex() ) {
                            case 0:
                                .addnew Image.downArrowIcon() ) );
                                break;
                            default:
                                .addnew Image.smallDownArrowIcon() ) );
                        }
                        break;
                    default:
                        .addnew Image.arrowSpacerIcon() ) );
                }
            }
        }

        
A Widget to split Conditions section
        private class HeaderSplitter extends FocusPanel {

            
Animation to change the height of a row
            private class HeaderRowAnimation extends Animation {
                private TableRowElement tre;
                private int startHeight;
                private int endHeight;
                private HeaderRowAnimationTableRowElement tre,
                                            int startHeight,
                                            int endHeight ) {
                    this. = tre;
                    this. = startHeight;
                    this. = endHeight;
                }
                // Set row height by setting height of children
                private void setHeightint height ) {
                    for ( int i = 0; i < .getChildCount(); i++ ) {
                        .getChildi ).getFirstChild().<DivElement>cast().getStyle().setHeightheight,
                                                                                                   . );
                    }
                    fireResizeEvent();
                }
                @Override
                protected void onComplete() {
                    super.onComplete();
                    setHeight );
                }
                @Override
                protected void onUpdatedouble progress ) {
                    int height = (int) (  + ( progress * (  -  ) ) );
                    setHeightheight );
                }
            }
            private Element[] rowHeaders;
            private final HorizontalPanel hp = new HorizontalPanel();
            private final Image icon = new Image();
            private boolean isCollapsed = true;
            private HeaderSplitter() {
                .setHorizontalAlignment. );
                .setVerticalAlignment. );
                .getElement().getStyle().setHeight.rowHeaderSplitterHeight(),
                                                      . );
                .setWidth"100%" );
                setIconImage();
                .add );
                add );
                // Handle action
                addClickHandlernew ClickHandler() {
                    public void onClickClickEvent event ) {
                        if (  ) {
                            showRow( 2 );
                            showRow( 3 );
                        } else {
                            hideRow( 2 );
                            hideRow( 3 );
                        }
                         = !;
                        setIconImage();
                    }
                } );
            }
            // Hide a row using our animation
            private void hideRowint iRow ) {
                if (  == null
                        || ( . - 1 ) < iRow ) {
                    return;
                }
                TableRowElement tre = iRow ].<TableRowElement>cast();
                HeaderRowAnimation anim = new HeaderRowAnimationtre,
                                                                  .rowHeaderHeight(),
                                                                  0 );
                anim.run( 250 );
            }
            // Set icon's resource accordingly
            private void setIconImage() {
                if (  ) {
                    .setResource.smallDownArrowIcon() );
                } else {
                    .setResource.smallUpArrowIcon() );
                }
            }
            // Set rows to animate
            private void setRowHeadersElement[] rowHeaders ) {
                this. = rowHeaders;
            }
            // Show a row using our animation
            private void showRowint iRow ) {
                if (  == null || ( . - 1 ) < iRow ) {
                    return;
                }
                TableRowElement tre = iRow ].<TableRowElement>cast();
                HeaderRowAnimation anim = new HeaderRowAnimationtre,
                                                                  0,
                                                                  .rowHeaderHeight() );
                anim.run( 250 );
            }
        }
        // Child Widgets used in this Widget
        private List<HeaderSortersorters = new ArrayList<HeaderSorter>();
        private HeaderSplitter splitter = new HeaderSplitter();
        // UI Components
        private Element[] rowHeaders = new Element[ 5 ];
        // Constructor
        private HeaderWidget() {
            for ( int iRow = 0; iRow < .iRow++ ) {
                iRow ] = DOM.createTR();
                getBody().appendChildiRow ] );
            }
            getBody().getParentElement().<TableElement>cast().setCellSpacing( 0 );
            getBody().getParentElement().<TableElement>cast().setCellPadding( 0 );
        }
        // Make default header label
        private Element makeLabelString text,
                                   int width,
                                   int height ) {
            Element div = DOM.createDiv();
            div.getStyle().setWidthwidth,
                                     . );
            div.getStyle().setHeightheight,
                                      . );
            div.getStyle().setOverflow. );
            div.setInnerTexttext );
            return div;
        }
        // Populate a default header element
        private void populateTableCellElementBaseColumn modelCol,
                                               int width,
                                               Element tce ) {
            if ( modelCol instanceof RowNumberCol52 ) {
                tce.appendChildmakeLabel"#",
                                            width,
                                            .rowHeaderHeight() ) );
                tce.<TableCellElement>cast().setRowSpan( 4 );
                tce.addClassName.headerRowIntermediate() );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof DescriptionCol52 ) {
                tce.appendChildmakeLabel..Description(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.<TableCellElement>cast().setRowSpan( 4 );
                tce.addClassName.headerRowIntermediate() );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof MetadataCol52 ) {
                tce.appendChildmakeLabel( ( (MetadataCol52modelCol ).getMetadata(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.<TableCellElement>cast().setRowSpan( 4 );
                tce.addClassName.headerRowIntermediate() );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof AttributeCol52 ) {
                tce.appendChildmakeLabel( ( (AttributeCol52modelCol ).getAttribute(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.<TableCellElement>cast().setRowSpan( 4 );
                tce.addClassName.headerRowIntermediate() );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof ConditionCol52 ) {
                ConditionCol52 cc = (ConditionCol52modelCol;
                StringBuilder header = new StringBuilder();
                if ( cc.isBound() ) {
                    header.appendcc.getBinding() );
                    header.append" : " );
                }
                header.appendcc.getHeader() );
                tce.appendChildmakeLabelheader.toString(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof ActionCol52 ) {
                tce.appendChildmakeLabel( ( (ActionCol52modelCol ).getHeader(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.addClassName.cellTableColumnmodelCol ) );
            } else if ( modelCol instanceof AnalysisCol52 ) {
                tce.appendChildmakeLabel..Analysis(),
                                            width,
                                            .rowHeaderHeight() ) );
                tce.<TableCellElement>cast().setRowSpan( 4 );
                tce.addClassName.headerRowIntermediate() );
                tce.addClassName.cellTableColumnmodelCol ) );
            }
        }
        // Redraw entire header
        private void redraw() {
            // Remove existing widgets from the DOM hierarchy
            if (  != null ) {
                remove );
            }
            for ( HeaderSorter sorter :  ) {
                removesorter );
            }
            .clear();
            // Extracting visible columns makes life easier
            .clear();
            .clear();
            .clear();
             = -1;
             = -1;
            int iColumnCount = 0;
            for ( int iCol = 0; iCol < .size(); iCol++ ) {
                DynamicColumn<BaseColumncol = .getiCol );
                if ( col.isVisible() ) {
                    .addcol );
                    BaseColumn modelCol = col.getModelColumn();
                    if ( modelCol instanceof ConditionCol52 ) {
                        if (  == -1 ) {
                             = iColumnCount;
                        }
                        .addcol );
                    }
                    if ( modelCol instanceof ActionCol52 ) {
                        if (  == -1 ) {
                             = iColumnCount;
                        }
                        if (  == -1 ) {
                             = iColumnCount;
                        }
                        .addcol );
                    }
                    iColumnCount++;
                }
            }
            // Draw rows
            for ( int iRow = 0; iRow < .iRow++ ) {
                redrawHeaderRowiRow );
            }
            fireResizeEvent();
        }
        // Redraw a single row obviously
        private void redrawHeaderRowint iRow ) {
            Element tce = null;
            Element tre = DOM.createTR();
            switch ( iRow ) {
                case 0:
                    // General row, all visible cells included
                    for ( int iCol = 0; iCol < .size(); iCol++ ) {
                        DynamicColumn<BaseColumncol = .getiCol );
                        BaseColumn modelCol = col.getModelColumn();
                        tce = DOM.createTD();
                        tce.addClassName.headerText() );
                        tre.appendChildtce );
                        // Merging
                        int colSpan = 1;
                        int width = col.getWidth();
                        if ( modelCol instanceof BRLVariableColumn ) {
                            BRLVariableColumn brlColumn = (BRLVariableColumncol.getModelColumn();
                            BRLColumn<?, ?> brlColumnParent = .getBRLColumnbrlColumn );
                            while ( iCol + colSpan < .size() ) {
                                DynamicColumn<BaseColumnmergeCol = .getiCol + colSpan );
                                BaseColumn mergeModelCol = mergeCol.getModelColumn();
                                if ( !( mergeModelCol instanceof BRLVariableColumn ) ) {
                                    break;
                                }
                                BRLVariableColumn mergeBRLColumn = (BRLVariableColumnmergeModelCol;
                                BRLColumn<?, ?> mergeBRLColumnParent = .getBRLColumnmergeBRLColumn );
                                if ( mergeBRLColumnParent != brlColumnParent ) {
                                    break;
                                }
                                width = width + mergeCol.getWidth();
                                colSpan++;
                            }
                            iCol = iCol + colSpan - 1;
                        }
                        populateTableCellElementmodelCol,
                                                  width,
                                                  tce );
                        tce.<TableCellElement>cast().setColSpancolSpan );
                    }
                    break;
                case 1:
                    // Splitter between "general" and "technical" condition details
                    if ( .size() > 0 || .size() > 0 ) {
                        .setRowHeaders );
                        tce = DOM.createTD();
                        tce.<TableCellElement>cast().setColSpan.size() + .size() );
                        tce.addClassName.headerSplitter() );
                        tre.appendChildtce );
                        add,
                             tce );
                    }
                    break;
                case 2:
                    // Condition FactType, merged between identical
                    for ( int iCol = 0; iCol < .size(); iCol++ ) {
                        DynamicColumn<BaseColumncol = .getiCol );
                        ConditionCol52 cc = (ConditionCol52col.getModelColumn();
                        Pattern52 ccPattern = .getPatterncc );
                        tce = DOM.createTD();
                        tce.addClassName.headerText() );
                        tce.addClassName.cellTableColumncol.getModelColumn() ) );
                        tce.addClassName.headerRowIntermediate() );
                        tre.appendChildtce );
                        // Merging
                        int colSpan = 1;
                        int width = col.getWidth();
                        while ( iCol + colSpan < .size() ) {
                            DynamicColumn<BaseColumnmergeCol = .getiCol + colSpan );
                            ConditionCol52 mergeCondCol = (ConditionCol52mergeCol.getModelColumn();
                            Pattern52 mergeCondColPattern = .getPatternmergeCondCol );
                            if ( mergeCondColPattern != ccPattern ) {
                                break;
                            }
                            width = width + mergeCol.getWidth();
                            colSpan++;
                        }
                        iCol = iCol + colSpan - 1;
                        //Make applicable label (TODO move to Factory method)
                        StringBuilder label = new StringBuilder();
                        if ( cc instanceof LimitedEntryBRLConditionColumn ) {
                            //Nothing needed
                        } else if ( cc instanceof BRLConditionVariableColumn ) {
                            BRLConditionVariableColumn brl = (BRLConditionVariableColumncc;
                            label.appendbrl.getVarName() );
                        } else if ( cc instanceof ConditionCol52 ) {
                            String factType = ccPattern.getFactType();
                            String boundName = ccPattern.getBoundName();
                            if ( factType != null && factType.length() > 0 ) {
                                if ( ccPattern.isNegated() ) {
                                    label.append..negatedPattern() ).append" " ).appendfactType );
                                } else {
                                    label.appendfactType ).append" [" ).appendboundName ).append"]" );
                                }
                            }
                        }
                        tce.appendChildmakeLabellabel.toString(),
                                                    width,
                                                    ( . ? 0 : .rowHeaderHeight() ) ) );
                        tce.<TableCellElement>cast().setColSpancolSpan );
                    }
                    //Action FactType
                    for ( int iCol = 0; iCol < .size(); iCol++ ) {
                        DynamicColumn<BaseColumncol = .getiCol );
                        ActionCol52 ac = (ActionCol52col.getModelColumn();
                        tce = DOM.createTD();
                        tce.addClassName.headerText() );
                        tce.addClassName.cellTableColumncol.getModelColumn() ) );
                        tce.addClassName.headerRowIntermediate() );
                        tre.appendChildtce );
                        //Make applicable label (TODO move to Factory method)
                        StringBuilder label = new StringBuilder();
                        if ( ac instanceof ActionInsertFactCol52 ) {
                            ActionInsertFactCol52 aifc = (ActionInsertFactCol52ac;
                            String factType = aifc.getFactType();
                            String binding = aifc.getBoundName();
                            if ( factType != null && factType.length() > 0 ) {
                                label.appendfactType );
                                if ( binding != null ) {
                                    label.append" [" + binding + "]" );
                                }
                            }
                        } else if ( ac instanceof ActionSetFieldCol52 ) {
                            String factType = ( (ActionSetFieldCol52ac ).getBoundName();
                            if ( factType != null && factType.length() > 0 ) {
                                label.appendfactType );
                            }
                        } else if ( ac instanceof LimitedEntryActionRetractFactCol52 ) {
                            String factType = ( (LimitedEntryActionRetractFactCol52ac ).getValue().getStringValue();
                            if ( factType != null && factType.length() > 0 ) {
                                label.appendfactType );
                            }
                        } else if ( ac instanceof ActionWorkItemCol52 ) {
                            String factType = ( (ActionWorkItemCol52ac ).getWorkItemDefinition().getDisplayName();
                            if ( factType != null && factType.length() > 0 ) {
                                label.appendfactType );
                            }
                        } else if ( ac instanceof BRLActionVariableColumn ) {
                            String factType = ( (BRLActionVariableColumnac ).getVarName();
                            if ( factType != null && factType.length() > 0 ) {
                                label.appendfactType );
                            }
                        }
                        tce.appendChildmakeLabellabel.toString(),
                                                    col.getWidth(),
                                                    ( . ? 0 : .rowHeaderHeight() ) ) );
                    }
                    break;
                case 3:
                    // Condition Fact Fields
                    for ( DynamicColumn<BaseColumncol :  ) {
                        tce = DOM.createTD();
                        tce.addClassName.headerText() );
                        tce.addClassName.headerRowIntermediate() );
                        tce.addClassName.cellTableColumncol.getModelColumn() ) );
                        tre.appendChildtce );
                        ConditionCol52 cc = (ConditionCol52col.getModelColumn();
                        //Make applicable label (TODO move to Factory method)
                        StringBuilder label = new StringBuilder();
                        if ( cc instanceof LimitedEntryBRLConditionColumn ) {
                            //Nothing needed
                        } else if ( cc instanceof BRLConditionVariableColumn ) {
                            BRLConditionVariableColumn brl = (BRLConditionVariableColumncc;
                            String field = brl.getFactField();
                            label.appendfield == null ? "" : field );
                        } else if ( cc instanceof ConditionCol52 ) {
                            String factField = cc.getFactField();
                            if ( factField != null && factField.length() > 0 ) {
                                label.appendfactField );
                            }
                            if ( cc.getConstraintValueType() != . ) {
                                label.append" [" );
                                label.appendcc.getOperator() );
                                String lev = getLimitedEntryValuecc );
                                if ( lev != null ) {
                                    label.appendlev );
                                }
                                label.append"]" );
                            }
                        }
                        tce.appendChildmakeLabellabel.toString(),
                                                    col.getWidth(),
                                                    ( . ? 0 : .rowHeaderHeight() ) ) );
                    }
                    // Action Fact Fields
                    for ( DynamicColumn<BaseColumncol :  ) {
                        tce = DOM.createTD();
                        tce.addClassName.headerText() );
                        tce.addClassName.headerRowIntermediate() );
                        tce.addClassName.cellTableColumncol.getModelColumn() ) );
                        tre.appendChildtce );
                        ActionCol52 ac = (ActionCol52col.getModelColumn();
                        //Make applicable label (TODO move to Factory method)
                        StringBuilder label = new StringBuilder();
                        if ( ac instanceof ActionInsertFactCol52 ) {
                            ActionInsertFactCol52 aifc = (ActionInsertFactCol52ac;
                            String factField = aifc.getFactField();
                            if ( factField != null && factField.length() > 0 ) {
                                label.appendfactField );
                            }
                            String lev = getLimitedEntryValueaifc );
                            if ( lev != null ) {
                                label.append" [" );
                                label.appendlev );
                                label.append"]" );
                            }
                        } else if ( ac instanceof ActionSetFieldCol52 ) {
                            ActionSetFieldCol52 asf = (ActionSetFieldCol52ac;
                            String factField = asf.getFactField();
                            if ( factField != null && factField.length() > 0 ) {
                                label.appendfactField );
                            }
                            String lev = getLimitedEntryValueasf );
                            if ( lev != null ) {
                                label.append" [" );
                                label.appendlev );
                                label.append"]" );
                            }
                        } else if ( ac instanceof ActionRetractFactCol52 ) {
                            label.append"[" + ..Retract() + "]" );
                        } else if ( ac instanceof ActionWorkItemCol52 ) {
                            label.append"[" + ..WorkItemAction() + "]" );
                        } else if ( ac instanceof BRLActionVariableColumn ) {
                            BRLActionVariableColumn brl = (BRLActionVariableColumnac;
                            String field = brl.getFactField();
                            label.appendfield == null ? "" : field );
                        }
                        tce.appendChildmakeLabellabel.toString(),
                                                    col.getWidth(),
                                                    ( . ? 0 : .rowHeaderHeight() ) ) );
                    }
                    break;
                case 4:
                    // Sorters
                    for ( DynamicColumn<BaseColumncol :  ) {
                        if ( col.isVisible() ) {
                            final HeaderSorter shp = new HeaderSortercol );
                            final DynamicColumn<BaseColumnsortableColumn = col;
                            if ( ! ) {
                                shp.addClickHandlernew ClickHandler() {
                                    public void onClickClickEvent event ) {
                                        if ( sortableColumn.isSortable() ) {
                                            updateSortOrdersortableColumn );
                                            SortDataEvent sde = new SortDataEventgetSortConfiguration() );
                                            .fireEventsde );
                                        }
                                    }
                                } );
                            }
                            .addshp );
                            tce = DOM.createTD();
                            tce.addClassName.headerRowBottom() );
                            tce.addClassName.cellTableColumncol.getModelColumn() ) );
                            tre.appendChildtce );
                            addshp,
                                 tce );
                        }
                    }
                    break;
            }
            getBody().replaceChildtre,
                                    iRow ] );
            iRow ] = tre;
        }
        private String getLimitedEntryValueDTColumnConfig52 c ) {
            if ( !( c instanceof LimitedEntryCol ) ) {
                return null;
            }
            LimitedEntryCol lec = (LimitedEntryColc;
            DTCellValue52 cv = lec.getValue();
            if ( cv == null ) {
                return null;
            }
            DataType.DataTypes type = cv.getDataType();
            switch ( type ) {
                case :
                    return cv.getBooleanValue().toString();
                case :
                    final BigDecimal numeric = (BigDecimalcv.getNumericValue();
                    return numeric.toPlainString();
                case :
                    final BigDecimal numericBigDecimal = (BigDecimalcv.getNumericValue();
                    return numericBigDecimal.toPlainString();
                case :
                    final BigInteger numericBigInteger = (BigIntegercv.getNumericValue();
                    return numericBigInteger.toString();
                case :
                    final Byte numericByte = (Bytecv.getNumericValue();
                    return numericByte.toString();
                case :
                    final Double numericDouble = (Doublecv.getNumericValue();
                    return numericDouble.toString();
                case :
                    final Float numericFloat = (Floatcv.getNumericValue();
                    return numericFloat.toString();
                case :
                    final Integer numericInteger = (Integercv.getNumericValue();
                    return numericInteger.toString();
                case :
                    final Long numericLong = (Longcv.getNumericValue();
                    return numericLong.toString();
                case :
                    final Short numericShort = (Shortcv.getNumericValue();
                    return numericShort.toString();
                case :
                    return .formatcv.getDateValue() );
                default:
                    return cv.getStringValue();
            }
        }
    }

    
Construct a "Header" for the provided DecisionTable

Parameters:
resources
eventBus
                                              final boolean isReadOnly,
                                              final EventBus eventBus ) {
        superresources,
               isReadOnly,
               eventBus );
        //Wire-up event handlers
                             this );
                             this );
    }
    @Override
    public void redraw() {
        .redraw();
    }
    @Override
    public void setScrollPositionint position ) {
        if ( position < 0 ) {
            throw new IllegalArgumentException"position cannot be null" );
        }
        ( (ScrollPanelthis. ).setHorizontalScrollPositionposition );
    }
    // Schedule resize event after header has been drawn or resized
    private void fireResizeEvent() {
        Scheduler.get().scheduleDeferrednew ScheduledCommand() {
            public void execute() {
                ResizeEvent.fireVerticalDecisionTableHeaderWidget.this,
                                  .getOffsetWidth(),
                                  .getOffsetHeight() );
            }
        } );
    }
    // Set the cursor type for all cells on the table as
    // we only use rowHeader[4] to check which column
    // needs resizing however the mouse could be over any
    // row
    private void setCursorTypeCursor cursor ) {
        for ( int iRow = 0; iRow < ..iRow++ ) {
            TableRowElement tre = .iRow ].<TableRowElement>cast();
            for ( int iCol = 0; iCol < tre.getCells().getLength(); iCol++ ) {
                TableCellElement tce = tre.getCells().getItemiCol );
                tce.getStyle().setCursorcursor );
            }
        }
    }
    @Override
    protected Widget getHeaderWidget() {
        if ( this. == null ) {
            this. = new HeaderWidget();
        }
        return ;
    }
    @Override
    protected ResizerInformation getResizerInformationint mx ) {
        boolean isPrimed = false;
        ResizerInformation resizerInfo = new ResizerInformation();
        for ( int iCol = 0; iCol < .[ 4 ].getChildCount(); iCol++ ) {
            TableCellElement tce = .[ 4 ].getChildiCol ).<TableCellElement>cast();
            int cx = tce.getAbsoluteRight();
            if ( Math.absmx - cx ) <= 5 ) {
                isPrimed = true;
                resizerInfo.setResizePrimedisPrimed );
                resizerInfo.setResizeColumn..getiCol ) );
                resizerInfo.setResizeColumnLefttce.getAbsoluteLeft() );
                break;
            }
        }
        if ( isPrimed ) {
            setCursorType. );
        } else {
            setCursorType. );
        }
        return resizerInfo;
    }
    // Resize the inner DIV in each table cell
    protected void resizeColumnDynamicColumn<BaseColumnresizeColumn,
                                 int resizeColumnWidth ) {
        DivElement div;
        TableCellElement tce;
        int colOffsetIndex;
        // This is also set in the ColumnResizeEvent handler, however it makes
        // resizing columns in the header more simple too
        resizeColumn.setWidthresizeColumnWidth );
        resizeColumn.getModelColumn().setWidthresizeColumnWidth );
        int resizeColumnIndex = ..indexOfresizeColumn );
        // Row 0 (General\Fact Type)
        // General row, all visible cells included