You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/08/10 06:15:38 UTC
cvs commit: jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/portal/portlets JetspeedFusionPortlet.java
taylor 2004/08/09 21:15:38
Modified: fusion/src/java/org/apache/jetspeed/fusion/portal/portlets
JetspeedFusionPortlet.java
Log:
override default jetspeed INFO mode with JSR 168 Help Mode
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.3 +12 -3 jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/portal/portlets/JetspeedFusionPortlet.java
Index: JetspeedFusionPortlet.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/fusion/src/java/org/apache/jetspeed/fusion/portal/portlets/JetspeedFusionPortlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JetspeedFusionPortlet.java 8 Jul 2004 17:59:51 -0000 1.2
+++ JetspeedFusionPortlet.java 10 Aug 2004 04:15:38 -0000 1.3
@@ -32,7 +32,6 @@
import org.apache.jetspeed.container.session.NavigationalStateComponent;
import org.apache.jetspeed.container.window.PortletWindowAccessor;
import org.apache.jetspeed.engine.Engine;
-import org.apache.jetspeed.fusion.services.resources.FusionResources;
import org.apache.jetspeed.portal.PortletException;
import org.apache.jetspeed.portal.PortletInstance;
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
@@ -40,6 +39,7 @@
import org.apache.jetspeed.request.RequestContextComponent;
import org.apache.jetspeed.services.logging.JetspeedLogFactoryService;
import org.apache.jetspeed.services.logging.JetspeedLogger;
+import org.apache.jetspeed.services.resources.FusionResources;
import org.apache.jetspeed.services.rundata.JetspeedRunData;
import org.apache.jetspeed.util.JetspeedClearElement;
import org.apache.pluto.om.entity.PortletEntity;
@@ -59,7 +59,8 @@
private static final String PORTLET_APPLICATION_NAME = FusionResources.getString(FusionResources.PORTLET_APPLICATION_PARAMETER);
private static final String PORTLET_DEFINITION_NAME = FusionResources.getString(FusionResources.PORTLET_DEFINITION_PARAMETER);
- private static final String J2_ENTITY = FusionResources.getString(FusionResources.J2_ENTITY);
+ private static final String J2_ENTITY = FusionResources.getString(FusionResources.J2_ENTITY);
+ private static final String J1_HELP_ACTION = FusionResources.getString(FusionResources.J1_HELP_ACTION);
private NavigationalStateComponent navState;
private PortletWindowAccessor windowAccessor;
private PortletEntityAccessComponent entityAccess;
@@ -272,6 +273,14 @@
{
nav.setState(window, WindowState.MINIMIZED);
return;
+ }
+
+
+ String action = data.getAction();
+ if (action.equals(J1_HELP_ACTION))
+ {
+ nav.setMode(window, PortletMode.HELP);
+ return;
}
switch (mode)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org