setToolTipText("This node may be used for specifying the relative base-path of your profile.");
return this;
}
if( arg1.getType() == TreeNode.RESOURCE_NODE ){
Resource c = (Resource) arg1;
String path = c.getName();
if( path == null || path.equals( "" ) )
path = "/";
StringBuffer t = new StringBuffer( "<html>");
if( c.isInherited() ){
setInheritanceColors();
t.append( "<i>" );
}
t.append("<b>" + path + "</b>" );
if( c.hasExtensions() )
t.append( ", extends: <b><i>" + c.getExtensionAsString() + "</i></b>" );
if( c.isInherited() ){
t.append( "</i>" );
}
t.append("</html>");
setText( t.toString() );
setIcon( AbstractPolicyTreeRenderer.getIcon( c ) );
return this;
}
if( arg1.getType() == TreeNode.HEADER_NODE ){
Header p = (Header) arg1;
StringBuffer s = new StringBuffer("<html>");
if( p.isInherited() ){
setInheritanceColors();
s.append("<i>");
}
s.append( "Header: <b>"+p.getName()+"</b>");
s.append(", Regexp: <b>" + p.getRegexp() + "</b>");
if( p.isRequired() )
s.append(", Required: <b>"+p.isRequired()+"</b>");
setText( s.toString() );
setIcon( WebPolicyEditor.getIcon(p) );
if( p.isInherited() )
s.append("</i>");
s.append("</html>");
return this;
}
if( arg1.getType() == TreeNode.COOKIE_NODE ){
Cookie c = (Cookie) arg1;
StringBuffer s = new StringBuffer("<html>Cookie: <b>" + c.getName() + "</b>");
s.append(", Regexp: <b>" + c.getRegexp() + "</b>" );
if( c.isRequired() )
s.append(", Required: <b>" + c.isRequired() + "</b>");
s.append("</html>");
setText( s.toString() );
setIcon( WebPolicyEditor.getIcon( c ) );
return this;