You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "David Leal (JIRA)" <ji...@apache.org> on 2006/10/11 12:47:19 UTC

[jira] Created: (LANG-284) TextTable for printing a fixedlength columns format text tables

TextTable for printing a fixedlength columns format text tables
---------------------------------------------------------------

                 Key: LANG-284
                 URL: http://issues.apache.org/jira/browse/LANG-284
             Project: Commons Lang
          Issue Type: New Feature
    Affects Versions: 2.2
            Reporter: David Leal


Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.

I am adding a patch a possible solution for that,

Thanks,

David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444482 ] 
            
David Leal commented on LANG-284:
---------------------------------

Thanks for your interest, just to take into account that the method: splitWrappedLinesInToList wouldn't be necessary if the class WordUtils could provide a new split method that instead of returing a String with the splitted text just returns an Array/List with the splitted lines.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12461421 ] 
            
Stephen Colebourne commented on LANG-284:
-----------------------------------------

I never commented on this at the time. I personally think this is out of scope for [lang]. It has the potential to expand in any number of directions, and has no simple correct implementation.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Gary Gregory (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444550 ] 
            
Gary Gregory commented on LANG-284:
-----------------------------------

I think we are going towards a whole new .table package. I like the idea of a table model with an XML and HTML writer classes on the side. TableModel, XmlTableWriter, HtmlTableWriter. As soon as you say HTML, I am thinking that XML is enough since I can just apply an XSLT later. Opening the door to colors, fonts, borders, etc seems like a big job. You'd also might want a TableColumn class to hold name, data type, etc.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LANG-284?page=all ]

Henri Yandell updated LANG-284:
-------------------------------

    Fix Version/s: 3.0

Seems like a good new feature - I've got an aborted Table class somewhere so it's something I've needed in the past. Setting to 3.0.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444551 ] 
            
Henri Yandell commented on LANG-284:
------------------------------------

Yup, XML +1 (which just happens to equal table, tbody, thead, tr, whatever to make life easy) :)

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444486 ] 
            
David Leal commented on LANG-284:
---------------------------------

I have added a feature requets on WordUtils class about that:

https://issues.apache.org/jira/browse/LANG-280">Jira LANG-280


> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Gary Gregory (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12461425 ] 
            
Gary Gregory commented on LANG-284:
-----------------------------------

I agree with Stephen [http://issues.apache.org/jira/browse/LANG-284#action_12461421], this sounds complicated enough and would need enough parameters and customizable features to make it its own component.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LANG-284?page=all ]

David Leal updated LANG-284:
----------------------------

    Attachment: TextTable.java

Implementation of TextTable.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>         Attachments: TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LANG-284?page=all ]

David Leal updated LANG-284:
----------------------------

    Attachment: TestTextTable.java

Junit test.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444540 ] 
            
Henri Yandell commented on LANG-284:
------------------------------------

Quick braindump - would be cool to be able to create a Table object and then to print that to multiple formats. Text and HTML being two obvious ones. The current code doesn't split that - though I've only glanced at the unit test so far.

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LANG-284?page=all ]

David Leal updated LANG-284:
----------------------------

    Attachment: TestTextTable.out

Sample output

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>         Attachments: TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

Posted by "David Leal (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444696 ] 
            
David Leal commented on LANG-284:
---------------------------------

Dear Henri,

About your comment, that is why I have provided two methods, the method that returns String[][] drawFixedColumnLengthTable() contains the body of matrix, without any adornament, so you can put into any different format (html, xml, etc).

Regards,

David

> TextTable for printing a fixedlength columns format text tables
> ---------------------------------------------------------------
>
>                 Key: LANG-284
>                 URL: http://issues.apache.org/jira/browse/LANG-284
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: David Leal
>             Fix For: 3.0
>
>         Attachments: TestTextTable.java, TestTextTable.out, TextTable.java
>
>
> Just to suggest adding a TextTable class for printing in text (ASCII) format fixed columns table. It is usefull for printing information from command line application, that informs about directly on DOS Windows of Xterm direclty.
> I am adding a patch a possible solution for that,
> Thanks,
> David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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