paulsp 01/11/16 14:44:34
Modified: src/java/org/apache/jetspeed/portal BasePortletSkin.java
PortletSkin.java
Log:
Add ContentStyleClass and HighlightTitleStyleClass to the list of classes available
to Skins
Revision Changes Path
1.3 +43 -1
jakarta-jetspeed/src/java/org/apache/jetspeed/portal/BasePortletSkin.java
Index: BasePortletSkin.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/BasePortletSkin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- BasePortletSkin.java 2001/09/06 11:37:37 1.2
+++ BasePortletSkin.java 2001/11/16 22:44:34 1.3
@@ -59,7 +59,8 @@
* as a Map of text properties
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rapha�l Luta</a>
- * @version $Id: BasePortletSkin.java,v 1.2 2001/09/06 11:37:37 sgala Exp $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Paul Spencer</a>
+ * @version $Id: BasePortletSkin.java,v 1.3 2001/11/16 22:44:34 paulsp Exp $
*/
public class BasePortletSkin extends java.util.HashMap implements PortletSkin
{
@@ -336,4 +337,45 @@
}
}
+ /**
+ * Returns the CSS class to use on the control of the Highlighted title tab or
menu item
+ * @return the CSS class to use (HighlightTitleStyleClass)
+ */
+ public String getHighlightTitleStyleClass()
+ {
+ return (String)get(HIGHLIGHT_TITLE_STYLE_CLASS);
+ }
+
+ /**
+ * Sets the CSS class to use on the control of the Highlighted title tab or
menu item
+ * @param highlightTitleStyleClass the new class to be used
+ */
+ public void setHighlightTitleStyleClass(String highlightTitleStyleClass)
+ {
+ if (highlightTitleStyleClass!=null)
+ {
+ put(HIGHLIGHT_TITLE_STYLE_CLASS, highlightTitleStyleClass);
+ }
+ }
+
+ /**
+ * Returns the CSS class to use for the controller overall
+ * @return the CSS class to use (ControllerStyleClass)
+ */
+ public String getControllerStyleClass()
+ {
+ return (String)get(CONTROLLER_STYLE_CLASS);
+ }
+
+ /**
+ * Sets the CSS class to use for the controller overall
+ * @param controllerStyleClass the new class to be used
+ */
+ public void setControllerStyleClass(String controllerStyleClass)
+ {
+ if (controllerStyleClass!=null)
+ {
+ put(CONTROLLER_STYLE_CLASS,controllerStyleClass);
+ }
+ }
}
1.3 +28 -1
jakarta-jetspeed/src/java/org/apache/jetspeed/portal/PortletSkin.java
Index: PortletSkin.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/PortletSkin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PortletSkin.java 2001/09/06 11:37:37 1.2
+++ PortletSkin.java 2001/11/16 22:44:34 1.3
@@ -59,7 +59,8 @@
* specified portlet (and associated control)
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rapha�l Luta</a>
- * @version $Id: PortletSkin.java,v 1.2 2001/09/06 11:37:37 sgala Exp $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Paul Spencer</a>
+ * @version $Id: PortletSkin.java,v 1.3 2001/11/16 22:44:34 paulsp Exp $
*/
public interface PortletSkin extends java.util.Map
{
@@ -69,9 +70,11 @@
public static final String TITLE_BACKGROUND_COLOR = "title-background-color";
public static final String HIGHLIGHT_TEXT_COLOR = "highlight-text-color";
public static final String HIGHLIGHT_BACKGROUND_COLOR =
"highlight-background-color";
+ public static final String CONTROLLER_STYLE_CLASS = "controller-style-class";
public static final String PORTLET_STYLE_CLASS = "portlet-style-class";
public static final String TITLE_STYLE_CLASS = "title-style-class";
public static final String CONTENT_STYLE_CLASS = "content-style-class";
+ public static final String HIGHLIGHT_TITLE_STYLE_CLASS =
"highlight-title-style-class";
public static final String TAB_STYLE_CLASS = "tab-style-class";
public static final String TAB_TITLE_STYLE_CLASS = "tab-title-style-class";
public static final String TAB_CONTENT_STYLE_CLASS = "tab-content-style-class";
@@ -226,5 +229,29 @@
* @param tabContentStyleClass the new class to be used
*/
public void setTabContentStyleClass(String tabContentStyleClass);
+
+ /**
+ * Returns the CSS class to use on the control of the Highlighted titles on tab
or menu item
+ * @return the CSS class to use (HighlightTitleStyleClass)
+ */
+ public String getHighlightTitleStyleClass();
+
+ /**
+ * Sets the CSS class to use on the control of the Highlighted titles tab or
menu item
+ * @param highlightTabStyleClass the new class to be used
+ */
+ public void setHighlightTitleStyleClass(String highlightTitleStyleClass);
+
+ /**
+ * Returns the CSS class to use for the Controller overall
+ * @return the CSS class to use (ControllerStyleClass)
+ */
+ public String getControllerStyleClass();
+
+ /**
+ * Sets the CSS class to use for the controller overall
+ * @param controllerStyleClass the new class to be used
+ */
+ public void setControllerStyleClass(String controllerStyleClass);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>