Beispiel #1
0
  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable htmlBox = new DumpTable("struct", "#9999ff", "#ccccff", "#000000");
    htmlBox.setTitle("Scope Arguments");
    if (size() > 10 && dp.getMetainfo()) htmlBox.setComment("Entries:" + size());

    maxlevel--;
    // Map mapx=getMap();
    Iterator<Key> it = keyIterator(); // mapx.keySet().iterator();
    int count = 0;
    Collection.Key key;
    int maxkeys = dp.getMaxKeys();
    int index = 0;
    while (it.hasNext()) {
      key = it.next(); // it.next();

      if (DumpUtil.keyValid(dp, maxlevel, key)) {
        if (maxkeys <= index++) break;
        htmlBox.appendRow(
            3,
            new SimpleDumpData(key.getString()),
            new SimpleDumpData(++count),
            DumpUtil.toDumpData(get(key, null), pageContext, maxlevel, dp));
      }
    }
    return htmlBox;
  }
Beispiel #2
0
 @Override
 public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
   String str = castToString(pageContext.getTimeZone());
   DumpTable table = new DumpTable("date", "#ff6600", "#ffcc99", "#000000");
   if (dp.getMetainfo())
     table.appendRow(
         1, new SimpleDumpData("Date Time (" + pageContext.getTimeZone().getID() + ")"));
   else table.appendRow(1, new SimpleDumpData("Date Time"));
   table.appendRow(0, new SimpleDumpData(str));
   return table;
 }