Package org.apache.ecs.html

Examples of org.apache.ecs.html.Table.addElement()


            Enumeration names = context.getAttributeNames();

            while ( names.hasMoreElements() ) {
                String name = (String) names.nextElement();
                table.addElement( new TR()
                    .addElement( new TD( name ) )
                    .addElement( new TD( context.getAttribute( name ).toString() ) ) );
            }

            table.addElement( new TR()
View Full Code Here


                table.addElement( new TR()
                    .addElement( new TD( name ) )
                    .addElement( new TD( context.getAttribute( name ).toString() ) ) );
            }

            table.addElement( new TR()
                .addElement( new TH( "InitParameter" ) )
                .addElement( new TH( "String Value" ) ) );


            Enumeration ipnames = context.getInitParameterNames();
View Full Code Here


            Enumeration ipnames = context.getInitParameterNames();
            while ( ipnames.hasMoreElements() ) {
                String ipname = (String) ipnames.nextElement();
                table.addElement( new TR()
                    .addElement( new TD( ipname ) )
                    .addElement( new TD( context.getInitParameter( ipname ).toString() ) ) );
            }

        } catch (Throwable t) {
View Full Code Here

                    .addElement( new TD( context.getInitParameter( ipname ).toString() ) ) );
            }

        } catch (Throwable t) {
            logger.error("Throwable",  t);
            table.addElement( new TR()
                .addElement( new TD( "Error" ) )
                .addElement( new TD( "Could not read servlet context" ) ) );
        }

        return table;
View Full Code Here

            }


            Table table = new Table().setWidth("100%");

            table.addElement( new TR().addElement( new TH() )
                                      .addElement( new TH("Name") )
                                      .addElement( new TH("Status") )
                                      .addElement( new TH("Result") )
                                      .addElement( new TH("On Startup") )
                                      .addElement( new TH("Interval") )
View Full Code Here

            DaemonEntry[] entries = DaemonFactory.getDaemonEntries();

            for (int i = 0; i < entries.length; ++i) {

                table.addElement( new TR()
                                        .addElement( new TD( this.getForm( entries[i].getName(), rundata ) ) )
                                        .addElement( new TD( entries[i].getName() ) )
                                        .addElement( new TD( this.getStatus( DaemonFactory.getStatus( entries[i] ) ) ) )
                                        .addElement( new TD( this.getResult( DaemonFactory.getResult( entries[i] ) ) ) )
                                        .addElement( new TD( new Boolean( entries[i].onStartup() ).toString() ) )
View Full Code Here

                if ( message != null ) {

                    message = entries[i].getName() + ":  " + message;

                    table.addElement( new TR().addElement( new TD().setColSpan( 7 )
                                .addElement( message ) ) );

                }

            }
View Full Code Here

                portlet = PortletFactory.getPortlet(entry.getName(), "0");
            } catch (PortletException e) {
                continue;
            }
            A anchor = new A( url ).addElement( portlet.getTitle() );
            table.addElement( new TR().addElement( new TD().addElement( anchor ) ) );
            table.addElement( new TR().addElement( new TD().addElement( portlet.getDescription() ) ) );
        }

        return table;
View Full Code Here

            } catch (PortletException e) {
                continue;
            }
            A anchor = new A( url ).addElement( portlet.getTitle() );
            table.addElement( new TR().addElement( new TD().addElement( anchor ) ) );
            table.addElement( new TR().addElement( new TD().addElement( portlet.getDescription() ) ) );
        }

        return table;

    }
View Full Code Here

        try {
            //get Runtime status
            Runtime jvm = Runtime.getRuntime();

            table.addElement( new TR()
                .addElement( new TD("Free Memory (in bytes)") )
                .addElement( new TD( Long.toString( jvm.freeMemory() ) ) ) );

            table.addElement( new TR()
                .addElement( new TD("Total Memory (in bytes)") )
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.