ch.elca.el4j.services.monitoring.jmx.display
Class Section

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.display.Section

public class Section
extends Object

Section of a page.

Author:
David Bernhard (DBD)
File-location:
Section
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Constructor Summary
Section(String name)
           
 
Method Summary
 void add(String string)
           
 void addLine(String string)
           
 void addProperty(String key, String value)
          Adds a 1x1 table with the key in the title and the value in the table.
 void addWarning(String string)
           
 String getContent()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Section

public Section(String name)
Parameters:
name - Creates a new section with this name.
Method Detail

add

public void add(String string)
Parameters:
string - Adds string to content.

addLine

public void addLine(String string)
Parameters:
string - Adds content between p tags and newline at end.

addWarning

public void addWarning(String string)
Parameters:
string - Adds a warning - currently in italics and red.

addProperty

public void addProperty(String key,
                        String value)
Adds a 1x1 table with the key in the title and the value in the table.

Parameters:
key - A property key.
value - A property value.

getContent

public String getContent()
Returns:
The content.

getName

public String getName()
Returns:
The section name (title).


Copyright © 2005-2011 ELCA. All Rights Reserved.