Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2B719BF0 for ; Fri, 23 Mar 2012 12:51:53 +0000 (UTC) Received: (qmail 7894 invoked by uid 500); 23 Mar 2012 12:51:52 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 7748 invoked by uid 500); 23 Mar 2012 12:51:51 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 7702 invoked by uid 99); 23 Mar 2012 12:51:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 12:51:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 12:51:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BA2E53423F9 for ; Fri, 23 Mar 2012 12:51:26 +0000 (UTC) Date: Fri, 23 Mar 2012 12:51:26 +0000 (UTC) From: "Christian Schneider (Commented) (JIRA)" To: issues@karaf.apache.org Message-ID: <1589732545.7639.1332507086763.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <743056777.7620.1332505886545.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KARAF-1281) New table support for shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KARAF-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236547#comment-13236547 ] Christian Schneider commented on KARAF-1281: -------------------------------------------- I also thought so originally but it seems the current DataTable impl is not used anywhere > New table support for shell > --------------------------- > > Key: KARAF-1281 > URL: https://issues.apache.org/jira/browse/KARAF-1281 > Project: Karaf > Issue Type: Improvement > Components: karaf-shell > Reporter: Christian Schneider > Assignee: Christian Schneider > Fix For: 3.0.0 > > > I have implemented a new table implementation that is very easy to use. I would like to replace the current table impl with it but would like some feedback first. > The usage of the table can be seen from the ShellTableTest: > ShellTable table = new ShellTable(); > table.column(new Col("id").alignRight().maxSize(5)); > table.column(new Col("Name").maxSize(20)); > table.column(new Col("Centered").alignCenter()); > > table.addRow().addContent(1, "Test", "Description"); > table.addRow().addContent(20, "My name", "Description"); > > Row row = table.addRow(); > row.addContent(123456789); > row.addContent("A very long text that should be cut"); > row.addContent("A very long text that should not be cut"); > > table.print(System.out); > --- > The output looks like this: > {noformat} > | id | Name | Centered | > -------------------------------------------------------------------------- > | 1 | Test | Description | > | 20 | My name | Description | > | 12345 | A very long text tha | A very long text that should not be cut | > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira