You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/07/13 04:32:20 UTC
cvs commit: jakarta-turbine/src/java/org/apache/turbine/modules/navigations TemplateNavigation.java
jvanzyl 01/07/12 19:32:20
Modified: src/java/org/apache/turbine/modules/navigations
TemplateNavigation.java
Log:
- just use the functionality of the base Module.
i think i will take the logic from the TemplateScreen and make
that a base Module for template rendering or add this
functionality to Module itself ... then we will only need
one Module type and it will handle everything. will try
this tomorrow. simplify simplify simplify.
Revision Changes Path
1.9 +0 -59 jakarta-turbine/src/java/org/apache/turbine/modules/navigations/TemplateNavigation.java
Index: TemplateNavigation.java
===================================================================
RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/modules/navigations/TemplateNavigation.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TemplateNavigation.java 2001/07/12 20:21:56 1.8
+++ TemplateNavigation.java 2001/07/13 02:32:18 1.9
@@ -54,68 +54,9 @@
* <http://www.apache.org/>.
*/
-import org.apache.turbine.RunData;
-import org.apache.turbine.TemplateContext;
import org.apache.turbine.modules.Module;
-import org.apache.turbine.services.template.TurbineTemplate;
-/**
- */
public class TemplateNavigation
extends Module
{
- /**
- * Velocity Navigations extending this class should overide this
- * method to perform any particular business logic and add
- * information to the context.
- *
- * @param data Turbine information.
- * @param context Context for web pages.
- * @exception Exception, a generic exception.
- */
- protected void doBuildTemplate( RunData data,
- TemplateContext context )
- throws Exception
- {
- }
-
- /**
- * Needs to be implemented to make TemplateNavigation like us.
- * The actual method that you should override is the one with the
- * context in the parameter list.
- *
- * @param data Turbine information.
- * @exception Exception, a generic exception.
- */
- protected void doBuildTemplate( RunData data )
- throws Exception
- {
- }
-
- /**
- * This Builds the Velocity template.
- *
- * @param data Turbine information.
- * @return A ConcreteElement.
- * @exception Exception, a generic exception.
- */
- public String buildTemplate( RunData data )
- throws Exception
- {
- return "";
- }
-
- /**
- * Calls doBuildTemplate() and then buildTemplate().
- *
- * @param data Turbine information.
- * @return A ConcreteElement.
- * @exception Exception, a generic exception.
- */
- protected String doBuild( RunData data )
- throws Exception
- {
- doBuildTemplate(data);
- return buildTemplate(data);
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org