Package railo.runtime.dump

Examples of railo.runtime.dump.DumpTable.appendRow()


    // arguments
    FunctionArgument[] args = udf.getFunctionArguments();
       
        DumpTable atts = closure?new DumpTable("udf","#ff00ff","#ffccff","#000000"):new DumpTable("udf","#cc66ff","#ffccff","#000000");
       
    atts.appendRow(new DumpRow(63,new DumpData[]{new SimpleDumpData("label"),new SimpleDumpData("name"),new SimpleDumpData("required"),new SimpleDumpData("type"),new SimpleDumpData("default"),new SimpleDumpData("hint")}));
    for(int i=0;i<args.length;i++) {
      FunctionArgument arg=args[i];
      DumpData def;
      try {
        Object oa=null;
View Full Code Here


                if(oa==null)oa="null";
        def=new SimpleDumpData(Caster.toString(oa));
      } catch (PageException e) {
        def=new SimpleDumpData("");
      }
      atts.appendRow(new DumpRow(0,new DumpData[]{
          new SimpleDumpData(arg.getDisplayName()),
          new SimpleDumpData(arg.getName().getString()),
          new SimpleDumpData(arg.isRequired()),
          new SimpleDumpData(arg.getTypeAsString()),
          def,
View Full Code Here

    if(udf instanceof UDFPlus)func.setComment("source:"+((UDFPlus)udf).getPageSource().getDisplayPath());

    if(!StringUtil.isEmpty(udf.getDescription()))func.setComment(udf.getDescription());
   
    func.appendRow(1,new SimpleDumpData("arguments"),atts);
    func.appendRow(1,new SimpleDumpData("return type"),new SimpleDumpData(udf.getReturnTypeAsString()));
   
    boolean hasLabel=!StringUtil.isEmpty(udf.getDisplayName());//displayName!=null && !displayName.equals("");
    boolean hasHint=!StringUtil.isEmpty(udf.getHint());//hint!=null && !hint.equals("");
   
View Full Code Here

    if(udf instanceof UDFPlus)func.setComment("source:"+((UDFPlus)udf).getPageSource().getDisplayPath());

    if(!StringUtil.isEmpty(udf.getDescription()))func.setComment(udf.getDescription());
   
    func.appendRow(1,new SimpleDumpData("arguments"),atts);
    func.appendRow(1,new SimpleDumpData("return type"),new SimpleDumpData(udf.getReturnTypeAsString()));
   
    boolean hasLabel=!StringUtil.isEmpty(udf.getDisplayName());//displayName!=null && !displayName.equals("");
    boolean hasHint=!StringUtil.isEmpty(udf.getHint());//hint!=null && !hint.equals("");
   
    if(hasLabel || hasHint) {
View Full Code Here

    boolean hasHint=!StringUtil.isEmpty(udf.getHint());//hint!=null && !hint.equals("");
   
    if(hasLabel || hasHint) {
      DumpTable box = new DumpTable("#ffffff","#cccccc","#000000");
      box.setTitle(hasLabel?udf.getDisplayName():udf.getFunctionName());
      if(hasHint)box.appendRow(0,new SimpleDumpData(udf.getHint()));
      box.appendRow(0,func);
      return box;
    }
    return func;
  }
View Full Code Here

   
    if(hasLabel || hasHint) {
      DumpTable box = new DumpTable("#ffffff","#cccccc","#000000");
      box.setTitle(hasLabel?udf.getDisplayName():udf.getFunctionName());
      if(hasHint)box.appendRow(0,new SimpleDumpData(udf.getHint()));
      box.appendRow(0,func);
      return box;
    }
    return func;
  }
View Full Code Here

    }
   
    @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table = new DumpTable("string","#ff6600","#ffcc99","#000000");
    table.appendRow(1,new SimpleDumpData("FTPPath"),new SimpleDumpData(toString()));
    return table;
    }
}
View Full Code Here

    DumpProperties properties=new DumpProperties((int)maxLevel,setShow,setHide,(int)keys,metainfo,showUDFs);
    DumpData dd = DumpUtil.toDumpData(object, pc,(int)maxLevel,properties);
   
    if(!StringUtil.isEmpty(label)) {
      DumpTable table=new DumpTable("#ffffff","#cccccc","#000000");
      table.appendRow(1,new SimpleDumpData(label));
      table.appendRow(0,dd);
      dd=table;
    }
    RefBoolean hasReference=new RefBooleanImpl(false);
    Struct sct = toStruct(dd,object,hasReference);
View Full Code Here

    DumpData dd = DumpUtil.toDumpData(object, pc,(int)maxLevel,properties);
   
    if(!StringUtil.isEmpty(label)) {
      DumpTable table=new DumpTable("#ffffff","#cccccc","#000000");
      table.appendRow(1,new SimpleDumpData(label));
      table.appendRow(0,dd);
      dd=table;
    }
    RefBoolean hasReference=new RefBooleanImpl(false);
    Struct sct = toStruct(dd,object,hasReference);
    sct.setEL("hasReference", hasReference.toBoolean());
View Full Code Here

    DumpTable table;
    if(dd instanceof DumpTable) table=(DumpTable) dd;
    else {
      if(dd==null) dd= new SimpleDumpData("null");
      table=new DumpTable("#ffffff","#cccccc","#000000");
      table.appendRow(1,dd);
    }
    return toCFML(table,object,hasReference);
  }
 
 
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.