001 /*
002 * Created on Mar 15, 2005
003 *
004 * Copyright 2004 Chris Nelson
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS" BASIS,
011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012 * See the License for the specific language governing permissions and limitations under the License.
013 */
014 package org.trails.page;
015
016 import org.apache.hivemind.util.Defense;
017 import org.apache.tapestry.IRequestCycle;
018 import org.apache.tapestry.event.PageBeginRenderListener;
019 import org.apache.tapestry.event.PageEvent;
020 import org.apache.tapestry.html.BasePage;
021
022 public abstract class TrailsPage extends BasePage implements IActivatableTrailsPage, PageBeginRenderListener
023 {
024
025 public void pushCallback()
026 {
027 }
028
029 public void activateTrailsPage(Object[] objects, IRequestCycle iRequestCycle)
030 {
031 pushCallback();
032 }
033
034 public void pageBeginRender(PageEvent event)
035 {
036 Defense.notNull(getClassDescriptor(), "classDescriptor");
037 }
038 }