Package org.cipango.console

Examples of org.cipango.console.Property


      PropertyList propertyList = new PropertyList(_mbsc, objectName, "http.statistics");
      propertyList.setTitle("Connector: " + (String) _mbsc.getAttribute(objectName, "name"));
      Iterator<Property> it = propertyList.iterator();
      while (it.hasNext())
      {
        Property property = (Property) it.next();
        String name = property.getName();
        int index = name.indexOf("since statsReset()");
        if (index != -1)
          property.setName(name.substring(0, index));
      }
      add(new PropertiesPrinter(propertyList));
     
      add(new HtmlPrinter()
      {
View Full Code Here


      appendTitle(out, _properties.getTitle());

      Iterator<Property> it = _properties.iterator();
      while (it.hasNext())
      {
        Property property = (Property) it.next();
        out.write(property.getName().trim() + ": " + property.getValue() + "\n");
      }
    }
View Full Code Here

    printHeaders(out, hasNotes);
    Iterator<Property> it = _properties.iterator();
    boolean odd = true;
    while (it.hasNext())
    {
      Property property = (Property) it.next();

      out.write("\t<tr class=\"" + (odd ? "odd" : "even") + "\">");
      out.write("<td>" + property.getName() + "</td><td>");
      out.write((property.getValue() == null ? "" : property.getValue()) + "</td>");
      if (hasNotes)
        out.write("<td>" + (property.getNote() == null ? "&nbsp;" : property.getNote()) + "</td>");
      out.write("</tr>\n");
      odd = !odd;
    }
    out.write("</table>\n</div>\n");
  }
View Full Code Here

TOP

Related Classes of org.cipango.console.Property

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.