########################################################################
###########
--- TitlePortletControl.java Thu May 24 08:27:45 2001
+++ change/TitlePortletControl.java Thu May 24 08:30:40 2001
@@ -114,8 +114,10 @@
 
                 ConcreteElement[] options = this.getPortletOptions(
rundata );
 
+                TD titleTD = (TD) new TD().setClass("PORTLET_TITLE");
+
                 TR finalTitle = new TR().setBgColor(
this.getTitleColor() )
-                                    .addElement( new TD().setBgColor(
this.getTitleColor() ).setNoWrap( true
).setWidth("100%").setVAlign("middle")
+                      .addElement( titleTD.setBgColor(
this.getTitleColor() ).setNoWrap( true
).setWidth("100%").setVAlign("middle")
                                                     .addElement( new
B().addElement( getPortlet().getTitle() )
 
.addElement("  ") ) );
########################################################################
###########
 
This patch will add a CSS class attribute to the Portlet title bar.
This will allow a CSS rule with a
class selector of ".PORTLET_TITLE" to be applied to all portlet title
bars.  If no rule with this
selector is found in the style sheet then the portlet title look and
feel will be determined by the
skin parameters in the psml file or by the default if no skin is
specified.
 
Another advantage of this is that you can specify a common look and feel
of the portlet titles but
still have different portlet background colors by combining both the CSS
rule and the psml skin.
 
Steven F. Davis
Technology Director - Digital Evergreen Interactive
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to