You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/01/28 04:29:51 UTC

[Bug 58927] New: collapsed

https://bz.apache.org/bugzilla/show_bug.cgi?id=58927

            Bug ID: 58927
           Summary: collapsed
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: gtmskaai@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58927] ColumnHelper.setColumnAttributes does not copy the "collapsed" field.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58927

--- Comment #1 from Masaki Goto <gt...@gmail.com> ---
ColumnHelper#setColumnAttributes is called mainly when a new column is created
by cloning existing columns.
However it does not clone correctly.

public void setColumnAttributes(CTCol fromCol, CTCol toCol) {
    if(fromCol.isSetBestFit()) toCol.setBestFit(fromCol.getBestFit());
    if(fromCol.isSetCustomWidth())
toCol.setCustomWidth(fromCol.getCustomWidth());
    if(fromCol.isSetHidden()) toCol.setHidden(fromCol.getHidden());
    if(fromCol.isSetStyle()) toCol.setStyle(fromCol.getStyle());
    if(fromCol.isSetWidth()) toCol.setWidth(fromCol.getWidth());
    if(fromCol.isSetCollapsed()) toCol.setCollapsed(fromCol.getCollapsed());
    if(fromCol.isSetPhonetic()) toCol.setPhonetic(fromCol.getPhonetic());
    if(fromCol.isSetOutlineLevel())
toCol.setOutlineLevel(fromCol.getOutlineLevel());
    toCol.setCollapsed(fromCol.isSetCollapsed());
}

If fromCol has "collapsed=0" (this means flomCol is not collapsed),
this method set "collapsed=1".

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58927] ColumnHelper.setColumnAttributes does not copy the "collapsed" field.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58927

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |58910

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58927] ColumnHelper.setColumnAttributes does not copy the "collapsed" field.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58927

Masaki Goto <gt...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |3.14-dev
            Summary|collapsed                   |ColumnHelper.setColumnAttri
                   |                            |butes does not copy the
                   |                            |"collapsed" field.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58927] ColumnHelper.setColumnAttributes does not copy the "collapsed" field.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58927

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Javen O'Neal <on...@apache.org> ---
I think ColumnHelper operates on individual columns only (not column groups),
and therefore doesn't deal with the higher-level column group collapsing
concept. That logic probably belongs in XSSFSheet or in a different function in
ColumnHelper that is column-group aware.

I haven't used setColumnAttributes, so if you're more familiar with it, explain
what you think should be done.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org