Component Class Info Custom Control

Today while working on a solution for this post on the XPages Forum I couldn't find any API documentation on a DynamicViewColumn which is a child of the Dynamic View Panel included in the extension library. This prompted me to come up with this crude custom control that will give you a drop down box of the component tree's components and then when you make a selection it'll spit out the java class name and all of it's methods with each method's argument types. This should prove to be a very handy custom control when you can't find a property/method of a component. I'm sure I'll think of more to add to this component, but in the mean time, here it is for your enjoyment.


	
		
			
				
			
			
			
		
		
			
				
			
		
		
		
			
				
					
					
				
					
					
			
			
				
					
					
					
					
				
					
					" + method.getName() + "("
			var params = [];
			params = method.getParameterTypes();			
			for (var j = 0;j < params.length;j++) {
				delim = "";
				if (j > 0 && j != (params.length -1)) {
					delim = ", ";
				}
				var methodParam:java.lang.Class = params[j];
				html = html + methodParam.getSimpleName() + delim;
			}
			html = html + ")
";
		}
	}
}
return html;}]]>
						
		
	


Share This: