Package org.nocrala.tools.texttablefmt

Examples of org.nocrala.tools.texttablefmt.Table.addCell()


        if(Daemon.connectionPool.size() > 0) {
            Table tab = new Table(6);
            tab.addCell("ID");
            tab.addCell("Connected");
            tab.addCell("Type");
            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
View Full Code Here


            Table tab = new Table(6);
            tab.addCell("ID");
            tab.addCell("Connected");
            tab.addCell("Type");
            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
View Full Code Here

            tab.addCell("ID");
            tab.addCell("Connected");
            tab.addCell("Type");
            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
 
View Full Code Here

            tab.addCell("Type");
            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
View Full Code Here

            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
View Full Code Here

            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
            strOut.write(tab.render() + "\n");
View Full Code Here

            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
            strOut.write(tab.render() + "\n");
        }
View Full Code Here

            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
            strOut.write(tab.render() + "\n");
        }

View Full Code Here

                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
            strOut.write(tab.render() + "\n");
        }

        return strOut.toString();
View Full Code Here

        StringWriter strOut = new StringWriter();
        strOut.write(String.format("MIST %s (%s)%n", Version.getVersion(), clientID));
        strOut.write(String.format("%d service threads%n", services.size()));
        if(services.size() > 0) {
            Table tab = new Table(2);
            tab.addCell("ID");
            tab.addCell("Status");
            for(ServiceProvider s : services) {
                tab.addCell(String.valueOf(s.getId()));
                tab.addCell(s.isReady() ? "idle": "busy");
            }
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.