Package org.jmanage.cmdui.util

Examples of org.jmanage.cmdui.util.Table


        if(attributes.length == 0)
            return;

        Out.println();
        Out.println("Attributes:");
        Table table = new Table(4);
        for(int i=0; i<attributes.length; i++){
            table.add(attributes[i].getName(),
                    attributes[i].getDisplayType(),
                    attributes[i].getReadWrite(),
                    attributes[i].getDescription());
        }
        table.print();
    }
View Full Code Here


        if(operations.length == 0)
            return;

        Out.println();
        Out.println("Operations:");
        Table table = new Table(3);
        for(int i=0; i<operations.length; i++){
            table.add(operations[i].getName()+ "(" +
                    signature(operations[i].getSignature()) + ")",
                    operations[i].getDisplayReturnType(),
                    operations[i].getDescription());
        }
        table.print();
    }
View Full Code Here

        Out.println("jmanage [-username <username>] [-password <password>] " +
                "[-verbose[=<level>]] [command] [command args]");
        /* print short help for all commands */
        Out.println();
        Out.println("Commands:");
        Table table = new Table(2);
        Collection commandNames = CommandHandlerFactory.getCommandNames();
        for (Object commandName1 : commandNames) {
            String commandName = (String) commandName1;
            CommandHandler handler =
                    CommandHandlerFactory.getHandler(commandName);
            table.add(commandName, handler.getShortHelp());
        }
        table.print();
        Out.println();
        Out.println("Type \"help <command>\" for detailed command help.");
        Out.println("[Important! : Any space within a command argument should be replaced with \"~\" character.]");
        return true;
    }
View Full Code Here

TOP

Related Classes of org.jmanage.cmdui.util.Table

Copyright © 2018 www.massapicom. 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.